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

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

Issue 551803005: The value register in storefield(smi) is not used as a temp (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-inl.h" 10 #include "src/lithium-inl.h"
(...skipping 2293 matching lines...) Expand 10 before | Expand all | Expand 10 after
2304 obj = is_in_object 2304 obj = is_in_object
2305 ? UseRegister(instr->object()) 2305 ? UseRegister(instr->object())
2306 : UseTempRegister(instr->object()); 2306 : UseTempRegister(instr->object());
2307 } else { 2307 } else {
2308 obj = needs_write_barrier_for_map 2308 obj = needs_write_barrier_for_map
2309 ? UseRegister(instr->object()) 2309 ? UseRegister(instr->object())
2310 : UseRegisterAtStart(instr->object()); 2310 : UseRegisterAtStart(instr->object());
2311 } 2311 }
2312 2312
2313 LOperand* val; 2313 LOperand* val;
2314 if (needs_write_barrier || instr->field_representation().IsSmi()) { 2314 if (needs_write_barrier) {
2315 val = UseTempRegister(instr->value()); 2315 val = UseTempRegister(instr->value());
2316 } else if (instr->field_representation().IsDouble()) { 2316 } else if (instr->field_representation().IsDouble()) {
2317 val = UseRegisterAtStart(instr->value()); 2317 val = UseRegisterAtStart(instr->value());
2318 } else { 2318 } else {
2319 val = UseRegister(instr->value()); 2319 val = UseRegister(instr->value());
2320 } 2320 }
2321 2321
2322 // We need a temporary register for write barrier of the map field. 2322 // We need a temporary register for write barrier of the map field.
2323 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; 2323 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL;
2324 2324
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
2591 LOperand* function = UseRegisterAtStart(instr->function()); 2591 LOperand* function = UseRegisterAtStart(instr->function());
2592 LAllocateBlockContext* result = 2592 LAllocateBlockContext* result =
2593 new(zone()) LAllocateBlockContext(context, function); 2593 new(zone()) LAllocateBlockContext(context, function);
2594 return MarkAsCall(DefineFixed(result, cp), instr); 2594 return MarkAsCall(DefineFixed(result, cp), instr);
2595 } 2595 }
2596 2596
2597 2597
2598 } } // namespace v8::internal 2598 } } // namespace v8::internal
2599 2599
2600 #endif // V8_TARGET_ARCH_MIPS64 2600 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698