Bug 42207

Summary: Clean up interface to compile executables, always check for exceptions.
Product: WebKit Reporter: Gavin Barraclough <barraclough>
Component: JavaScriptCoreAssignee: Gavin Barraclough <barraclough>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
The patch oliver: review+

Gavin Barraclough
Reported 2010-07-13 15:33:18 PDT
Presently interface to compile executable is inconsistent between eval/program and function code, and is error prone in allowing a caller to byte compile without JIT compiling an executable (we rely on all executables with codeblocks having JIT code). Unify on an interface where all compilation is performed by a single compile (with ForCall|ForConstruct variants) method, and make all clients check for errors.
Attachments
The patch (50.78 KB, patch)
2010-07-13 15:36 PDT, Gavin Barraclough
oliver: review+
Gavin Barraclough
Comment 1 2010-07-13 15:36:21 PDT
Created attachment 61423 [details] The patch
WebKit Review Bot
Comment 2 2010-07-13 15:40:30 PDT
Attachment 61423 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 JavaScriptCore/runtime/Executable.cpp:144: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] JavaScriptCore/interpreter/Interpreter.cpp:3713: vm_throw is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] JavaScriptCore/interpreter/Interpreter.cpp:3874: vm_throw is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] JavaScriptCore/interpreter/Interpreter.cpp:4202: vm_throw is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Total errors found: 4 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Oliver Hunt
Comment 3 2010-07-13 15:52:14 PDT
Comment on attachment 61423 [details] The patch verify this works with the interpreter enabled before landing. including the jit+interpreter mode :D
Gavin Barraclough
Comment 4 2010-07-13 17:27:56 PDT
fixed in r63267, tested working in interpreter & JIT, could not get interpreter+JIT to work on the baseline.
Note You need to log in before you can comment on or make changes to this bug.