| 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..c182dd0ce5800d8db1247fcdf9d4490c0881e6ca 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();
|
| @@ -3245,7 +3243,7 @@ void FullCodeGenerator::EmitLog(CallRuntime* expr) {
|
| // 2 (array): Arguments to the format string.
|
| ZoneList<Expression*>* args = expr->arguments();
|
| ASSERT_EQ(args->length(), 3);
|
| - if (CodeGenerator::ShouldGenerateLog(args->at(0))) {
|
| + if (CodeGenerator::ShouldGenerateLog(isolate(), args->at(0))) {
|
| VisitForStackValue(args->at(1));
|
| VisitForStackValue(args->at(2));
|
| __ CallRuntime(Runtime::kLog, 2);
|
|
|