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

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

Issue 299373005: Avoid HeapObject check in HStoreNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix condition on arm64. Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/macro-assembler-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 2381 matching lines...) Expand 10 before | Expand all | Expand 10 after
2392 temp1 = TempRegister(); 2392 temp1 = TempRegister();
2393 } else if (instr->NeedsWriteBarrierForMap()) { 2393 } else if (instr->NeedsWriteBarrierForMap()) {
2394 value = UseRegister(instr->value()); 2394 value = UseRegister(instr->value());
2395 temp0 = TempRegister(); 2395 temp0 = TempRegister();
2396 temp1 = TempRegister(); 2396 temp1 = TempRegister();
2397 } else { 2397 } else {
2398 value = UseRegister(instr->value()); 2398 value = UseRegister(instr->value());
2399 temp0 = TempRegister(); 2399 temp0 = TempRegister();
2400 } 2400 }
2401 2401
2402 LStoreNamedField* result = 2402 return new(zone()) LStoreNamedField(object, value, temp0, temp1);
2403 new(zone()) LStoreNamedField(object, value, temp0, temp1);
2404 if (instr->field_representation().IsHeapObject() &&
2405 !instr->value()->type().IsHeapObject()) {
2406 return AssignEnvironment(result);
2407 }
2408 return result;
2409 } 2403 }
2410 2404
2411 2405
2412 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 2406 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
2413 LOperand* context = UseFixed(instr->context(), cp); 2407 LOperand* context = UseFixed(instr->context(), cp);
2414 LOperand* object = UseFixed(instr->object(), x1); 2408 LOperand* object = UseFixed(instr->object(), x1);
2415 LOperand* value = UseFixed(instr->value(), x0); 2409 LOperand* value = UseFixed(instr->value(), x0);
2416 LInstruction* result = new(zone()) LStoreNamedGeneric(context, object, value); 2410 LInstruction* result = new(zone()) LStoreNamedGeneric(context, object, value);
2417 return MarkAsCall(result, instr); 2411 return MarkAsCall(result, instr);
2418 } 2412 }
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
2721 2715
2722 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2716 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2723 LOperand* receiver = UseRegister(instr->receiver()); 2717 LOperand* receiver = UseRegister(instr->receiver());
2724 LOperand* function = UseRegister(instr->function()); 2718 LOperand* function = UseRegister(instr->function());
2725 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2719 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2726 return AssignEnvironment(DefineAsRegister(result)); 2720 return AssignEnvironment(DefineAsRegister(result));
2727 } 2721 }
2728 2722
2729 2723
2730 } } // namespace v8::internal 2724 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698