WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
42182
Change how numeric compare functions are detected
https://bugs.webkit.org/show_bug.cgi?id=42182
Summary
Change how numeric compare functions are detected
Gavin Barraclough
Reported
2010-07-13 11:33:22 PDT
There are three problems with the current mechanism: * It requires that a function executable be bytecode compiled without being JIT generated (in order to copy the bytecode from the numeric compare function). This is a problem since we have an invariant when running with the JIT that functions are never bytecode compiled without also being JIT generated (after checking the codeblock we assume the function has JIT code). To help maintain this invariant * This implementation will prevent us from experimenting with alternate compilation paths which do not compile via bytecode. * It doesn't work. Functions passing more than two arguments will match if they are comparing their last two arguments, not the first two. Generally the mapping back from bytecode to semantics may be more complex then initially expected. (bug can be triggered by following test: "javascript: alert([3,1,5,2,4].sort(function(w, x, y){ return x - y; }));")
Attachments
Initial patch, new copy with changelog & test case to follow.
(8.32 KB, patch)
2010-07-13 11:35 PDT
,
Gavin Barraclough
no flags
Details
Formatted Diff
Diff
The patch
(10.88 KB, patch)
2010-07-13 13:04 PDT
,
Gavin Barraclough
no flags
Details
Formatted Diff
Diff
Ooops, submitted patch had issues !DEBUG.
(11.39 KB, patch)
2010-07-13 13:19 PDT
,
Gavin Barraclough
oliver
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Gavin Barraclough
Comment 1
2010-07-13 11:35:28 PDT
Created
attachment 61401
[details]
Initial patch, new copy with changelog & test case to follow.
Gavin Barraclough
Comment 2
2010-07-13 13:04:18 PDT
Created
attachment 61407
[details]
The patch
WebKit Review Bot
Comment 3
2010-07-13 13:06:34 PDT
Attachment 61407
[details]
did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 JavaScriptCore/parser/Nodes.h:810: More than one command on the same line [whitespace/newline] [4] JavaScriptCore/parser/Nodes.h:811: More than one command on the same line [whitespace/newline] [4] Total errors found: 2 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Eric Seidel (no email)
Comment 4
2010-07-13 13:16:48 PDT
Attachment 61407
[details]
did not build on mac: Build output:
http://webkit-commit-queue.appspot.com/results/3528112
Gavin Barraclough
Comment 5
2010-07-13 13:19:00 PDT
Created
attachment 61408
[details]
Ooops, submitted patch had issues !DEBUG.
WebKit Review Bot
Comment 6
2010-07-13 13:21:43 PDT
Attachment 61408
[details]
did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 JavaScriptCore/parser/Nodes.h:810: More than one command on the same line [whitespace/newline] [4] JavaScriptCore/parser/Nodes.h:811: More than one command on the same line [whitespace/newline] [4] Total errors found: 2 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Gavin Barraclough
Comment 7
2010-07-13 13:34:36 PDT
committed
r63244
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug