| 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/machine-operator.h" | 9 #include "src/compiler/machine-operator.h" |
| 10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); | 296 node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); |
| 297 node->InsertInput(zone(), 3, | 297 node->InsertInput(zone(), 3, |
| 298 jsgraph()->HeapConstant(p.feedback().vector())); | 298 jsgraph()->HeapConstant(p.feedback().vector())); |
| 299 } | 299 } |
| 300 ReplaceWithStubCall(node, callable, CallDescriptor::kPatchableCallSite); | 300 ReplaceWithStubCall(node, callable, CallDescriptor::kPatchableCallSite); |
| 301 } | 301 } |
| 302 | 302 |
| 303 | 303 |
| 304 void JSGenericLowering::LowerJSLoadNamed(Node* node) { | 304 void JSGenericLowering::LowerJSLoadNamed(Node* node) { |
| 305 const LoadNamedParameters& p = LoadNamedParametersOf(node->op()); | 305 const LoadNamedParameters& p = LoadNamedParametersOf(node->op()); |
| 306 Callable callable = | 306 Callable callable = CodeFactory::LoadICInOptimizedCode( |
| 307 CodeFactory::LoadICInOptimizedCode(isolate(), p.contextual_mode()); | 307 isolate(), p.contextual_mode(), UNINITIALIZED); |
| 308 node->InsertInput(zone(), 1, jsgraph()->HeapConstant(p.name())); | 308 node->InsertInput(zone(), 1, jsgraph()->HeapConstant(p.name())); |
| 309 if (FLAG_vector_ics) { | 309 if (FLAG_vector_ics) { |
| 310 node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); | 310 node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); |
| 311 node->InsertInput(zone(), 3, | 311 node->InsertInput(zone(), 3, |
| 312 jsgraph()->HeapConstant(p.feedback().vector())); | 312 jsgraph()->HeapConstant(p.feedback().vector())); |
| 313 } | 313 } |
| 314 ReplaceWithStubCall(node, callable, CallDescriptor::kPatchableCallSite); | 314 ReplaceWithStubCall(node, callable, CallDescriptor::kPatchableCallSite); |
| 315 } | 315 } |
| 316 | 316 |
| 317 | 317 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 | 474 |
| 475 | 475 |
| 476 void JSGenericLowering::LowerJSCallRuntime(Node* node) { | 476 void JSGenericLowering::LowerJSCallRuntime(Node* node) { |
| 477 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op()); | 477 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op()); |
| 478 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity())); | 478 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity())); |
| 479 } | 479 } |
| 480 | 480 |
| 481 } // namespace compiler | 481 } // namespace compiler |
| 482 } // namespace internal | 482 } // namespace internal |
| 483 } // namespace v8 | 483 } // namespace v8 |
| OLD | NEW |