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

Side by Side Diff: src/mips/lithium-mips.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/ia32/lithium-ia32.cc ('k') | src/mips64/lithium-mips64.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
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* context = UseFixed(instr->context(), cp); 2591 LOperand* context = UseFixed(instr->context(), cp);
2592 LOperand* function = UseRegisterAtStart(instr->function()); 2592 LOperand* function = UseRegisterAtStart(instr->function());
2593 LAllocateBlockContext* result = 2593 LAllocateBlockContext* result =
2594 new(zone()) LAllocateBlockContext(context, function); 2594 new(zone()) LAllocateBlockContext(context, function);
2595 return MarkAsCall(DefineFixed(result, cp), instr); 2595 return MarkAsCall(DefineFixed(result, cp), instr);
2596 } 2596 }
2597 2597
2598 } } // namespace v8::internal 2598 } } // namespace v8::internal
2599 2599
2600 #endif // V8_TARGET_ARCH_MIPS 2600 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips64/lithium-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698