| Index: src/compiler/js-generic-lowering.cc
|
| diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
|
| index ea5a4a4627cbc0d5c1e121fcdae56f81a1008045..fb191e96b45ece4b8cb6d3ec82fdec8a19921ae4 100644
|
| --- a/src/compiler/js-generic-lowering.cc
|
| +++ b/src/compiler/js-generic-lowering.cc
|
| @@ -50,11 +50,11 @@ Reduction JSGenericLowering::Reduce(Node* node) {
|
| return Changed(node);
|
| }
|
|
|
| -#define REPLACE_STUB_CALL(Name) \
|
| - void JSGenericLowering::LowerJS##Name(Node* node) { \
|
| - CallDescriptor::Flags flags = FrameStateFlagForCall(node); \
|
| - Callable callable = CodeFactory::Name(isolate()); \
|
| - ReplaceWithStubCall(node, callable, flags); \
|
| +#define REPLACE_STUB_CALL(Name) \
|
| + void JSGenericLowering::LowerJS##Name(Node* node) { \
|
| + CallDescriptor::Flags flags = FrameStateFlagForCall(node); \
|
| + Callable callable = Builtins::CallableFor(isolate(), Builtins::k##Name); \
|
| + ReplaceWithStubCall(node, callable, flags); \
|
| }
|
| REPLACE_STUB_CALL(Add)
|
| REPLACE_STUB_CALL(Subtract)
|
| @@ -129,7 +129,7 @@ void JSGenericLowering::LowerJSStrictEqual(Node* node) {
|
| void JSGenericLowering::LowerJSToBoolean(Node* node) {
|
| // The ToBoolean conversion doesn't need the current context.
|
| NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant());
|
| - Callable callable = CodeFactory::ToBoolean(isolate());
|
| + Callable callable = Builtins::CallableFor(isolate(), Builtins::kToBoolean);
|
| node->AppendInput(zone(), graph()->start());
|
| ReplaceWithStubCall(node, callable, CallDescriptor::kNoAllocate,
|
| Operator::kEliminatable);
|
| @@ -147,7 +147,7 @@ void JSGenericLowering::LowerJSClassOf(Node* node) {
|
| void JSGenericLowering::LowerJSTypeOf(Node* node) {
|
| // The typeof operator doesn't need the current context.
|
| NodeProperties::ReplaceContextInput(node, jsgraph()->NoContextConstant());
|
| - Callable callable = CodeFactory::Typeof(isolate());
|
| + Callable callable = Builtins::CallableFor(isolate(), Builtins::kTypeof);
|
| node->AppendInput(zone(), graph()->start());
|
| ReplaceWithStubCall(node, callable, CallDescriptor::kNoAllocate,
|
| Operator::kEliminatable);
|
|
|