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

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

Issue 9187005: Enable optimization of top-level code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: fixed problem with eval code, addressed comments Created 8 years, 10 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 // 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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 return instr->HasNoUses() ? NULL : DefineAsRegister(new(zone()) LContext); 1143 return instr->HasNoUses() ? NULL : DefineAsRegister(new(zone()) LContext);
1144 } 1144 }
1145 1145
1146 1146
1147 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { 1147 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) {
1148 LOperand* context = UseRegisterAtStart(instr->value()); 1148 LOperand* context = UseRegisterAtStart(instr->value());
1149 return DefineAsRegister(new(zone()) LOuterContext(context)); 1149 return DefineAsRegister(new(zone()) LOuterContext(context));
1150 } 1150 }
1151 1151
1152 1152
1153 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) {
1154 LOperand* context = UseFixed(instr->context(), esi);
1155 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr);
1156 }
1157
1158
1153 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { 1159 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) {
1154 LOperand* context = UseRegisterAtStart(instr->value()); 1160 LOperand* context = UseRegisterAtStart(instr->value());
1155 return DefineAsRegister(new(zone()) LGlobalObject(context)); 1161 return DefineAsRegister(new(zone()) LGlobalObject(context));
1156 } 1162 }
1157 1163
1158 1164
1159 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) { 1165 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) {
1160 LOperand* global_object = UseRegisterAtStart(instr->value()); 1166 LOperand* global_object = UseRegisterAtStart(instr->value());
1161 return DefineAsRegister(new(zone()) LGlobalReceiver(global_object)); 1167 return DefineAsRegister(new(zone()) LGlobalReceiver(global_object));
1162 } 1168 }
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
2399 LOperand* key = UseOrConstantAtStart(instr->key()); 2405 LOperand* key = UseOrConstantAtStart(instr->key());
2400 LOperand* object = UseOrConstantAtStart(instr->object()); 2406 LOperand* object = UseOrConstantAtStart(instr->object());
2401 LIn* result = new(zone()) LIn(context, key, object); 2407 LIn* result = new(zone()) LIn(context, key, object);
2402 return MarkAsCall(DefineFixed(result, eax), instr); 2408 return MarkAsCall(DefineFixed(result, eax), instr);
2403 } 2409 }
2404 2410
2405 2411
2406 } } // namespace v8::internal 2412 } } // namespace v8::internal
2407 2413
2408 #endif // V8_TARGET_ARCH_IA32 2414 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/compiler.cc ('K') | « src/ia32/lithium-ia32.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698