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

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

Issue 384403002: StubCallInterfaceDescriptor takes a context register. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More refinements. Created 6 years, 5 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 "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/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/ia32/lithium-codegen-ia32.h" 10 #include "src/ia32/lithium-codegen-ia32.h"
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 LOperand* function = UseFixed(instr->function(), edi); 1118 LOperand* function = UseFixed(instr->function(), edi);
1119 1119
1120 LCallJSFunction* result = new(zone()) LCallJSFunction(function); 1120 LCallJSFunction* result = new(zone()) LCallJSFunction(function);
1121 1121
1122 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1122 return MarkAsCall(DefineFixed(result, eax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1123 } 1123 }
1124 1124
1125 1125
1126 LInstruction* LChunkBuilder::DoCallWithDescriptor( 1126 LInstruction* LChunkBuilder::DoCallWithDescriptor(
1127 HCallWithDescriptor* instr) { 1127 HCallWithDescriptor* instr) {
1128 const CallInterfaceDescriptor* descriptor = instr->descriptor(); 1128 const InterfaceDescriptor* descriptor = instr->descriptor();
1129
1130 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); 1129 LOperand* target = UseRegisterOrConstantAtStart(instr->target());
1131 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); 1130 ZoneList<LOperand*> ops(instr->OperandCount(), zone());
1132 ops.Add(target, zone()); 1131 ops.Add(target, zone());
1133 for (int i = 1; i < instr->OperandCount(); i++) { 1132 for (int i = 1; i < instr->OperandCount(); i++) {
1134 LOperand* op = UseFixed(instr->OperandAt(i), 1133 LOperand* op = UseFixed(instr->OperandAt(i),
1135 descriptor->GetParameterRegister(i - 1)); 1134 descriptor->GetParameterRegister(i - 1));
1136 ops.Add(op, zone()); 1135 ops.Add(op, zone());
1137 } 1136 }
1138 1137
1139 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor( 1138 LCallWithDescriptor* result = new(zone()) LCallWithDescriptor(
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
2669 LOperand* function = UseRegisterAtStart(instr->function()); 2668 LOperand* function = UseRegisterAtStart(instr->function());
2670 LAllocateBlockContext* result = 2669 LAllocateBlockContext* result =
2671 new(zone()) LAllocateBlockContext(context, function); 2670 new(zone()) LAllocateBlockContext(context, function);
2672 return MarkAsCall(DefineFixed(result, esi), instr); 2671 return MarkAsCall(DefineFixed(result, esi), instr);
2673 } 2672 }
2674 2673
2675 2674
2676 } } // namespace v8::internal 2675 } } // namespace v8::internal
2677 2676
2678 #endif // V8_TARGET_ARCH_IA32 2677 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/ia32/lithium-ia32.h ('K') | « src/ia32/lithium-ia32.h ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698