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

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

Issue 18034024: Remove the compiled_transitions flag and cleanup the unused code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE 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/x64/lithium-codegen-x64.cc ('k') | test/mjsunit/elements-transition-and-store.js » ('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 2211 matching lines...) Expand 10 before | Expand all | Expand 10 after
2222 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2222 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2223 HTransitionElementsKind* instr) { 2223 HTransitionElementsKind* instr) {
2224 LOperand* object = UseRegister(instr->object()); 2224 LOperand* object = UseRegister(instr->object());
2225 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { 2225 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) {
2226 LOperand* object = UseRegister(instr->object()); 2226 LOperand* object = UseRegister(instr->object());
2227 LOperand* new_map_reg = TempRegister(); 2227 LOperand* new_map_reg = TempRegister();
2228 LOperand* temp_reg = TempRegister(); 2228 LOperand* temp_reg = TempRegister();
2229 LTransitionElementsKind* result = 2229 LTransitionElementsKind* result =
2230 new(zone()) LTransitionElementsKind(object, new_map_reg, temp_reg); 2230 new(zone()) LTransitionElementsKind(object, new_map_reg, temp_reg);
2231 return result; 2231 return result;
2232 } else if (FLAG_compiled_transitions) { 2232 } else {
2233 LTransitionElementsKind* result = 2233 LTransitionElementsKind* result =
2234 new(zone()) LTransitionElementsKind(object, NULL, NULL); 2234 new(zone()) LTransitionElementsKind(object, NULL, NULL);
2235 return AssignPointerMap(result); 2235 return AssignPointerMap(result);
2236 } else {
2237 LOperand* object = UseFixed(instr->object(), rax);
2238 LOperand* fixed_object_reg = FixedTemp(rdx);
2239 LOperand* new_map_reg = FixedTemp(rbx);
2240 LTransitionElementsKind* result =
2241 new(zone()) LTransitionElementsKind(object,
2242 new_map_reg,
2243 fixed_object_reg);
2244 return MarkAsCall(result, instr);
2245 } 2236 }
2246 } 2237 }
2247 2238
2248 2239
2249 LInstruction* LChunkBuilder::DoTrapAllocationMemento( 2240 LInstruction* LChunkBuilder::DoTrapAllocationMemento(
2250 HTrapAllocationMemento* instr) { 2241 HTrapAllocationMemento* instr) {
2251 LOperand* object = UseRegister(instr->object()); 2242 LOperand* object = UseRegister(instr->object());
2252 LOperand* temp = TempRegister(); 2243 LOperand* temp = TempRegister();
2253 LTrapAllocationMemento* result = 2244 LTrapAllocationMemento* result =
2254 new(zone()) LTrapAllocationMemento(object, temp); 2245 new(zone()) LTrapAllocationMemento(object, temp);
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
2563 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2554 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2564 LOperand* object = UseRegister(instr->object()); 2555 LOperand* object = UseRegister(instr->object());
2565 LOperand* index = UseTempRegister(instr->index()); 2556 LOperand* index = UseTempRegister(instr->index());
2566 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2557 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2567 } 2558 }
2568 2559
2569 2560
2570 } } // namespace v8::internal 2561 } } // namespace v8::internal
2571 2562
2572 #endif // V8_TARGET_ARCH_X64 2563 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/mjsunit/elements-transition-and-store.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698