| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  406                             graph()->start())); |  406                             graph()->start())); | 
|  407   } |  407   } | 
|  408   node->ReplaceInput(2, NodeProperties::GetValueInput(node, 1)); |  408   node->ReplaceInput(2, NodeProperties::GetValueInput(node, 1)); | 
|  409   node->ReplaceInput(1, jsgraph()->Int32Constant(Context::SlotOffset( |  409   node->ReplaceInput(1, jsgraph()->Int32Constant(Context::SlotOffset( | 
|  410                             static_cast<int>(access.index())))); |  410                             static_cast<int>(access.index())))); | 
|  411   node->set_op( |  411   node->set_op( | 
|  412       machine()->Store(StoreRepresentation(kMachAnyTagged, kFullWriteBarrier))); |  412       machine()->Store(StoreRepresentation(kMachAnyTagged, kFullWriteBarrier))); | 
|  413 } |  413 } | 
|  414  |  414  | 
|  415  |  415  | 
 |  416 void JSGenericLowering::LowerJSCreateClosure(Node* node) { | 
 |  417   CreateClosureParameters p = CreateClosureParametersOf(node->op()); | 
 |  418   node->InsertInput(zone(), 1, jsgraph()->HeapConstant(p.shared_info())); | 
 |  419   node->InsertInput(zone(), 2, jsgraph()->BooleanConstant(p.pretenure())); | 
 |  420   ReplaceWithRuntimeCall(node, Runtime::kNewClosure); | 
 |  421 } | 
 |  422  | 
 |  423  | 
|  416 void JSGenericLowering::LowerJSCreateCatchContext(Node* node) { |  424 void JSGenericLowering::LowerJSCreateCatchContext(Node* node) { | 
|  417   Unique<String> name = OpParameter<Unique<String>>(node); |  425   Unique<String> name = OpParameter<Unique<String>>(node); | 
|  418   node->InsertInput(zone(), 0, jsgraph()->HeapConstant(name)); |  426   node->InsertInput(zone(), 0, jsgraph()->HeapConstant(name)); | 
|  419   ReplaceWithRuntimeCall(node, Runtime::kPushCatchContext); |  427   ReplaceWithRuntimeCall(node, Runtime::kPushCatchContext); | 
|  420 } |  428 } | 
|  421  |  429  | 
|  422  |  430  | 
|  423 void JSGenericLowering::LowerJSCallConstruct(Node* node) { |  431 void JSGenericLowering::LowerJSCallConstruct(Node* node) { | 
|  424   int arity = OpParameter<int>(node); |  432   int arity = OpParameter<int>(node); | 
|  425   CallConstructStub stub(isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |  433   CallConstructStub stub(isolate(), NO_CALL_CONSTRUCTOR_FLAGS); | 
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  547 } |  555 } | 
|  548  |  556  | 
|  549  |  557  | 
|  550 MachineOperatorBuilder* JSGenericLowering::machine() const { |  558 MachineOperatorBuilder* JSGenericLowering::machine() const { | 
|  551   return jsgraph()->machine(); |  559   return jsgraph()->machine(); | 
|  552 } |  560 } | 
|  553  |  561  | 
|  554 }  // namespace compiler |  562 }  // namespace compiler | 
|  555 }  // namespace internal |  563 }  // namespace internal | 
|  556 }  // namespace v8 |  564 }  // namespace v8 | 
| OLD | NEW |