Unreviewed, unbreak cloop.
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Apr 2016 16:38:23 +0000 (16:38 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Apr 2016 16:38:23 +0000 (16:38 +0000)
* runtime/VM.cpp:
(JSC::VM::getHostFunction):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/VM.cpp

index 2be050b..b240899 100644 (file)
@@ -1,3 +1,10 @@
+2016-04-23  Filip Pizlo  <fpizlo@apple.com>
+
+        Unreviewed, unbreak cloop.
+
+        * runtime/VM.cpp:
+        (JSC::VM::getHostFunction):
+
 2016-04-22  Filip Pizlo  <fpizlo@apple.com>
 
         Speed up bound functions a bit
index 14b3598..334ca3d 100644 (file)
@@ -502,7 +502,7 @@ static ThunkGenerator thunkGeneratorForIntrinsic(Intrinsic intrinsic)
     }
 }
 
-#endif // !ENABLE(JIT)
+#endif // ENABLE(JIT)
 
 NativeExecutable* VM::getHostFunction(NativeFunction function, NativeFunction constructor, const String& name)
 {
@@ -511,12 +511,16 @@ NativeExecutable* VM::getHostFunction(NativeFunction function, NativeFunction co
 
 NativeExecutable* VM::getHostFunction(NativeFunction function, Intrinsic intrinsic, NativeFunction constructor, const String& name)
 {
+#if ENABLE(JIT)
     if (canUseJIT()) {
         return jitStubs->hostFunctionStub(
             this, function, constructor,
             intrinsic != NoIntrinsic ? thunkGeneratorForIntrinsic(intrinsic) : 0,
             intrinsic, name);
     }
+#else // ENABLE(JIT)
+    UNUSED_PARAM(intrinsic);
+#endif // ENABLE(JIT)
     return NativeExecutable::create(*this,
         adoptRef(new NativeJITCode(MacroAssemblerCodeRef::createLLIntCodeRef(llint_native_call_trampoline), JITCode::HostCallThunk)), function,
         adoptRef(new NativeJITCode(MacroAssemblerCodeRef::createLLIntCodeRef(llint_native_construct_trampoline), JITCode::HostCallThunk)), constructor,