00:02:25  <doug>cool
00:18:33  * mostynbquit (Quit: Leaving)
00:20:20  * rendar_quit (Quit: std::lower_bound + std::less_equal *works* with a vector without duplicates!)
00:34:27  * esasjoined
00:36:36  <doug>how does v8 determine the type of an object?
00:37:01  <doug>i'd like this object i've got to look like an array
00:44:37  * bobmcwquit (Remote host closed the connection)
00:54:14  * xaxxonjoined
01:09:50  * JoWiequit (Quit: Connection closed for inactivity)
01:32:37  <caitp>how is the object created?
01:33:19  <caitp>I don't think v8 exposes an api per se, to do that, but you should be able to behave like that
02:07:50  * jgiquit (Quit: jgi)
02:08:01  * Bob_Gneujoined
02:15:30  * BobGneuquit (*.net *.split)
02:32:56  <doug>kinda looks like i should be able to use set_instance_type at some level
02:34:47  * jgijoined
02:55:01  * xaxxonquit (Quit: Textual IRC Client: www.textualapp.com)
02:55:03  * jgiquit (Quit: jgi)
02:55:13  * xaxxonjoined
03:14:42  * jgijoined
03:19:52  * jgiquit (Quit: jgi)
03:30:36  * xaxxonquit (Quit: My Mac has gone to sleep. ZZZzzz…)
03:32:59  * xaxxonjoined
03:41:35  * plutoniixquit (Read error: Connection reset by peer)
03:42:31  * plutoniixjoined
03:45:00  <xaxxon>any way to stop javascript execution from within a FunctionTemplate callback function? basically I want to throw an execption but not give the javascript a chance to handle it..
03:46:45  <xaxxon>i don't think isolate::termianteexecution is what I want, but am not sure
03:51:35  * trungl-botquit (Ping timeout: 240 seconds)
03:51:46  * trungl-botjoined
03:57:41  * xaxxonquit (Read error: Connection reset by peer)
03:58:26  * xaxxonjoined
04:11:37  * xaxxonquit (Quit: My Mac has gone to sleep. ZZZzzz…)
04:14:38  * jgijoined
04:29:14  * xaxxonjoined
05:58:00  * bradleymeckjoined
05:58:31  <bradleymeck>is there a way to get a Source from an UnboundScript ?
06:03:23  <bradleymeck>basically trying to get Error.prepareStack trace to be able to say *where* an arrow function was declared / the line it was on
06:07:07  <xaxxon>I don't use either of those .. but I'll look at them now
06:07:22  <xaxxon>bradleymeck I'll let you knwo if I have any guesses :0
06:07:24  <xaxxon>:-D
06:08:34  <xaxxon>what is a "Source"? I don't see it anywhere
06:08:53  <xaxxon>I mean.. I know what you mean, but what object are you looking for?
06:10:11  <xaxxon>I'm guessing this: http://v8.paulfryzel.com/docs/master/classv8_1_1_script_compiler_1_1_source.html
06:10:15  <bradleymeck>xaxxon: Source is from ScriptCompiler, though it doesn't really matter what if it is a Script or String if I can get the line info/text from a JSFunction
06:13:07  <bradleymeck>xaxxon: the goal is to submit a patch to v8 so : https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces can print the function declaration info for anonymous functions, getFunction doesn't work in strict mode... and getFunctionName is anonymous
06:13:48  <bradleymeck>if there is any recommendation on how to do this, I would gladly take a look, but I am not to familiar with the code in question
06:13:54  <xaxxon>anonymous c++ or javascript functions?
06:13:56  <xaxxon>no, I'm not either
06:14:24  <xaxxon>oh, I guess you mean javascript
06:14:28  <xaxxon>contextually
06:14:56  <bradleymeck>yes, arrow functions from JS in particular
06:15:04  * dougpart
06:15:05  <xaxxon>bradleymeck the only thing I'm seeing is that there are a lot of "source url" things in a lot of those classes, but I don't know what they do
06:15:26  <bradleymeck>they print the UnboundScript ScriptOriginInfo for the related fields
06:16:13  <xaxxon>bradleymeck there's a little bit of stuff in here: https://v8.googlecode.com/svn/trunk/test/cctest/test-serialize.cc
06:16:22  <xaxxon>not sure it is doing what you want, though
06:16:56  <xaxxon> const v8::ScriptCompiler::CachedData* data = source.GetCachedData();
06:16:59  * jgiquit (Quit: jgi)
06:18:58  <bradleymeck>xaxxon: CachedData is all sorts of gobblygook from the compiler, not the text
06:19:15  <xaxxon>oh
06:19:16  <bradleymeck>test-serialize seems potentially viable place to look, but need time to read
06:21:30  <xaxxon>bradleymeck do you know what getsourceurl does? if not, I'll take a peak
06:21:32  <xaxxon>peek
06:22:04  <bradleymeck>xaxxon: it grabs comments for https://developers.google.com/web/updates/2013/06/sourceMappingURL-and-sourceURL-syntax-changed?hl=en
06:22:17  <bradleymeck>basically just cached from compilation
06:22:33  <bradleymeck>i can get the filename just fine
06:22:37  <xaxxon>weird, unbound script has int GetLineNumber (int code_pos) but no link back to the source
06:22:37  <xaxxon>I see
06:23:13  <bradleymeck>UnboundScript GetLineNumber is for *where* the script was compiled (ala eval() or Function())
06:26:00  <xaxxon>bradleymeck do you know if the functionality exists internal to the V8 API?
06:26:09  <bradleymeck>it does
06:26:18  <bradleymeck>it is generated when you perform a heapsnapshot
06:27:42  <bradleymeck>JSFunction can get me the line/col info it was declared on, and the script id. I can't fetch a script by id (so I have to install a JitCodeEvent to cache them). From there I can't figure out how to get the text of the script
06:28:01  <bradleymeck>though I guess just dumping the String of the JSFunction source would be ok
06:28:08  <bradleymeck>lose some context info, but w/e
06:32:35  <xaxxon>yeah... I gave what energy I have to trying to figure out what's going on in the heap profiler stuff, but way too many levels of indirection for a quick parse
07:01:33  * xiinotulpjoined
07:02:35  * plutoniixquit (Ping timeout: 264 seconds)
07:20:02  * xaxxonquit (Read error: Connection reset by peer)
07:27:20  * ashish0304joined
07:27:47  * xaxxonjoined
07:28:16  <ashish0304>Please help me to build v8 for Android as static library.
07:28:28  <xaxxon>sorry, never build it for android
07:28:54  <xaxxon>did you read this? https://groups.google.com/forum/#!topic/v8-users/cl2rPGbqsvQ
07:29:01  <xaxxon>https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=build%20v8%20android%20static
07:29:05  <xaxxon>seems to be a bit of stuff out there
07:29:08  <ashish0304>OK, what are the changes that I have to make to build fully static libs.
07:30:02  <ashish0304>Changes in gyp files!
07:41:30  * xiinotulpchanged nick to plutoniix
07:44:37  * davijoined
07:45:00  <ashish0304>thanks, will try!
07:48:38  <xaxxon>best of luck
07:57:46  * daviquit (Ping timeout: 240 seconds)
08:07:15  * davijoined
08:09:52  * evanlucasquit (Read error: Connection reset by peer)
08:10:40  * evanlucasjoined
08:40:43  * evanlucasquit (Read error: Connection reset by peer)
08:41:11  * evanlucasjoined
08:41:52  * mostynbjoined
08:43:47  * watilde_joined
08:46:48  * mostynb_joined
08:47:05  * evanluca_joined
08:51:35  * daviquit (Ping timeout: 240 seconds)
08:52:30  * mostynbquit (*.net *.split)
08:52:30  * evanlucasquit (*.net *.split)
08:52:30  * watildequit (*.net *.split)
08:57:17  * ashish0304quit (Read error: Connection reset by peer)
09:22:10  * rendarjoined
09:37:06  * esasquit (Read error: Connection reset by peer)
10:14:17  * bobmcwjoined
10:28:38  * bobmcwquit (Remote host closed the connection)
10:34:04  * xaxxonquit (Quit: Textual IRC Client: www.textualapp.com)
10:48:54  <trungl-bot>Tree closed by buildbot@chromium.org: Tree is closed (Automatic: "SimdJs - all" on http://build.chromium.org/p/client.v8/builders/V8%20Arm%20-%20debug/builds/490 "V8 Arm - debug" from 4ff159bd28be36a39a1f8416cdf8fccafd3c2f95: bmeurer@chromium.org)
10:53:57  <trungl-bot>Tree opened by machenbach@chromium.org: open - simdjs errors -> bots down
10:54:55  * xaxxonjoined
11:21:27  * ashish0304joined
11:28:15  * ashish0304quit (Remote host closed the connection)
11:39:13  <trungl-bot>Tree closed by buildbot@chromium.org: Tree is closed (Automatic: "Mjsunit" on http://build.chromium.org/p/client.v8/builders/V8%20Mac%20GC%20Stress/builds/4243 "V8 Mac GC Stress" from ad943fe44ede22b90b871e1233334dff5ff545c3: cbruni@chromium.org)
11:58:25  * watilde_quit (Remote host closed the connection)
11:59:19  <trungl-bot>Tree opened by machenbach@chromium.org: open - simdjs errors -> bots down
12:11:19  * WakiMiko_quit (Remote host closed the connection)
12:12:13  * WakiMikojoined
12:26:21  * xaxxonquit (Quit: Textual IRC Client: www.textualapp.com)
13:13:49  <trungl-bot>Tree closed by buildbot@chromium.org: Tree is closed (Automatic: "Test262 - no variants" on http://build.chromium.org/p/client.v8/builders/V8%20Win32%20-%20debug/builds/591 "V8 Win32 - debug" from e35554214902d68a76ad5858e2b86787f72834a5: cbruni@chromium.org,yangguo@chromium.org)
13:17:50  <trungl-bot>Tree opened by machenbach@chromium.org: open
13:23:14  * watildejoined
13:32:46  * watildequit (Remote host closed the connection)
13:34:06  * Net147quit (Ping timeout: 245 seconds)
13:35:33  * Net147joined
13:36:36  * watildejoined
13:36:41  * watildequit (Remote host closed the connection)
13:41:06  * watildejoined
13:41:14  * watildequit (Remote host closed the connection)
13:45:11  * bradleymeckquit (Quit: bradleymeck)
13:47:09  * watildejoined
13:53:37  * xaxxonjoined
13:54:30  <xaxxon>I'm seeing scary performance warnings about changing the prototype of an existing object. how bad is it in V8 to call v8::Object::SetPrototype with a new value?
13:55:00  <xaxxon>scary = affects not just the current object, but all code that can see that object forever
13:57:18  <xaxxon>basically I have a FunctionTemplate with some instancetemplate stuff and some prototypetemplate stuff.. and sometimes I want both when making a new object, and sometimes I just want the instancetemplate stuff but with a different prototype
14:01:30  * Net147quit (Read error: Connection reset by peer)
14:07:10  * Net147joined
14:08:14  <trungl-bot>Tree closed by machenbach@chromium.org: closed
14:08:58  * watildequit (Remote host closed the connection)
14:10:34  <xaxxon>I'm actually pretty confused that there doesn't seem to be any way to create a new object with a specified prototype other than creating a functiontemplate.. like there's no object::new(isolate, prototype); .. which I'm hoping means that calling setprototype isn't that bad
14:10:39  * watildejoined
14:11:46  * Net147quit (Ping timeout: 240 seconds)
14:13:07  * Net147joined
14:18:15  * Net147quit (Ping timeout: 260 seconds)
14:21:44  * Net147joined
14:27:47  * watildequit (Remote host closed the connection)
14:30:18  * bradleymeckjoined
14:31:20  * jugglinmikejoined
14:31:57  * watildejoined
14:35:10  <bradleymeck>where are native syntax stubs actually registered I made a `CALLSITE_GET(GetFunctionLineNumber, ReturnPositiveNumberOrNull)`, but mksnapshot fails to compile with `Extension or internal compilation error: % is not defined in native messages.js at line 380`
14:35:28  <trungl-bot>Tree opened by machenbach@chromium.org: open
14:45:37  * davijoined
14:48:12  * watildequit (Remote host closed the connection)
14:50:34  <trungl-bot>Tree closed by buildbot@chromium.org: Tree is closed (Automatic: "Mjsunit" on http://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20gc%20stress/builds/1726 "V8 Linux - gc stress" from 4e95426ae65572514ebc80e42742f981de3ccd5b: machenbach@chromium.org)
14:57:55  * daviquit (Ping timeout: 260 seconds)
14:59:25  * davijoined
15:01:02  * watildejoined
15:01:38  <trungl-bot>Tree closed by machenbach@chromium.org: Tree is closed (looking)
15:02:32  * daviquit (Remote host closed the connection)
15:03:28  * davijoined
15:14:08  * daviquit (Ping timeout: 272 seconds)
15:15:43  <trungl-bot>Tree opened by machenbach@chromium.org: open
15:15:48  * Guest84596quit (Changing host)
15:15:48  * Guest84596joined
15:15:55  * Guest84596changed nick to kenansulayman
15:24:47  <trungl-bot>Tree closed by buildbot@chromium.org: Tree is closed (Automatic: "Check" on http://build.chromium.org/p/client.v8/builders/V8%20Arm/builds/4397 "V8 Arm" from db52dbbbfe10cbabfd74e1882ddf3c0b3c0ecf03: bradnelson@chromium.org,cbruni@chromium.org,epertoso@chromium.org,ishell@chromium.org,jarin@chromium.org,ssanfilippo@chromium.org)
15:28:54  * watildequit (Remote host closed the connection)
15:29:50  <trungl-bot>Tree opened by machenbach@chromium.org: open
15:30:47  * watildejoined
15:30:49  * watildequit (Remote host closed the connection)
15:33:34  * watildejoined
15:34:24  * watildequit (Remote host closed the connection)
15:35:18  * watildejoined
15:35:54  <trungl-bot>Tree opened by machenbach@chromium.org: open - commits are delayed
15:43:44  * RT|Chatzillaquit (Quit: ChatZilla 0.9.86.1 [Firefox 2.0.0.22pre/2010030309])
15:50:04  * aperezdcquit (Quit: leaving)
15:50:38  * etnbrdquit (Ping timeout: 250 seconds)
15:52:35  * dobsonquit (Ping timeout: 240 seconds)
15:54:08  * deavidsedicequit (Ping timeout: 256 seconds)
16:00:23  * watildequit (Remote host closed the connection)
16:02:16  * mostynb_quit (Quit: Leaving)
16:02:36  * deavidjoined
16:05:06  * davijoined
16:05:22  * dobsonjoined
16:13:07  * aperezdcjoined
16:36:20  * jgijoined
16:37:15  * sofquit (Ping timeout: 240 seconds)
16:38:15  * iamstefquit (Ping timeout: 240 seconds)
16:38:55  * Martijncquit (Ping timeout: 240 seconds)
16:38:56  * oleavrquit (Ping timeout: 252 seconds)
16:39:18  * ErikCorry_quit (Ping timeout: 252 seconds)
16:39:18  * eseidelquit (Ping timeout: 252 seconds)
16:41:04  * ErikCorry_joined
16:42:07  * jgiquit (Quit: jgi)
16:43:03  * Martijncjoined
16:44:28  * eseideljoined
16:45:21  * oleavrjoined
16:45:22  * iamstefjoined
16:46:20  * bradleymeckquit (Quit: bradleymeck)
16:52:58  * sofjoined
17:00:23  * bradleymeckjoined
17:06:11  * daviquit (Ping timeout: 264 seconds)
17:20:36  * jgijoined
18:02:30  * jgiquit (Quit: jgi)
18:07:42  * jgijoined
18:10:42  * xaxxonquit (Quit: My Mac has gone to sleep. ZZZzzz…)
18:32:58  * davijoined
18:33:50  * s1wquit (Ping timeout: 276 seconds)
18:34:56  * Martijncquit (Ping timeout: 240 seconds)
18:35:43  * xaxxonjoined
18:36:48  * Martijncjoined
18:40:30  * s1wjoined
18:40:55  * s1wchanged nick to Guest42535
18:54:44  * watildejoined
19:07:35  * daviquit (Ping timeout: 240 seconds)
19:17:32  * jgiquit (Quit: jgi)
19:19:10  * jgijoined
19:37:26  <trungl-bot>Tree closed by buildbot@chromium.org: Tree is closed (Automatic: "Check" on http://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20nosnap%20-%20debug/builds/5219 "V8 Linux - nosnap - debug" from 58a9bc5b5346eed84e55361dd2557074f6108a5c: adamk@chromium.org (:aklein))
19:37:51  * davi_joined
19:48:30  <trungl-bot>Tree closed by adamk@chromium.org (:aklein): Tree is closed (adamk working on nosnap fix)
19:50:54  * JoWiejoined
20:09:01  * jgiquit (Quit: jgi)
20:10:21  * jgijoined
20:39:21  * xaxxonquit (Quit: My Mac has gone to sleep. ZZZzzz…)
20:47:50  <trungl-bot>Tree opened by machenbach@chromium.org: open
20:59:24  * C-Manjoined
21:12:36  * esasjoined
21:25:04  * rendarquit (Ping timeout: 256 seconds)
21:31:17  * rendarjoined
22:00:21  * davi_quit (Ping timeout: 245 seconds)
22:02:06  * jgiquit (Quit: jgi)
22:09:16  * jugglinmikequit (Ping timeout: 256 seconds)
22:32:09  * RT|Chatzillajoined
22:57:14  * jgijoined
23:18:45  <trungl-bot>Tree closed by buildbot@chromium.org: Tree is closed (Automatic: "Check" on http://build.chromium.org/p/client.v8/builders/V8%20Linux64%20-%20avx2/builds/5336 "V8 Linux64 - avx2" from f9eef1f33d2e5cde8cb948424e7ebf509090aa59: machenbach@chromium.org)
23:23:53  * WakiMikoquit (Max SendQ exceeded)
23:24:43  * WakiMikojoined
23:32:23  * jugglinmikejoined
23:51:06  * C-Manquit (Quit: Connection reset by beer)