| 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 | 526 |
| 527 | 527 |
| 528 void JSGenericLowering::LowerJSCreateLiteralObject(Node* node) { | 528 void JSGenericLowering::LowerJSCreateLiteralObject(Node* node) { |
| 529 int literal_flags = OpParameter<int>(node->op()); | 529 int literal_flags = OpParameter<int>(node->op()); |
| 530 node->InsertInput(zone(), 3, jsgraph()->SmiConstant(literal_flags)); | 530 node->InsertInput(zone(), 3, jsgraph()->SmiConstant(literal_flags)); |
| 531 ReplaceWithRuntimeCall(node, Runtime::kCreateObjectLiteral); | 531 ReplaceWithRuntimeCall(node, Runtime::kCreateObjectLiteral); |
| 532 } | 532 } |
| 533 | 533 |
| 534 | 534 |
| 535 void JSGenericLowering::LowerJSCreateCatchContext(Node* node) { | 535 void JSGenericLowering::LowerJSCreateCatchContext(Node* node) { |
| 536 Unique<String> name = OpParameter<Unique<String>>(node); | 536 Handle<String> name = OpParameter<Handle<String>>(node); |
| 537 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(name)); | 537 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(name)); |
| 538 ReplaceWithRuntimeCall(node, Runtime::kPushCatchContext); | 538 ReplaceWithRuntimeCall(node, Runtime::kPushCatchContext); |
| 539 } | 539 } |
| 540 | 540 |
| 541 | 541 |
| 542 void JSGenericLowering::LowerJSCallConstruct(Node* node) { | 542 void JSGenericLowering::LowerJSCallConstruct(Node* node) { |
| 543 int arity = OpParameter<int>(node); | 543 int arity = OpParameter<int>(node); |
| 544 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); | 544 CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL); |
| 545 CallInterfaceDescriptor d = stub.GetCallInterfaceDescriptor(); | 545 CallInterfaceDescriptor d = stub.GetCallInterfaceDescriptor(); |
| 546 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); | 546 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 } | 845 } |
| 846 | 846 |
| 847 | 847 |
| 848 MachineOperatorBuilder* JSGenericLowering::machine() const { | 848 MachineOperatorBuilder* JSGenericLowering::machine() const { |
| 849 return jsgraph()->machine(); | 849 return jsgraph()->machine(); |
| 850 } | 850 } |
| 851 | 851 |
| 852 } // namespace compiler | 852 } // namespace compiler |
| 853 } // namespace internal | 853 } // namespace internal |
| 854 } // namespace v8 | 854 } // namespace v8 |
| OLD | NEW |