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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 node->RemoveInput(3); | 356 node->RemoveInput(3); |
357 } | 357 } |
358 ReplaceWithStubCall(node, callable, | 358 ReplaceWithStubCall(node, callable, |
359 CallDescriptor::kPatchableCallSite | flags); | 359 CallDescriptor::kPatchableCallSite | flags); |
360 } | 360 } |
361 | 361 |
362 | 362 |
363 void JSGenericLowering::LowerJSStoreNamed(Node* node) { | 363 void JSGenericLowering::LowerJSStoreNamed(Node* node) { |
364 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); | 364 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
365 const StoreNamedParameters& p = StoreNamedParametersOf(node->op()); | 365 const StoreNamedParameters& p = StoreNamedParametersOf(node->op()); |
366 Callable callable = CodeFactory::StoreIC(isolate(), p.language_mode()); | 366 Callable callable = CodeFactory::StoreICInOptimizedCode( |
| 367 isolate(), p.language_mode(), UNINITIALIZED); |
367 node->InsertInput(zone(), 1, jsgraph()->HeapConstant(p.name())); | 368 node->InsertInput(zone(), 1, jsgraph()->HeapConstant(p.name())); |
368 if (FLAG_vector_stores) { | 369 if (FLAG_vector_stores) { |
369 DCHECK(p.feedback().index() != -1); | 370 DCHECK(p.feedback().index() != -1); |
370 node->InsertInput(zone(), 3, jsgraph()->SmiConstant(p.feedback().index())); | 371 node->InsertInput(zone(), 3, jsgraph()->SmiConstant(p.feedback().index())); |
371 } else { | 372 } else { |
372 node->RemoveInput(3); | 373 node->RemoveInput(3); |
373 } | 374 } |
374 ReplaceWithStubCall(node, callable, | 375 ReplaceWithStubCall(node, callable, |
375 CallDescriptor::kPatchableCallSite | flags); | 376 CallDescriptor::kPatchableCallSite | flags); |
376 } | 377 } |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 } | 806 } |
806 | 807 |
807 | 808 |
808 MachineOperatorBuilder* JSGenericLowering::machine() const { | 809 MachineOperatorBuilder* JSGenericLowering::machine() const { |
809 return jsgraph()->machine(); | 810 return jsgraph()->machine(); |
810 } | 811 } |
811 | 812 |
812 } // namespace compiler | 813 } // namespace compiler |
813 } // namespace internal | 814 } // namespace internal |
814 } // namespace v8 | 815 } // namespace v8 |
OLD | NEW |