Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Side by Side Diff: src/compiler/js-generic-lowering.cc

Issue 892383003: emit premonomorphic ics for loads/stores in optimized code (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-factory.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698