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

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

Issue 21560002: Store transition on HStoreNamedField as HConstant. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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.h ('k') | src/x64/lithium-x64.h » ('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 // 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 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after
2238 LOperand* temp = TempRegister(); 2238 LOperand* temp = TempRegister();
2239 LTrapAllocationMemento* result = 2239 LTrapAllocationMemento* result =
2240 new(zone()) LTrapAllocationMemento(object, temp); 2240 new(zone()) LTrapAllocationMemento(object, temp);
2241 return AssignEnvironment(result); 2241 return AssignEnvironment(result);
2242 } 2242 }
2243 2243
2244 2244
2245 LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { 2245 LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) {
2246 bool is_in_object = instr->access().IsInobject(); 2246 bool is_in_object = instr->access().IsInobject();
2247 bool needs_write_barrier = instr->NeedsWriteBarrier(); 2247 bool needs_write_barrier = instr->NeedsWriteBarrier();
2248 bool needs_write_barrier_for_map = !instr->transition().is_null() && 2248 bool needs_write_barrier_for_map = instr->has_transition() &&
2249 instr->NeedsWriteBarrierForMap(); 2249 instr->NeedsWriteBarrierForMap();
2250 2250
2251 LOperand* obj; 2251 LOperand* obj;
2252 if (needs_write_barrier) { 2252 if (needs_write_barrier) {
2253 obj = is_in_object 2253 obj = is_in_object
2254 ? UseRegister(instr->object()) 2254 ? UseRegister(instr->object())
2255 : UseTempRegister(instr->object()); 2255 : UseTempRegister(instr->object());
2256 } else { 2256 } else {
2257 obj = needs_write_barrier_for_map 2257 obj = needs_write_barrier_for_map
2258 ? UseRegister(instr->object()) 2258 ? UseRegister(instr->object())
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 2531
2532 2532
2533 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2533 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2534 LOperand* object = UseRegister(instr->object()); 2534 LOperand* object = UseRegister(instr->object());
2535 LOperand* index = UseRegister(instr->index()); 2535 LOperand* index = UseRegister(instr->index());
2536 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2536 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2537 } 2537 }
2538 2538
2539 2539
2540 } } // namespace v8::internal 2540 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698