Index: src/execution.cc |
diff --git a/src/execution.cc b/src/execution.cc |
index 924814cff46cb4257e185eac1c78734eb1b1c884..1e0a6a8e578b3603d0ffaa2f1b60d316bb1165f2 100644 |
--- a/src/execution.cc |
+++ b/src/execution.cc |
@@ -819,10 +819,10 @@ Handle<JSFunction> Execution::InstantiateFunction( |
if (!data->do_not_cache()) { |
// Fast case: see if the function has already been instantiated |
int serial_number = Smi::cast(data->serial_number())->value(); |
- Object* elm = |
- isolate->native_context()->function_cache()-> |
- GetElementNoExceptionThrown(isolate, serial_number); |
- if (elm->IsJSFunction()) return Handle<JSFunction>(JSFunction::cast(elm)); |
+ Handle<JSObject> cache(isolate->native_context()->function_cache()); |
+ Handle<Object> elm = |
+ Object::GetElementNoExceptionThrown(isolate, cache, serial_number); |
+ if (elm->IsJSFunction()) return Handle<JSFunction>::cast(elm); |
} |
// The function has not yet been instantiated in this context; do it. |
Handle<Object> args[] = { data }; |