Last Comment Bug 650072 - Make object equality testing faster
: Make object equality testing faster
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Trunk
: All All
: -- normal with 1 vote (vote)
: ---
Assigned To: general
:
: Jason Orendorff [:jorendorff]
Mentors:
Depends on:
Blocks: 650063
  Show dependency treegraph
 
Reported: 2011-04-14 11:56 PDT by David Mandelin [:dmandelin]
Modified: 2011-10-18 09:18 PDT (History)
8 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description David Mandelin [:dmandelin] 2011-04-14 11:56:56 PDT
From bug 643615 comment 5. This is needed for deltablue and richards. We think the extended equality hook (which needs to be tested for on the fast path) might be part of the problem, but we're not sure it's the only problem. 

function A() {
}

function f() {
    var a = new A();
    var b = new A();
    //var b = a;
    var c;
    for (var j = 0; j < 10000000; ++j) {
        c = a == b;
    }
}

var t0 = new Date;
f();
print(new Date - t0);
Comment 1 Jan de Mooij [:jandem] 2011-04-14 12:04:58 PDT
FWIW, on the TI branch we are as fast as V8 on this testcase.
Comment 2 Tom Schuster [:evilpie] 2011-10-18 09:18:19 PDT
Comment 1, we merged TI

Note You need to log in before you can comment on or make changes to this bug.