[v8-users] Current V8 requires MacOS 10.12? Cannot build on 10.11
trying to build: 1aead19c276a9679723ecd7c0cfd2f7c1c94a53d I run tools/dev/v8gen.py -vv x64.release and get: Traceback (most recent call last): File "/Users/xaxxon/v8/build/mac/find_sdk.py", line 89, in print main() File "/Users/xaxxon/v8/build/mac/find_sdk.py", line 62, in main raise Exception('No %s+ SDK found' % min_sdk_version) * Exception: No 10.12+ SDK found* I really don't want to upgrade from 10.11 - 10.12 loses a lot of features I rely on. Thank you. --Zac -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [v8-users] How does V8 compiles and executes JavaScript events?
On Mon, Sep 4, 2017 at 4:07 PM, Hanyun Taowrote: > Hi Jakob! > > I'm reading the Invoke(..) function you mentioned, and I believe the > following part of the code plays an important role in executing the > JavaScript but I cannot fully understand it. > > typedef Object* (*JSEntryFunction)(Object* new_target, Object* target, > Object* receiver, int argc, > Object*** args); > > > Handle code = is_construct > ? isolate->factory()->js_construct_entry_code() > : isolate->factory()->js_entry_code(); > > > { > // Save and restore context around invocation and block the > // allocation of handles without explicit handle scopes. > SaveContext save(isolate); > SealHandleScope shs(isolate); > JSEntryFunction stub_entry = FUNCTION_CAST(code-> > entry()); > > > if (FLAG_clear_exceptions_on_js_entry) isolate->clear_pending_ > exception(); > > > // Call the function through the right JS entry stub. > Object* orig_func = *new_target; > Object* func = *target; > Object* recv = *receiver; > Object*** argv = reinterpret_cast
Re: [v8-users] Re: V8 snapshots
That kind of error usually means you either haven't created a context or aren't in a context or haven't created an appropriate handle. Or... Something else :-/. Maybe a lock? V8 errors are very much a "you screwed up somewhere" notification and often nothing more On Tue, Sep 5, 2017 at 9:42 AM Francisco Moraeswrote: > I will give it a try sometime this week. I tried to remove our > initialization JS file but that caused a failure further down the > serialization as well, so still investigating. > > > On Saturday, September 2, 2017 at 1:07:28 AM UTC-4, Zac Hansen wrote: >> >> Can you post a minimal complete example that reproduces your problem? >> >> On Friday, September 1, 2017 at 8:57:51 AM UTC-7, Francisco Moraes wrote: >>> >>> Hello, >>> >>> I am trying to create a snapshot that includes most of code but I ran >>> into the following assertion: >>> >>> CHECK(isolate->handle_scope_implementer()->blocks()->is_empty()); >>> >>> Any clarifications about what would generate it that our JS code is >>> doing and is not legal? I found that creating Unsafe Arrays is also not >>> permitted but that is relatively easy to work around. >>> >>> Francisco >>> >> -- > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to a topic in the > Google Groups "v8-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/v8-users/kxtnaSSQL9c/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > v8-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [v8-users] Why element kind transition can't cause the cache to miss
What cache are you talking about? Different elements kinds do cause inline cache misses. On Tue, Sep 5, 2017 at 3:08 AM, cyrilwrote: > Hi all, > > Why element kind transition can't cause the cache to miss? > > > -- > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to v8-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[v8-users] Re: V8 snapshots
I will give it a try sometime this week. I tried to remove our initialization JS file but that caused a failure further down the serialization as well, so still investigating. On Saturday, September 2, 2017 at 1:07:28 AM UTC-4, Zac Hansen wrote: > > Can you post a minimal complete example that reproduces your problem? > > On Friday, September 1, 2017 at 8:57:51 AM UTC-7, Francisco Moraes wrote: >> >> Hello, >> >> I am trying to create a snapshot that includes most of code but I ran >> into the following assertion: >> >> CHECK(isolate->handle_scope_implementer()->blocks()->is_empty()); >> >> Any clarifications about what would generate it that our JS code is doing >> and is not legal? I found that creating Unsafe Arrays is also not permitted >> but that is relatively easy to work around. >> >> Francisco >> > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[v8-users] Why element kind transition can't cause the cache to miss
Hi all, Why element kind transition can't cause the cache to miss? -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[v8-users] Re: Destructing mismatch return of a function raises an invalid Error
Oh nice! Thanks for the update. On Monday, September 4, 2017 at 5:14:12 PM UTC+1, Afshin Mehrabani wrote: > > I'm not sure this is a bug is a default behavior but it does look weird to > me. I spent a few minutes today until I figured out what was the problem. > > Imagine this code: > > function helloworld () { >> return 42; >> } >> let [magic, index] = helloworld(); >> console.log(magic, index) > > > Just because the return type of the function doesn't match, engine raises > this error: > > TypeError: helloworld is not a function > > > Which is wrong. `helloworld` is a function but the return type doesn't > match. Probably the error should be something like "Cannot cast Number to > Array or Iterable". > > The same code in Python raises this error: > > TypeError: 'int' object is not iterable > > > > Thanks, > > Afshin > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [v8-users] Destructing mismatch return of a function raises an invalid Error
On Mon, Sep 4, 2017 at 6:14 PM, Afshin Mehrabaniwrote: > I'm not sure this is a bug is a default behavior but it does look weird to > me. I spent a few minutes today until I figured out what was the problem. > > Imagine this code: > >> function helloworld () { >> return 42; >> } >> let [magic, index] = helloworld(); >> console.log(magic, index) > > > Just because the return type of the function doesn't match, engine raises > this error: > >> TypeError: helloworld is not a function > > > Which is wrong. `helloworld` is a function but the return type doesn't > match. Probably the error should be something like "Cannot cast Number to > Array or Iterable". > > The same code in Python raises this error: > >> TypeError: 'int' object is not iterable > > > > Thanks, > > Afshin That was fixed a few months ago, see [0]. You are probably using an older V8 version. [0] https://bugs.chromium.org/p/v8/issues/detail?id=5532 -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.