Bug 55030 - [jsc] Add more ASSERTs to JSGlobalData.cpp
Summary: [jsc] Add more ASSERTs to JSGlobalData.cpp
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-23 03:23 PST by Harald Fernengel
Modified: 2012-03-12 14:09 PDT (History)
4 users (show)

See Also:


Attachments
the patch (3.68 KB, patch)
2011-02-23 03:24 PST, Harald Fernengel
commit-queue: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Fernengel 2011-02-23 03:23:18 PST
Add sanity checks when storing the global VTables.
        
When linking statically, some aggressive compilers might optimize
out the vtable from JSArray and friends if it can statically resolve
all function calls. In this case, the assumption that the first data
member in the class points to the VTable is wrong. To catch those
cases early on, a few ASSERTs were added.
Comment 1 Harald Fernengel 2011-02-23 03:24:39 PST
Created attachment 83464 [details]
the patch
Comment 2 Geoffrey Garen 2011-02-24 12:18:31 PST
Comment on attachment 83464 [details]
the patch

r=me
Comment 3 Eric Seidel (no email) 2011-02-24 12:19:24 PST
Comment on attachment 83464 [details]
the patch

Looks like this patch does not apply.  Since I don't think Harald is a committer, marking cq+ (but I expect it will fail).
Comment 4 WebKit Commit Bot 2011-02-24 12:27:27 PST
Comment on attachment 83464 [details]
the patch

Rejecting attachment 83464 [details] from commit-queue.

Failed to run "['./Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=eseidel-cq-sl', 'ap..." exit_code: 2

Last 500 characters of output:
svn-apply', u'--reviewer', u'Geoffrey Garen', u'--force']" exit_code: 1

Parsed 2 diffs from patch file(s).
patching file Source/JavaScriptCore/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Source/JavaScriptCore/runtime/JSGlobalData.cpp
Hunk #1 FAILED at 84.
1 out of 1 hunk FAILED -- saving rejects to file Source/JavaScriptCore/runtime/JSGlobalData.cpp.rej

Failed to run "[u'/Projects/CommitQueue/Tools/Scripts/svn-apply', u'--reviewer', u'Geoffrey Garen', u'--force']" exit_code: 1

Full output: http://queues.webkit.org/results/7986549
Comment 5 Darin Adler 2011-06-18 12:30:16 PDT
Comment on attachment 83464 [details]
the patch

Need a new vresion of this patch that applies.
Comment 6 Gavin Barraclough 2012-03-12 14:09:42 PDT
I think this bug is now redundant.  Not a bad idea at the time, but JS objects no longer have vptrs!