| Index: src/x64/full-codegen-x64.cc
|
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
|
| index 04005ac30af4103e3ba8808a390770bec44166b9..54472c21eaac7265ffcaf6dbe0872937cc0527fb 100644
|
| --- a/src/x64/full-codegen-x64.cc
|
| +++ b/src/x64/full-codegen-x64.cc
|
| @@ -280,8 +280,7 @@ void FullCodeGenerator::Generate() {
|
| Label ok;
|
| __ CompareRoot(rsp, Heap::kStackLimitRootIndex);
|
| __ j(above_equal, &ok, Label::kNear);
|
| - StackCheckStub stub;
|
| - __ CallStub(&stub);
|
| + __ call(isolate()->builtins()->StackCheck(), RelocInfo::CODE_TARGET);
|
| __ bind(&ok);
|
| }
|
|
|
| @@ -341,8 +340,7 @@ void FullCodeGenerator::EmitBackEdgeBookkeeping(IterationStatement* stmt,
|
| }
|
| EmitProfilingCounterDecrement(weight);
|
| __ j(positive, &ok, Label::kNear);
|
| - InterruptStub stub;
|
| - __ CallStub(&stub);
|
| + __ call(isolate()->builtins()->InterruptCheck(), RelocInfo::CODE_TARGET);
|
|
|
| // Record a mapping of this PC offset to the OSR id. This is used to find
|
| // the AST id from the unoptimized code in order to use it as a key into
|
| @@ -388,8 +386,8 @@ void FullCodeGenerator::EmitReturnSequence() {
|
| __ push(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
|
| __ CallRuntime(Runtime::kOptimizeFunctionOnNextCall, 1);
|
| } else {
|
| - InterruptStub stub;
|
| - __ CallStub(&stub);
|
| + __ call(isolate()->builtins()->InterruptCheck(),
|
| + RelocInfo::CODE_TARGET);
|
| }
|
| __ pop(rax);
|
| EmitProfilingCounterReset();
|
|
|