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

Side by Side Diff: src/arm64/lithium-arm64.cc

Issue 1124443004: New hydrogen instruction to reduce cost of growing an array on keyed stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 years, 7 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/arm64/lithium-arm64.h ('k') | src/arm64/lithium-codegen-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/arm64/lithium-codegen-arm64.h" 9 #include "src/arm64/lithium-codegen-arm64.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 2549 matching lines...) Expand 10 before | Expand all | Expand 10 after
2560 HTrapAllocationMemento* instr) { 2560 HTrapAllocationMemento* instr) {
2561 LOperand* object = UseRegister(instr->object()); 2561 LOperand* object = UseRegister(instr->object());
2562 LOperand* temp1 = TempRegister(); 2562 LOperand* temp1 = TempRegister();
2563 LOperand* temp2 = TempRegister(); 2563 LOperand* temp2 = TempRegister();
2564 LTrapAllocationMemento* result = 2564 LTrapAllocationMemento* result =
2565 new(zone()) LTrapAllocationMemento(object, temp1, temp2); 2565 new(zone()) LTrapAllocationMemento(object, temp1, temp2);
2566 return AssignEnvironment(result); 2566 return AssignEnvironment(result);
2567 } 2567 }
2568 2568
2569 2569
2570 LInstruction* LChunkBuilder::DoMaybeGrowElements(HMaybeGrowElements* instr) {
2571 info()->MarkAsDeferredCalling();
2572 LOperand* context = UseFixed(instr->context(), cp);
2573 LOperand* object = UseRegister(instr->object());
2574 LOperand* elements = UseRegister(instr->elements());
2575 LOperand* key = UseRegisterOrConstant(instr->key());
2576 LOperand* current_capacity = UseRegisterOrConstant(instr->current_capacity());
2577
2578 LMaybeGrowElements* result = new (zone())
2579 LMaybeGrowElements(context, object, elements, key, current_capacity);
2580 DefineFixed(result, x0);
2581 return AssignPointerMap(AssignEnvironment(result));
2582 }
2583
2584
2570 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { 2585 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) {
2571 LOperand* context = UseFixed(instr->context(), cp); 2586 LOperand* context = UseFixed(instr->context(), cp);
2572 LOperand* value = UseFixed(instr->value(), x3); 2587 LOperand* value = UseFixed(instr->value(), x3);
2573 LTypeof* result = new (zone()) LTypeof(context, value); 2588 LTypeof* result = new (zone()) LTypeof(context, value);
2574 return MarkAsCall(DefineFixed(result, x0), instr); 2589 return MarkAsCall(DefineFixed(result, x0), instr);
2575 } 2590 }
2576 2591
2577 2592
2578 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { 2593 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) {
2579 // We only need temp registers in some cases, but we can't dereference the 2594 // We only need temp registers in some cases, but we can't dereference the
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
2757 HAllocateBlockContext* instr) { 2772 HAllocateBlockContext* instr) {
2758 LOperand* context = UseFixed(instr->context(), cp); 2773 LOperand* context = UseFixed(instr->context(), cp);
2759 LOperand* function = UseRegisterAtStart(instr->function()); 2774 LOperand* function = UseRegisterAtStart(instr->function());
2760 LAllocateBlockContext* result = 2775 LAllocateBlockContext* result =
2761 new(zone()) LAllocateBlockContext(context, function); 2776 new(zone()) LAllocateBlockContext(context, function);
2762 return MarkAsCall(DefineFixed(result, cp), instr); 2777 return MarkAsCall(DefineFixed(result, cp), instr);
2763 } 2778 }
2764 2779
2765 2780
2766 } } // namespace v8::internal 2781 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/lithium-arm64.h ('k') | src/arm64/lithium-codegen-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698