Changeset 43121 in webkit for trunk/JavaScriptCore/jit/JIT.cpp


Ignore:
Timestamp:
May 1, 2009, 2:20:11 PM (16 years ago)
Author:
[email protected]
Message:

2009-05-01 Geoffrey Garen <[email protected]>

Reviewed by Sam "That doesn't look like what I thought it looks like" Weinig.


Beefed up the JSValuePtr class and removed some non-JSValuePtr dependencies
on JSImmediate, in prepapration for making JSImmediate an implementation
detail of JSValuePtr.


SunSpider reports no change.

  • interpreter/Interpreter.cpp: (JSC::Interpreter::privateExecute):
  • jit/JIT.cpp: (JSC::JIT::privateCompileMainPass):
  • jit/JITArithmetic.cpp: (JSC::JIT::compileFastArith_op_mod):
  • runtime/JSGlobalObjectFunctions.cpp: (JSC::globalFuncParseInt): Updated for interface changes.
  • runtime/JSImmediate.h: (JSC::JSValuePtr::JSValuePtr):
  • runtime/JSValue.h: (JSC::JSValuePtr::): (JSC::jsImpossibleValue): (JSC::jsNull): (JSC::jsUndefined): (JSC::jsBoolean): (JSC::JSValuePtr::encode): (JSC::JSValuePtr::decode): (JSC::JSValuePtr::JSValuePtr): (JSC::JSValuePtr::operator bool): (JSC::JSValuePtr::operator==): (JSC::JSValuePtr::operator!=): (JSC::JSValuePtr::isUndefined): (JSC::JSValuePtr::isNull): Changed jsImpossibleValue(), jsNull(), jsUndefined(), and jsBoolean() to operate in terms of JSValuePtr instead of JSImmediate.
  • wtf/StdLibExtras.h: (WTF::bitwise_cast): Fixed up for clarity.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JIT.cpp

    r43103 r43121  
    678678            emitGetVirtualRegister(currentInstruction[1].u.operand, regT0);
    679679
    680             Jump isZero = branchPtr(Equal, regT0, ImmPtr(JSValuePtr::encode(js0())));
     680            Jump isZero = branchPtr(Equal, regT0, ImmPtr(JSValuePtr::encode(jsNumber(m_globalData, 0))));
    681681            addJump(emitJumpIfImmediateInteger(regT0), target + 2);
    682682
     
    778778            emitGetVirtualRegister(currentInstruction[1].u.operand, regT0);
    779779
    780             addJump(branchPtr(Equal, regT0, ImmPtr(JSValuePtr::encode(js0()))), target + 2);
     780            addJump(branchPtr(Equal, regT0, ImmPtr(JSValuePtr::encode(jsNumber(m_globalData, 0)))), target + 2);
    781781            Jump isNonZero = emitJumpIfImmediateInteger(regT0);
    782782
     
    921921            emitGetVirtualRegister(currentInstruction[1].u.operand, regT0);
    922922
    923             Jump isZero = branchPtr(Equal, regT0, ImmPtr(JSValuePtr::encode(js0())));
     923            Jump isZero = branchPtr(Equal, regT0, ImmPtr(JSValuePtr::encode(jsNumber(m_globalData, 0))));
    924924            addJump(emitJumpIfImmediateInteger(regT0), target + 2);
    925925
Note: See TracChangeset for help on using the changeset viewer.