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

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

Issue 5884003: Emit better code when pushing a constant. (Closed)
Patch Set: Created 10 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 LInstruction* result = new LApplyArguments(function, 1330 LInstruction* result = new LApplyArguments(function,
1331 receiver, 1331 receiver,
1332 length, 1332 length,
1333 elements); 1333 elements);
1334 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY); 1334 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY);
1335 } 1335 }
1336 1336
1337 1337
1338 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { 1338 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) {
1339 ++argument_count_; 1339 ++argument_count_;
1340 LOperand* argument = Use(instr->argument()); 1340 LOperand* argument = UseOrConstant(instr->argument());
1341 return new LPushArgument(argument); 1341 return new LPushArgument(argument);
1342 } 1342 }
1343 1343
1344 1344
1345 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { 1345 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) {
1346 return DefineAsRegister(new LGlobalObject); 1346 return DefineAsRegister(new LGlobalObject);
1347 } 1347 }
1348 1348
1349 1349
1350 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) { 1350 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) {
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
2119 void LPointerMap::PrintTo(StringStream* stream) const { 2119 void LPointerMap::PrintTo(StringStream* stream) const {
2120 stream->Add("{"); 2120 stream->Add("{");
2121 for (int i = 0; i < pointer_operands_.length(); ++i) { 2121 for (int i = 0; i < pointer_operands_.length(); ++i) {
2122 if (i != 0) stream->Add(";"); 2122 if (i != 0) stream->Add(";");
2123 pointer_operands_[i]->PrintTo(stream); 2123 pointer_operands_[i]->PrintTo(stream);
2124 } 2124 }
2125 stream->Add("} @%d", position()); 2125 stream->Add("} @%d", position());
2126 } 2126 }
2127 2127
2128 } } // namespace v8::internal 2128 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698