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

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

Issue 307593002: Preliminary support for block contexts in hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Port to other architectures 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
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/parser.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 // 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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/lithium-allocator-inl.h" 9 #include "src/lithium-allocator-inl.h"
10 #include "src/ia32/lithium-ia32.h" 10 #include "src/ia32/lithium-ia32.h"
(...skipping 2636 matching lines...) Expand 10 before | Expand all | Expand 10 after
2647 2647
2648 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2648 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2649 LOperand* object = UseRegister(instr->object()); 2649 LOperand* object = UseRegister(instr->object());
2650 LOperand* index = UseTempRegister(instr->index()); 2650 LOperand* index = UseTempRegister(instr->index());
2651 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2651 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2652 LInstruction* result = DefineSameAsFirst(load); 2652 LInstruction* result = DefineSameAsFirst(load);
2653 return AssignPointerMap(result); 2653 return AssignPointerMap(result);
2654 } 2654 }
2655 2655
2656 2656
2657 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) {
2658 LOperand* context = UseRegisterAtStart(instr->context());
2659 return new(zone()) LStoreFrameContext(context);
2660 }
2661
2662
2663 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2664 HAllocateBlockContext* instr) {
2665 LOperand* context = UseFixed(instr->context(), esi);
2666 LOperand* function = UseRegisterAtStart(instr->function());
2667 LAllocateBlockContext* result =
2668 new(zone()) LAllocateBlockContext(context, function);
2669 return MarkAsCall(DefineFixed(result, esi), instr);
2670 }
2671
2672
2657 } } // namespace v8::internal 2673 } } // namespace v8::internal
2658 2674
2659 #endif // V8_TARGET_ARCH_IA32 2675 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698