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

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

Issue 216963002: Add missing lazy deopt point for the TransitionElementsKind instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | src/arm/lithium-codegen-arm.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 // 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 2207 matching lines...) Expand 10 before | Expand all | Expand 10 after
2218 ASSERT(instr->key()->representation().IsTagged()); 2218 ASSERT(instr->key()->representation().IsTagged());
2219 ASSERT(instr->value()->representation().IsTagged()); 2219 ASSERT(instr->value()->representation().IsTagged());
2220 2220
2221 return MarkAsCall( 2221 return MarkAsCall(
2222 new(zone()) LStoreKeyedGeneric(context, obj, key, val), instr); 2222 new(zone()) LStoreKeyedGeneric(context, obj, key, val), instr);
2223 } 2223 }
2224 2224
2225 2225
2226 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2226 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2227 HTransitionElementsKind* instr) { 2227 HTransitionElementsKind* instr) {
2228 LOperand* object = UseRegister(instr->object());
2229 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { 2228 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) {
2229 LOperand* object = UseRegister(instr->object());
2230 LOperand* new_map_reg = TempRegister(); 2230 LOperand* new_map_reg = TempRegister();
2231 LTransitionElementsKind* result = 2231 LTransitionElementsKind* result =
2232 new(zone()) LTransitionElementsKind(object, NULL, new_map_reg); 2232 new(zone()) LTransitionElementsKind(object, NULL, new_map_reg);
2233 return result; 2233 return result;
2234 } else { 2234 } else {
2235 LOperand* object = UseFixed(instr->object(), r0);
2235 LOperand* context = UseFixed(instr->context(), cp); 2236 LOperand* context = UseFixed(instr->context(), cp);
2236 LTransitionElementsKind* result = 2237 LTransitionElementsKind* result =
2237 new(zone()) LTransitionElementsKind(object, context, NULL); 2238 new(zone()) LTransitionElementsKind(object, context, NULL);
2238 return AssignPointerMap(result); 2239 return MarkAsCall(result, instr);
2239 } 2240 }
2240 } 2241 }
2241 2242
2242 2243
2243 LInstruction* LChunkBuilder::DoTrapAllocationMemento( 2244 LInstruction* LChunkBuilder::DoTrapAllocationMemento(
2244 HTrapAllocationMemento* instr) { 2245 HTrapAllocationMemento* instr) {
2245 LOperand* object = UseRegister(instr->object()); 2246 LOperand* object = UseRegister(instr->object());
2246 LOperand* temp = TempRegister(); 2247 LOperand* temp = TempRegister();
2247 LTrapAllocationMemento* result = 2248 LTrapAllocationMemento* result =
2248 new(zone()) LTrapAllocationMemento(object, temp); 2249 new(zone()) LTrapAllocationMemento(object, temp);
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
2535 } 2536 }
2536 2537
2537 2538
2538 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2539 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2539 LOperand* object = UseRegister(instr->object()); 2540 LOperand* object = UseRegister(instr->object());
2540 LOperand* index = UseRegister(instr->index()); 2541 LOperand* index = UseRegister(instr->index());
2541 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2542 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2542 } 2543 }
2543 2544
2544 } } // namespace v8::internal 2545 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698