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

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

Issue 1209903003: VectorICs: Lithium support for vector-based stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix and REBASE. Created 5 years, 5 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-instructions.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/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
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
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
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698