Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 300604e198e781022d8c0952987c7d79dc02e409..146185ef9f7a0d5e741f58233b8d1c0cf7c758bd 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -198,8 +198,8 @@ void JSGenericLowering::ReplaceWithBuiltinCall(Node* node, |
int nargs) { |
Callable callable = |
CodeFactory::CallFunction(isolate(), nargs - 1, NO_CALL_FUNCTION_FLAGS); |
- CallDescriptor* desc = |
- linkage()->GetStubCallDescriptor(callable.descriptor(), nargs); |
+ CallDescriptor* desc = linkage()->GetStubCallDescriptor( |
+ callable.descriptor(), nargs, FlagsForNode(node)); |
// TODO(mstarzinger): Accessing the builtins object this way prevents sharing |
// of code across native contexts. Fix this by loading from given context. |
Handle<JSFunction> function( |
@@ -260,7 +260,7 @@ void JSGenericLowering::LowerJSToBoolean(Node* node) { |
void JSGenericLowering::LowerJSToNumber(Node* node) { |
Callable callable = CodeFactory::ToNumber(isolate()); |
- ReplaceWithStubCall(node, callable, CallDescriptor::kNoFlags); |
+ ReplaceWithStubCall(node, callable, FlagsForNode(node)); |
} |
@@ -321,7 +321,8 @@ void JSGenericLowering::LowerJSInstanceOf(Node* node) { |
InstanceofStub::kArgsInRegisters); |
InstanceofStub stub(isolate(), flags); |
CallInterfaceDescriptor d = stub.GetCallInterfaceDescriptor(); |
- CallDescriptor* desc = linkage()->GetStubCallDescriptor(d, 0); |
+ CallDescriptor* desc = |
+ linkage()->GetStubCallDescriptor(d, 0, FlagsForNode(node)); |
Node* stub_code = CodeConstant(stub.GetCode()); |
PatchInsertInput(node, 0, stub_code); |
PatchOperator(node, common()->Call(desc)); |