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

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

Issue 16567002: MIPS: Assign less environments. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | no next file » | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2211 matching lines...) Expand 10 before | Expand all | Expand 10 after
2222 instr->field_representation().IsDouble()) { 2222 instr->field_representation().IsDouble()) {
2223 val = UseRegisterAtStart(instr->value()); 2223 val = UseRegisterAtStart(instr->value());
2224 } else { 2224 } else {
2225 val = UseRegister(instr->value()); 2225 val = UseRegister(instr->value());
2226 } 2226 }
2227 2227
2228 // We need a temporary register for write barrier of the map field. 2228 // We need a temporary register for write barrier of the map field.
2229 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; 2229 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL;
2230 2230
2231 LStoreNamedField* result = new(zone()) LStoreNamedField(obj, val, temp); 2231 LStoreNamedField* result = new(zone()) LStoreNamedField(obj, val, temp);
2232 if ((FLAG_track_fields && instr->field_representation().IsSmi()) || 2232 if (FLAG_track_heap_object_fields &&
2233 (FLAG_track_heap_object_fields && 2233 instr->field_representation().IsHeapObject()) {
2234 instr->field_representation().IsHeapObject())) { 2234 if (!instr->value()->type().IsHeapObject()) {
2235 return AssignEnvironment(result); 2235 return AssignEnvironment(result);
2236 }
2236 } 2237 }
2237 return result; 2238 return result;
2238 } 2239 }
2239 2240
2240 2241
2241 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 2242 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
2242 LOperand* obj = UseFixed(instr->object(), a1); 2243 LOperand* obj = UseFixed(instr->object(), a1);
2243 LOperand* val = UseFixed(instr->value(), a0); 2244 LOperand* val = UseFixed(instr->value(), a0);
2244 2245
2245 LInstruction* result = new(zone()) LStoreNamedGeneric(obj, val); 2246 LInstruction* result = new(zone()) LStoreNamedGeneric(obj, val);
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
2506 2507
2507 2508
2508 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2509 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2509 LOperand* object = UseRegister(instr->object()); 2510 LOperand* object = UseRegister(instr->object());
2510 LOperand* index = UseRegister(instr->index()); 2511 LOperand* index = UseRegister(instr->index());
2511 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2512 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2512 } 2513 }
2513 2514
2514 2515
2515 } } // namespace v8::internal 2516 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698