AssemblyHelpers should not have a VM field
[WebKit.git] / Source / JavaScriptCore / ftl / FTLLazySlowPathCall.h
index 29214ac..b768c4f 100644 (file)
@@ -38,12 +38,12 @@ namespace JSC { namespace FTL {
 
 template<typename ResultType, typename... ArgumentTypes>
 RefPtr<LazySlowPath::Generator> createLazyCallGenerator(
-    FunctionPtr function, ResultType result, ArgumentTypes... arguments)
+    VM& vm, FunctionPtr function, ResultType result, ArgumentTypes... arguments)
 {
     return LazySlowPath::createGenerator(
-        [=] (CCallHelpers& jit, LazySlowPath::GenerationParams& params) {
+        [=, &vm] (CCallHelpers& jit, LazySlowPath::GenerationParams& params) {
             callOperation(
-                params.lazySlowPath->usedRegisters(), jit, params.lazySlowPath->callSiteIndex(),
+                vm, params.lazySlowPath->usedRegisters(), jit, params.lazySlowPath->callSiteIndex(),
                 params.exceptionJumps, function, result, arguments...);
             params.doneJumps.append(jit.jump());
         });