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

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: wire up stores 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
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-aux-data-inl.h" 10 #include "src/compiler/node-aux-data-inl.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 PatchInsertInput(node, 2, jsgraph()->SmiConstant(p.feedback().index())); 268 PatchInsertInput(node, 2, jsgraph()->SmiConstant(p.feedback().index()));
269 PatchInsertInput(node, 3, jsgraph()->HeapConstant(p.feedback().vector())); 269 PatchInsertInput(node, 3, jsgraph()->HeapConstant(p.feedback().vector()));
270 } 270 }
271 ReplaceWithStubCall(node, callable, CallDescriptor::kPatchableCallSite); 271 ReplaceWithStubCall(node, callable, CallDescriptor::kPatchableCallSite);
272 } 272 }
273 273
274 274
275 void JSGenericLowering::LowerJSLoadNamed(Node* node) { 275 void JSGenericLowering::LowerJSLoadNamed(Node* node) {
276 const LoadNamedParameters& p = LoadNamedParametersOf(node->op()); 276 const LoadNamedParameters& p = LoadNamedParametersOf(node->op());
277 Callable callable = 277 Callable callable =
278 CodeFactory::LoadICInOptimizedCode(isolate(), p.contextual_mode()); 278 CodeFactory::LoadICInOptimizedCode(isolate(), p.contextual_mode(), false);
279 PatchInsertInput(node, 1, jsgraph()->HeapConstant(p.name())); 279 PatchInsertInput(node, 1, jsgraph()->HeapConstant(p.name()));
280 if (FLAG_vector_ics) { 280 if (FLAG_vector_ics) {
281 PatchInsertInput(node, 2, jsgraph()->SmiConstant(p.feedback().index())); 281 PatchInsertInput(node, 2, jsgraph()->SmiConstant(p.feedback().index()));
282 PatchInsertInput(node, 3, jsgraph()->HeapConstant(p.feedback().vector())); 282 PatchInsertInput(node, 3, jsgraph()->HeapConstant(p.feedback().vector()));
283 } 283 }
284 ReplaceWithStubCall(node, callable, CallDescriptor::kPatchableCallSite); 284 ReplaceWithStubCall(node, callable, CallDescriptor::kPatchableCallSite);
285 } 285 }
286 286
287 287
288 void JSGenericLowering::LowerJSStoreProperty(Node* node) { 288 void JSGenericLowering::LowerJSStoreProperty(Node* node) {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 442
443 void JSGenericLowering::LowerJSCallRuntime(Node* node) { 443 void JSGenericLowering::LowerJSCallRuntime(Node* node) {
444 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op()); 444 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op());
445 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity())); 445 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity()));
446 } 446 }
447 447
448 } // namespace compiler 448 } // namespace compiler
449 } // namespace internal 449 } // namespace internal
450 } // namespace v8 450 } // namespace v8
OLDNEW
« src/code-factory.cc ('K') | « src/code-factory.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698