Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index 09c417a40fd1c45dd41265ac528bf1ddf6df8d8e..9e0ce635e19e2463237788b0b6e0bbbdf0a54c7d 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -971,8 +971,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ CompareRoot(rax, Heap::kUndefinedValueRootIndex); |
__ j(equal, &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); |
@@ -1071,11 +1070,10 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ Move(FieldOperand(rdx, FixedArray::OffsetOfElementAt(vector_index)), |
TypeFeedbackVector::MegamorphicSentinel(isolate())); |
- // rax contains the key. The receiver in rbx is the second argument to the |
- // ForInFilterStub. ForInFilter returns undefined if the receiver doesn't |
+ // rax contains the key. The receiver in rbx is the second argument to |
+ // ForInFilter. ForInFilter returns undefined if the receiver doesn't |
// have the key or returns the name-converted key. |
- ForInFilterStub has_stub(isolate()); |
- __ CallStub(&has_stub); |
+ __ Call(isolate()->builtins()->ForInFilter(), RelocInfo::CODE_TARGET); |
RestoreContext(); |
PrepareForBailoutForId(stmt->FilterId(), BailoutState::TOS_REGISTER); |
__ JumpIfRoot(result_register(), Heap::kUndefinedValueRootIndex, |
@@ -2937,8 +2935,7 @@ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) { |
VisitForTypeofValue(expr->expression()); |
} |
__ movp(rbx, rax); |
- TypeofStub typeof_stub(isolate()); |
- __ CallStub(&typeof_stub); |
+ __ Call(isolate()->builtins()->Typeof(), RelocInfo::CODE_TARGET); |
context()->Plug(rax); |
break; |
} |
@@ -3306,8 +3303,7 @@ void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { |
VisitForAccumulatorValue(expr->right()); |
SetExpressionPosition(expr); |
PopOperand(rdx); |
- InstanceOfStub stub(isolate()); |
- __ CallStub(&stub); |
+ __ Call(isolate()->builtins()->InstanceOf(), RelocInfo::CODE_TARGET); |
PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); |
__ CompareRoot(rax, Heap::kTrueValueRootIndex); |
Split(equal, if_true, if_false, fall_through); |