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

Side by Side Diff: src/arm/lithium-arm.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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 return instr->HasNoUses() ? NULL : DefineAsRegister(new LContext); 1118 return instr->HasNoUses() ? NULL : DefineAsRegister(new LContext);
1119 } 1119 }
1120 1120
1121 1121
1122 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { 1122 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) {
1123 LOperand* context = UseRegisterAtStart(instr->value()); 1123 LOperand* context = UseRegisterAtStart(instr->value());
1124 return DefineAsRegister(new LOuterContext(context)); 1124 return DefineAsRegister(new LOuterContext(context));
1125 } 1125 }
1126 1126
1127 1127
1128 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) {
1129 return MarkAsCall(new LDeclareGlobals, instr);
1130 }
1131
1132
1128 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { 1133 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) {
1129 LOperand* context = UseRegisterAtStart(instr->value()); 1134 LOperand* context = UseRegisterAtStart(instr->value());
1130 return DefineAsRegister(new LGlobalObject(context)); 1135 return DefineAsRegister(new LGlobalObject(context));
1131 } 1136 }
1132 1137
1133 1138
1134 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) { 1139 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) {
1135 LOperand* global_object = UseRegisterAtStart(instr->value()); 1140 LOperand* global_object = UseRegisterAtStart(instr->value());
1136 return DefineAsRegister(new LGlobalReceiver(global_object)); 1141 return DefineAsRegister(new LGlobalReceiver(global_object));
1137 } 1142 }
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
2258 2263
2259 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2264 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2260 LOperand* key = UseRegisterAtStart(instr->key()); 2265 LOperand* key = UseRegisterAtStart(instr->key());
2261 LOperand* object = UseRegisterAtStart(instr->object()); 2266 LOperand* object = UseRegisterAtStart(instr->object());
2262 LIn* result = new LIn(key, object); 2267 LIn* result = new LIn(key, object);
2263 return MarkAsCall(DefineFixed(result, r0), instr); 2268 return MarkAsCall(DefineFixed(result, r0), instr);
2264 } 2269 }
2265 2270
2266 2271
2267 } } // namespace v8::internal 2272 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | src/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698