Unreviewed, fix cloop.
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 May 2016 04:58:30 +0000 (04:58 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 May 2016 04:58:30 +0000 (04:58 +0000)
* bytecode/ValueProfile.cpp:
(JSC::ResultProfile::emitDetectNumericness):
(JSC::ResultProfile::emitSetNonNumber):
* bytecode/ValueProfile.h:
(JSC::ResultProfile::addressOfFlags):
(JSC::ResultProfile::addressOfSpecialFastPathCount):
(JSC::ResultProfile::detectNumericness):
(JSC::ResultProfile::hasBits):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@200613 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/ValueProfile.cpp
Source/JavaScriptCore/bytecode/ValueProfile.h

index 7c55251..24c5a9b 100644 (file)
@@ -1,3 +1,16 @@
+2016-05-09  Filip Pizlo  <fpizlo@apple.com>
+
+        Unreviewed, fix cloop.
+
+        * bytecode/ValueProfile.cpp:
+        (JSC::ResultProfile::emitDetectNumericness):
+        (JSC::ResultProfile::emitSetNonNumber):
+        * bytecode/ValueProfile.h:
+        (JSC::ResultProfile::addressOfFlags):
+        (JSC::ResultProfile::addressOfSpecialFastPathCount):
+        (JSC::ResultProfile::detectNumericness):
+        (JSC::ResultProfile::hasBits):
+
 2016-05-09  Michael Saboff  <msaboff@apple.com>
 
         Crash beneath ObjCCallbackFunctionImpl::call
index 6ea5172..b145d01 100644 (file)
@@ -31,6 +31,7 @@
 
 namespace JSC {
 
+#if ENABLE(JIT)
 void ResultProfile::emitDetectNumericness(CCallHelpers& jit, JSValueRegs regs, TagRegistersMode mode)
 {
     CCallHelpers::Jump isInt32 = jit.branchIfInt32(regs, mode);
@@ -53,6 +54,7 @@ void ResultProfile::emitSetNonNumber(CCallHelpers& jit)
 {
     jit.or32(CCallHelpers::TrustedImm32(ResultProfile::NonNumber), CCallHelpers::AbsoluteAddress(addressOfFlags()));
 }
+#endif // ENABLE(JIT)
 
 } // namespace JSC
 
index 8cc2bac..fe759ca 100644 (file)
@@ -248,10 +248,6 @@ public:
     void* addressOfFlags() { return &m_bytecodeOffsetAndFlags; }
     void* addressOfSpecialFastPathCount() { return &m_specialFastPathCount; }
     
-    // Sets (Int32Overflow | Int52Overflow | NonNegZeroDouble | NegZeroDouble) if it sees a
-    // double. Sets NonNumber if it sees a non-number.
-    void emitDetectNumericness(CCallHelpers&, JSValueRegs, TagRegistersMode = HaveTagRegisters);
-    
     void detectNumericness(JSValue value)
     {
         if (value.isInt32())
@@ -262,12 +258,18 @@ public:
         }
         m_bytecodeOffsetAndFlags |= NonNumber;
     }
+
+#if ENABLE(JIT)    
+    // Sets (Int32Overflow | Int52Overflow | NonNegZeroDouble | NegZeroDouble) if it sees a
+    // double. Sets NonNumber if it sees a non-number.
+    void emitDetectNumericness(CCallHelpers&, JSValueRegs, TagRegistersMode = HaveTagRegisters);
     
     // Sets (Int32Overflow | Int52Overflow | NonNegZeroDouble | NegZeroDouble).
     void emitSetDouble(CCallHelpers&);
     
     // Sets NonNumber.
     void emitSetNonNumber(CCallHelpers&);
+#endif // ENABLE(JIT)
 
 private:
     bool hasBits(int mask) const { return m_bytecodeOffsetAndFlags & mask; }