| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/code-factory.h" | 5 #include "src/code-factory.h" |
| 6 #include "src/code-stubs.h" | 6 #include "src/code-stubs.h" |
| 7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
| 8 #include "src/compiler/js-generic-lowering.h" | 8 #include "src/compiler/js-generic-lowering.h" |
| 9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
| 10 #include "src/compiler/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 | 528 |
| 529 | 529 |
| 530 void JSGenericLowering::LowerJSCreateLiteralObject(Node* node) { | 530 void JSGenericLowering::LowerJSCreateLiteralObject(Node* node) { |
| 531 int literal_flags = OpParameter<int>(node->op()); | 531 int literal_flags = OpParameter<int>(node->op()); |
| 532 node->InsertInput(zone(), 3, jsgraph()->SmiConstant(literal_flags)); | 532 node->InsertInput(zone(), 3, jsgraph()->SmiConstant(literal_flags)); |
| 533 ReplaceWithRuntimeCall(node, Runtime::kCreateObjectLiteral); | 533 ReplaceWithRuntimeCall(node, Runtime::kCreateObjectLiteral); |
| 534 } | 534 } |
| 535 | 535 |
| 536 | 536 |
| 537 void JSGenericLowering::LowerJSCreateCatchContext(Node* node) { | 537 void JSGenericLowering::LowerJSCreateCatchContext(Node* node) { |
| 538 Unique<String> name = OpParameter<Unique<String>>(node); | 538 Handle<String> name = OpParameter<Handle<String>>(node); |
| 539 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(name)); | 539 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(name)); |
| 540 ReplaceWithRuntimeCall(node, Runtime::kPushCatchContext); | 540 ReplaceWithRuntimeCall(node, Runtime::kPushCatchContext); |
| 541 } | 541 } |
| 542 | 542 |
| 543 | 543 |
| 544 void JSGenericLowering::LowerJSCallConstruct(Node* node) { | 544 void JSGenericLowering::LowerJSCallConstruct(Node* node) { |
| 545 int arity = OpParameter<int>(node); | 545 int arity = OpParameter<int>(node); |
| 546 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); | 546 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); |
| 547 CallInterfaceDescriptor d = stub.GetCallInterfaceDescriptor(); | 547 CallInterfaceDescriptor d = stub.GetCallInterfaceDescriptor(); |
| 548 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); | 548 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 } | 847 } |
| 848 | 848 |
| 849 | 849 |
| 850 MachineOperatorBuilder* JSGenericLowering::machine() const { | 850 MachineOperatorBuilder* JSGenericLowering::machine() const { |
| 851 return jsgraph()->machine(); | 851 return jsgraph()->machine(); |
| 852 } | 852 } |
| 853 | 853 |
| 854 } // namespace compiler | 854 } // namespace compiler |
| 855 } // namespace internal | 855 } // namespace internal |
| 856 } // namespace v8 | 856 } // namespace v8 |
| OLD | NEW |