00:37:43  * [[zz]]joined
02:04:54  * seventhquit (Ping timeout: 264 seconds)
02:48:13  * [[zz]]quit (Remote host closed the connection)
03:14:05  * carifjoined
03:34:22  * carifquit (*.net *.split)
03:34:24  * nierob_quit (*.net *.split)
03:34:48  * nierob_joined
03:35:10  * carifjoined
03:44:08  * [[zz]]joined
04:09:11  * Petkajoined
05:56:49  * jaseemabidjoined
06:33:11  * C-Manjoined
06:51:58  * jaseemabidquit (Read error: Connection reset by peer)
06:52:40  * jaseemabidjoined
07:32:11  * bnoordhuisjoined
07:32:54  * Lethalmanjoined
07:46:33  * juanjosanchezjoined
07:54:11  * jaseemabidquit (Remote host closed the connection)
08:00:31  * jaseemabidjoined
08:08:23  * spolujoined
08:26:54  * abraxasjoined
09:11:01  * bnoordhuisquit (Ping timeout: 248 seconds)
09:19:41  * C-Manquit (Quit: Connection reset by beer)
09:21:03  * C-Manjoined
09:48:11  * spoluquit (Ping timeout: 248 seconds)
10:08:55  * Net147joined
10:19:26  * seventhjoined
11:15:49  * [[zz]]quit (Ping timeout: 248 seconds)
11:26:29  * iamdustanquit (Ping timeout: 248 seconds)
11:49:14  * spolujoined
11:59:01  * bnoordhuisjoined
12:21:14  * xan_quit (Quit: leaving)
12:26:56  * iamdustanjoined
12:43:10  <muelli>I'm probably struggling with Handles. I am writing tests but I can't make helper functions work. Such as smth like "i::String* CreateStringHelper()". cctest crashes when running the program. What's the correct way to create objects in helper functions?
12:49:40  <bnoordhuis>muelli: i'm guessing you need to i::Handle-ify the return value?
12:56:16  <muelli>bnoordhuis: hm. Maybe. I don't mind the exact method. But getting it to work would be great ;-) So I get a i::Handle and return handle.Close(mystring) ?
13:01:18  <bnoordhuis>muelli: i think you only need to do -> i::HandleScope handle_scope(isolate); i::Handle<i::String> rval = ...; return *rval;
13:02:35  <muelli>hm. Okay. so my helper function gets a HandleScope as well... I thought I could get away without getting all that.
13:03:23  <muelli>I couldn't find any example of helper functions that return objects in the cctests :-| Let me try to dig up a nice example of what I think I want to do.
13:04:36  <bnoordhuis>muelli: you may need to CloseAndEscape() it. i'm a bit fuzzy on the exact rules around i::HandleScope
13:05:20  <bnoordhuis>most code in src/ just returns but that's probably because there's another HandleScope a few stack frames up
13:12:01  <muelli>yeah, the functions I have which intend to call a helper function have HandleScopes, too.
13:13:16  * carifquit (Quit: Ex-Chat)
13:14:56  * carifjoined
13:15:56  <muelli>hm. now it seems to work just as expected. weird...
13:23:46  <aboudreault>could anyone explain me the difference of an InstanceTemplate and PrototypeTemplate (FunctionTemplate). looks like I have to use InstanceTemplate to get my things working, but not sure why
13:50:59  * [[zz]]joined
13:53:39  * Jarvixjoined
14:01:24  * fb55joined
14:29:30  <muelli>ah. no. doesn't work... Stupid me. I wasn't calling my helper funtion at all -.-
14:40:18  <muelli>bnoordhuis: here's a small example of what I'm trying to do. I tried varies combinations of handles and scopes. But somehow the test results are different from when I just do that inline, i.e. not using the helper function. http://www.fpaste.org/46120/15022971/
14:47:23  * jaseemabidquit (Ping timeout: 248 seconds)
14:49:53  <bnoordhuis> // Jesus. All that effort to get a tainted stream <- priceless comment :)
14:51:00  <bnoordhuis>muelli: forgive me but a pet peeve of mine is using string pointers where const char arrays suffice
14:51:11  <bnoordhuis>that is -> const char* str1 = "{ foo get for : */ <- \n\n /*foo*/ bib";
14:51:22  * Net147quit (Quit: I love my HydraIRC -> http://www.hydrairc.com <-)
14:51:25  <bnoordhuis>can be written as -> const char str1[] = "{ foo get for : */ <- \n\n /*foo*/ bib";
14:51:37  <bnoordhuis>and then you replace strlen(str1) with sizeof(str1) - 1
14:51:42  <muelli>uh, k. I think it is actually coming from the test-parsing itself.
14:51:42  <bnoordhuis>okay, back on topic
14:52:11  <muelli>i.e. not my code ;) But yeah, it seems to make a lot of sense.
14:52:29  <bnoordhuis>i don't see anything obviously wrong in that snippet
14:53:00  <bnoordhuis>what happens when you run it?
14:54:04  <muelli>bnoordhuis: the test results are different. that's all I can say for now as I don't know more.
14:54:23  <muelli>Different from running inline, i.e. not using that helper function but copy and pasting the content into the function
14:56:31  <bnoordhuis>muelli: does the gc run at sometime? does a strategically placed AssertNoGCScope get hit?
15:02:07  <muelli>hm. never heard of AssertNoGCScope before. Let me try to use it properly.
15:08:11  * spoluquit (Ping timeout: 248 seconds)
15:08:30  <muelli>meh... ../src/../include/v8.h:4290:41: error: �v8::AssertNoGCScope::AssertNoGCScope(v8::Isolate*)� is private
15:09:02  <muelli>http://www.fpaste.org/46135/38150413/
15:13:56  <bnoordhuis>muelli: are you testing with a release build or a debug build?
15:15:31  <muelli>bnoordhuis: both
15:16:33  <muelli>hm. interesting that the error message is the very same for both builds. I would expect the symbol to not be visible at all.. *mumble*
15:16:41  <muelli>in release mode that is
15:17:34  <bnoordhuis>oh, seems it might be on its way out in v8 HEAD
15:17:40  <bnoordhuis>precious little use sites left
15:23:19  <muelli>another option would be to #define that stuff :>
15:33:52  * c4milojoined
15:38:18  * fb55quit (Remote host closed the connection)
15:38:48  * fb55joined
15:39:29  * fb55quit (Read error: Connection reset by peer)
15:39:42  * fb55joined
15:45:58  <muelli>hm. OpenHandle and friends do not work because the Utf16CharacterStream is not an i::Object. Weird.
16:02:31  * RT|Chatzillaquit (Quit: ChatZilla 0.9.86.1 [Firefox 2.0.0.22pre/2009081014])
16:09:38  * [[zzz]]joined
16:09:51  * [[zz]]quit (Read error: Connection reset by peer)
16:17:57  * fb55quit (Ping timeout: 252 seconds)
16:21:01  * [[zzz]]quit (Ping timeout: 245 seconds)
16:22:33  * fb55joined
16:29:57  * Lethalmanquit (Remote host closed the connection)
16:30:31  * bnoordhuisquit (Ping timeout: 272 seconds)
16:32:56  * Jarvixquit (Ping timeout: 265 seconds)
17:09:54  * fb55quit (Remote host closed the connection)
17:10:23  * fb55joined
17:15:09  * fb55quit (Ping timeout: 252 seconds)
17:37:43  * fb55joined
17:44:28  * c4miloquit (Remote host closed the connection)
18:00:28  * fb55quit (Remote host closed the connection)
18:00:59  * fb55joined
18:04:00  * fb55_joined
18:04:43  * Lethalmanjoined
18:05:38  * fb55quit (Ping timeout: 264 seconds)
18:11:30  * muelliquit (Remote host closed the connection)
18:31:46  * bnoordhuisjoined
18:38:35  * fb55_quit (Remote host closed the connection)
18:39:05  * fb55joined
18:42:48  * juanjosanchezquit (Ping timeout: 240 seconds)
18:44:09  * fb55quit (Ping timeout: 272 seconds)
18:58:31  * bnoordhuisquit (Ping timeout: 245 seconds)
19:00:28  * bnoordhuisjoined
19:54:00  * iamdustanquit (Ping timeout: 265 seconds)
20:51:43  * Lethalmanquit (Read error: Connection reset by peer)
20:56:46  * nigglerquit (Quit: Computer has gone to sleep.)
22:10:38  * bnoordhuisquit (Ping timeout: 272 seconds)
22:44:36  * RT|Chatzillajoined
22:49:54  * Petkaquit (Read error: Connection reset by peer)
23:23:48  * c4milojoined