Status: New
Owner: ----
New issue 3865 by joaebert: Hydrogen produces invalid code
https://code.google.com/p/v8/issues/detail?id=3865
I tested the following JavaScript code in D8 (latest commit today,
176b68d11a2b485d9568d2e7fd03e6ed7b67dd54) and I run into an exception when
code for "parse" is generated.
The output when running d8 with --trace_codegen shows:
[...]
3856 3856 3856
3855 3855 3855
3854 3854 3854
3853 3853 3853
[generating full code for user-defined function: ]
[generating optimized code for user-defined function: ]
[generating full code for user-defined function: ScriptNameOrSourceURL]
[generating optimized code for user-defined function: ToBooleanStub]
[generating full code for user-defined function: GetLineNumber]
[generating full code for user-defined function: ScriptLocationFromPosition]
[generating full code for user-defined function: ScriptLineFromPosition]
[generating full code for user-defined function: charAt]
[generating full code for user-defined function: SourceLocation]
/home/joa/Desktop/bug.js:2: Invalid int: 3852
[generating full code for user-defined function: GetSourceLine]
[generating optimized code for user-defined function: LoadConstantStub]
[generating optimized code for user-defined function: StoreTransitionStub]
[generating optimized code for user-defined function: StoreTransitionStub]
[generating full code for user-defined function: SourceLocationRestrict]
[generating full code for user-defined function: SourceLocationSourceText]
[generating full code for user-defined function: substring]
throw "Invalid int: "+str;
[generating full code for user-defined function: GetPositionInLine]
[generating optimized code for user-defined
function: LoadConstantStub]
[generating optimized code for user-defined function: LoadConstantStub]
^
Running the same file with --hydrogen_filter ~ will not throw the exception.
Attachments:
bug.js 1.1 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.