Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index a64a9728fec2ca84c86e369a9442553a18c37202..bf157476d486ded1823a229d5a99ee2493ceea30 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -1012,8 +1012,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ JumpIfRoot(x0, Heap::kNullValueRootIndex, &exit); |
__ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, &exit); |
__ Bind(&convert); |
- ToObjectStub stub(isolate()); |
- __ CallStub(&stub); |
+ __ Call(isolate()->builtins()->ToObject(), RelocInfo::CODE_TARGET); |
RestoreContext(); |
__ Bind(&done_convert); |
PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER); |
@@ -1108,10 +1107,9 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ Str(x10, FieldMemOperand(x3, FixedArray::OffsetOfElementAt(vector_index))); |
// x0 contains the key. The receiver in x1 is the second argument to the |
- // ForInFilterStub. ForInFilter returns undefined if the receiver doesn't |
+ // ForInFilter. ForInFilter returns undefined if the receiver doesn't |
// have the key or returns the name-converted key. |
- ForInFilterStub filter_stub(isolate()); |
- __ CallStub(&filter_stub); |
+ __ Call(isolate()->builtins()->ForInFilter(), RelocInfo::CODE_TARGET); |
RestoreContext(); |
PrepareForBailoutForId(stmt->FilterId(), BailoutState::TOS_REGISTER); |
__ CompareRoot(result_register(), Heap::kUndefinedValueRootIndex); |
@@ -2971,8 +2969,7 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
VisitForTypeofValue(expr->expression()); |
} |
__ Mov(x3, x0); |
- TypeofStub typeof_stub(isolate()); |
- __ CallStub(&typeof_stub); |
+ __ Call(isolate()->builtins()->Typeof(), RelocInfo::CODE_TARGET); |
context()->Plug(x0); |
break; |
} |
@@ -3347,8 +3344,7 @@ void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { |
VisitForAccumulatorValue(expr->right()); |
SetExpressionPosition(expr); |
PopOperand(x1); |
- InstanceOfStub stub(isolate()); |
- __ CallStub(&stub); |
+ __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); |
PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
__ CompareRoot(x0, Heap::kTrueValueRootIndex); |
Split(eq, if_true, if_false, fall_through); |