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

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

Issue 295743002: Refactor transitioning stores. (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Created 6 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/arm/lithium-codegen-arm.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('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 "v8.h" 5 #include "v8.h"
6 6
7 #include "lithium-allocator-inl.h" 7 #include "lithium-allocator-inl.h"
8 #include "arm64/lithium-arm64.h" 8 #include "arm64/lithium-arm64.h"
9 #include "arm64/lithium-codegen-arm64.h" 9 #include "arm64/lithium-codegen-arm64.h"
10 #include "hydrogen-osr.h" 10 #include "hydrogen-osr.h"
(...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 LOperand* temp0 = NULL; 2364 LOperand* temp0 = NULL;
2365 LOperand* temp1 = NULL; 2365 LOperand* temp1 = NULL;
2366 2366
2367 if (instr->access().IsExternalMemory() || 2367 if (instr->access().IsExternalMemory() ||
2368 instr->field_representation().IsDouble()) { 2368 instr->field_representation().IsDouble()) {
2369 value = UseRegister(instr->value()); 2369 value = UseRegister(instr->value());
2370 } else if (instr->NeedsWriteBarrier()) { 2370 } else if (instr->NeedsWriteBarrier()) {
2371 value = UseRegisterAndClobber(instr->value()); 2371 value = UseRegisterAndClobber(instr->value());
2372 temp0 = TempRegister(); 2372 temp0 = TempRegister();
2373 temp1 = TempRegister(); 2373 temp1 = TempRegister();
2374 } else if (instr->NeedsWriteBarrierForMap()) {
2375 value = UseRegister(instr->value());
2376 temp0 = TempRegister();
2377 temp1 = TempRegister();
2378 } else { 2374 } else {
2379 value = UseRegister(instr->value()); 2375 value = UseRegister(instr->value());
2380 temp0 = TempRegister(); 2376 temp0 = TempRegister();
2381 } 2377 }
2382 2378
2383 LStoreNamedField* result = 2379 LStoreNamedField* result =
2384 new(zone()) LStoreNamedField(object, value, temp0, temp1); 2380 new(zone()) LStoreNamedField(object, value, temp0, temp1);
2385 if (instr->field_representation().IsHeapObject() && 2381 if (instr->field_representation().IsHeapObject() &&
2386 !instr->value()->type().IsHeapObject()) { 2382 !instr->value()->type().IsHeapObject()) {
2387 return AssignEnvironment(result); 2383 return AssignEnvironment(result);
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
2702 2698
2703 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2699 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2704 LOperand* receiver = UseRegister(instr->receiver()); 2700 LOperand* receiver = UseRegister(instr->receiver());
2705 LOperand* function = UseRegister(instr->function()); 2701 LOperand* function = UseRegister(instr->function());
2706 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2702 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2707 return AssignEnvironment(DefineAsRegister(result)); 2703 return AssignEnvironment(DefineAsRegister(result));
2708 } 2704 }
2709 2705
2710 2706
2711 } } // namespace v8::internal 2707 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698