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

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

Issue 7795051: Change the x64 optimizing compiler to stop using the fixed context register rsi. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove stray edits. Created 9 years, 3 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-codegen-ia32.cc ('k') | src/x64/assembler-x64.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 LOperand* left = UseFixed(instr->left(), InstanceofStub::left()); 1072 LOperand* left = UseFixed(instr->left(), InstanceofStub::left());
1073 LOperand* right = UseFixed(instr->right(), InstanceofStub::right()); 1073 LOperand* right = UseFixed(instr->right(), InstanceofStub::right());
1074 LOperand* context = UseFixed(instr->context(), esi); 1074 LOperand* context = UseFixed(instr->context(), esi);
1075 LInstanceOf* result = new LInstanceOf(context, left, right); 1075 LInstanceOf* result = new LInstanceOf(context, left, right);
1076 return MarkAsCall(DefineFixed(result, eax), instr); 1076 return MarkAsCall(DefineFixed(result, eax), instr);
1077 } 1077 }
1078 1078
1079 1079
1080 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( 1080 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal(
1081 HInstanceOfKnownGlobal* instr) { 1081 HInstanceOfKnownGlobal* instr) {
1082
1083 LOperand* left = UseFixed(instr->left(), InstanceofStub::left());
1084 LOperand* temp = FixedTemp(edi);
1085 LOperand* context = UseFixed(instr->context(), esi);
1082 LInstanceOfKnownGlobal* result = 1086 LInstanceOfKnownGlobal* result =
1083 new LInstanceOfKnownGlobal( 1087 new LInstanceOfKnownGlobal(context, left, temp);
1084 UseFixed(instr->context(), esi),
1085 UseFixed(instr->left(), InstanceofStub::left()),
1086 FixedTemp(edi));
1087 return MarkAsCall(DefineFixed(result, eax), instr); 1088 return MarkAsCall(DefineFixed(result, eax), instr);
1088 } 1089 }
1089 1090
1090 1091
1091 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { 1092 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) {
1092 LOperand* function = UseFixed(instr->function(), edi); 1093 LOperand* function = UseFixed(instr->function(), edi);
1093 LOperand* receiver = UseFixed(instr->receiver(), eax); 1094 LOperand* receiver = UseFixed(instr->receiver(), eax);
1094 LOperand* length = UseFixed(instr->length(), ebx); 1095 LOperand* length = UseFixed(instr->length(), ebx);
1095 LOperand* elements = UseFixed(instr->elements(), ecx); 1096 LOperand* elements = UseFixed(instr->elements(), ecx);
1096 LOperand* temp = FixedTemp(edx); 1097 LOperand* temp = FixedTemp(edx);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 LOperand* context = UseFixed(instr->context(), esi); 1237 LOperand* context = UseFixed(instr->context(), esi);
1237 argument_count_ -= instr->argument_count(); 1238 argument_count_ -= instr->argument_count();
1238 LCallFunction* result = new LCallFunction(context); 1239 LCallFunction* result = new LCallFunction(context);
1239 return MarkAsCall(DefineFixed(result, eax), instr); 1240 return MarkAsCall(DefineFixed(result, eax), instr);
1240 } 1241 }
1241 1242
1242 1243
1243 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { 1244 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) {
1244 argument_count_ -= instr->argument_count(); 1245 argument_count_ -= instr->argument_count();
1245 LOperand* context = UseFixed(instr->context(), esi); 1246 LOperand* context = UseFixed(instr->context(), esi);
1246 return MarkAsCall(DefineFixed(new LCallRuntime(context), eax), instr); 1247 LCallRuntime* result = new LCallRuntime(context);
1248 return MarkAsCall(DefineFixed(result, eax), instr);
1247 } 1249 }
1248 1250
1249 1251
1250 LInstruction* LChunkBuilder::DoShr(HShr* instr) { 1252 LInstruction* LChunkBuilder::DoShr(HShr* instr) {
1251 return DoShift(Token::SHR, instr); 1253 return DoShift(Token::SHR, instr);
1252 } 1254 }
1253 1255
1254 1256
1255 LInstruction* LChunkBuilder::DoSar(HSar* instr) { 1257 LInstruction* LChunkBuilder::DoSar(HSar* instr) {
1256 return DoShift(Token::SAR, instr); 1258 return DoShift(Token::SAR, instr);
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
2257 LOperand* key = UseOrConstantAtStart(instr->key()); 2259 LOperand* key = UseOrConstantAtStart(instr->key());
2258 LOperand* object = UseOrConstantAtStart(instr->object()); 2260 LOperand* object = UseOrConstantAtStart(instr->object());
2259 LIn* result = new LIn(context, key, object); 2261 LIn* result = new LIn(context, key, object);
2260 return MarkAsCall(DefineFixed(result, eax), instr); 2262 return MarkAsCall(DefineFixed(result, eax), instr);
2261 } 2263 }
2262 2264
2263 2265
2264 } } // namespace v8::internal 2266 } } // namespace v8::internal
2265 2267
2266 #endif // V8_TARGET_ARCH_IA32 2268 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/x64/assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698