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

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

Issue 308793010: Inline Array.shift() fast path instead of using a code stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
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 "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "lithium-allocator-inl.h" 9 #include "lithium-allocator-inl.h"
10 #include "ia32/lithium-ia32.h" 10 #include "ia32/lithium-ia32.h"
(...skipping 2306 matching lines...) Expand 10 before | Expand all | Expand 10 after
2317 } else { 2317 } else {
2318 LOperand* object = UseFixed(instr->object(), eax); 2318 LOperand* object = UseFixed(instr->object(), eax);
2319 LOperand* context = UseFixed(instr->context(), esi); 2319 LOperand* context = UseFixed(instr->context(), esi);
2320 LTransitionElementsKind* result = 2320 LTransitionElementsKind* result =
2321 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); 2321 new(zone()) LTransitionElementsKind(object, context, NULL, NULL);
2322 return MarkAsCall(result, instr); 2322 return MarkAsCall(result, instr);
2323 } 2323 }
2324 } 2324 }
2325 2325
2326 2326
2327 LInstruction* LChunkBuilder::DoArrayShift(HArrayShift* instr) {
2328 LOperand* object = UseFixed(instr->object(), eax);
2329 LOperand* context = UseFixed(instr->context(), esi);
2330 LArrayShift* result = new(zone()) LArrayShift(context, object);
2331 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
2332 }
2333
2334
2335 LInstruction* LChunkBuilder::DoTrapAllocationMemento( 2327 LInstruction* LChunkBuilder::DoTrapAllocationMemento(
2336 HTrapAllocationMemento* instr) { 2328 HTrapAllocationMemento* instr) {
2337 LOperand* object = UseRegister(instr->object()); 2329 LOperand* object = UseRegister(instr->object());
2338 LOperand* temp = TempRegister(); 2330 LOperand* temp = TempRegister();
2339 LTrapAllocationMemento* result = 2331 LTrapAllocationMemento* result =
2340 new(zone()) LTrapAllocationMemento(object, temp); 2332 new(zone()) LTrapAllocationMemento(object, temp);
2341 return AssignEnvironment(result); 2333 return AssignEnvironment(result);
2342 } 2334 }
2343 2335
2344 2336
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
2665 LOperand* index = UseTempRegister(instr->index()); 2657 LOperand* index = UseTempRegister(instr->index());
2666 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2658 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2667 LInstruction* result = DefineSameAsFirst(load); 2659 LInstruction* result = DefineSameAsFirst(load);
2668 return AssignPointerMap(result); 2660 return AssignPointerMap(result);
2669 } 2661 }
2670 2662
2671 2663
2672 } } // namespace v8::internal 2664 } } // namespace v8::internal
2673 2665
2674 #endif // V8_TARGET_ARCH_IA32 2666 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/hydrogen.cc ('K') | « src/ia32/lithium-ia32.h ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698