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

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

Issue 1266983002: VectorICs: Crankshaft adaptations to deal with vector store ics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | 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/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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 Node* script_context = node->InputAt(0); 402 Node* script_context = node->InputAt(0);
403 Node* value = node->InputAt(2); 403 Node* value = node->InputAt(2);
404 node->ReplaceInput(0, jsgraph()->Int32Constant(p.slot_index())); 404 node->ReplaceInput(0, jsgraph()->Int32Constant(p.slot_index()));
405 node->ReplaceInput(1, value); 405 node->ReplaceInput(1, value);
406 node->ReplaceInput(2, script_context); // Set new context... 406 node->ReplaceInput(2, script_context); // Set new context...
407 node->RemoveInput(3); 407 node->RemoveInput(3);
408 node->RemoveInput(3); // ...instead of old one. 408 node->RemoveInput(3); // ...instead of old one.
409 ReplaceWithStubCall(node, callable, flags); 409 ReplaceWithStubCall(node, callable, flags);
410 410
411 } else { 411 } else {
412 Callable callable = CodeFactory::StoreIC(isolate(), p.language_mode()); 412 Callable callable = CodeFactory::StoreICInOptimizedCode(
413 isolate(), p.language_mode(), UNINITIALIZED);
413 node->RemoveInput(0); // script context 414 node->RemoveInput(0); // script context
414 node->InsertInput(zone(), 1, jsgraph()->HeapConstant(p.name())); 415 node->InsertInput(zone(), 1, jsgraph()->HeapConstant(p.name()));
415 if (FLAG_vector_stores) { 416 if (FLAG_vector_stores) {
416 DCHECK(p.feedback().index() != -1); 417 DCHECK(p.feedback().index() != -1);
417 node->InsertInput(zone(), 3, 418 node->InsertInput(zone(), 3,
418 jsgraph()->SmiConstant(p.feedback().index())); 419 jsgraph()->SmiConstant(p.feedback().index()));
419 } else { 420 } else {
420 node->RemoveInput(3); 421 node->RemoveInput(3);
421 } 422 }
422 ReplaceWithStubCall(node, callable, 423 ReplaceWithStubCall(node, callable,
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 } 846 }
846 847
847 848
848 MachineOperatorBuilder* JSGenericLowering::machine() const { 849 MachineOperatorBuilder* JSGenericLowering::machine() const {
849 return jsgraph()->machine(); 850 return jsgraph()->machine();
850 } 851 }
851 852
852 } // namespace compiler 853 } // namespace compiler
853 } // namespace internal 854 } // namespace internal
854 } // namespace v8 855 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698