| Index: src/ast.cc
|
| diff --git a/src/ast.cc b/src/ast.cc
|
| index 6d1dc12054419dc27e14c3f5a13fa90952d5e364..823dedee098fc5942a63501057061c9ea8d67a3a 100644
|
| --- a/src/ast.cc
|
| +++ b/src/ast.cc
|
| @@ -599,7 +599,7 @@ bool Call::ComputeGlobalTarget(Handle<GlobalObject> global,
|
| Handle<JSFunction> candidate(JSFunction::cast(cell_->value()));
|
| // If the function is in new space we assume it's more likely to
|
| // change and thus prefer the general IC code.
|
| - if (!HEAP->InNewSpace(*candidate)) {
|
| + if (!lookup->isolate()->heap()->InNewSpace(*candidate)) {
|
| target_ = candidate;
|
| return true;
|
| }
|
|
|