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

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

Issue 10123011: Finish refactoring done for ia32 for the other platforms. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 8 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/x64/lithium-x64.h ('k') | 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 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 environment()->PrintTo(stream); 103 environment()->PrintTo(stream);
104 } 104 }
105 105
106 if (HasPointerMap()) { 106 if (HasPointerMap()) {
107 stream->Add(" "); 107 stream->Add(" ");
108 pointer_map()->PrintTo(stream); 108 pointer_map()->PrintTo(stream);
109 } 109 }
110 } 110 }
111 111
112 112
113 template<int R, int I, int T> 113 void LInstruction::PrintDataTo(StringStream* stream) {
114 void LTemplateInstruction<R, I, T>::PrintDataTo(StringStream* stream) {
115 stream->Add("= "); 114 stream->Add("= ");
116 for (int i = 0; i < inputs_.length(); i++) { 115 for (int i = 0; i < InputCount(); i++) {
117 if (i > 0) stream->Add(" "); 116 if (i > 0) stream->Add(" ");
118 inputs_[i]->PrintTo(stream); 117 InputAt(i)->PrintTo(stream);
119 } 118 }
120 } 119 }
121 120
122 121
123 template<int R, int I, int T> 122 void LInstruction::PrintOutputOperandTo(StringStream* stream) {
124 void LTemplateInstruction<R, I, T>::PrintOutputOperandTo(StringStream* stream) { 123 if (HasResult()) result()->PrintTo(stream);
125 for (int i = 0; i < results_.length(); i++) {
126 if (i > 0) stream->Add(" ");
127 results_[i]->PrintTo(stream);
128 }
129 } 124 }
130 125
131 126
132 void LLabel::PrintDataTo(StringStream* stream) { 127 void LLabel::PrintDataTo(StringStream* stream) {
133 LGap::PrintDataTo(stream); 128 LGap::PrintDataTo(stream);
134 LLabel* rep = replacement(); 129 LLabel* rep = replacement();
135 if (rep != NULL) { 130 if (rep != NULL) {
136 stream->Add(" Dead block replaced with B%d", rep->block_id()); 131 stream->Add(" Dead block replaced with B%d", rep->block_id());
137 } 132 }
138 } 133 }
(...skipping 2192 matching lines...) Expand 10 before | Expand all | Expand 10 after
2331 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2326 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2332 LOperand* object = UseRegister(instr->object()); 2327 LOperand* object = UseRegister(instr->object());
2333 LOperand* index = UseTempRegister(instr->index()); 2328 LOperand* index = UseTempRegister(instr->index());
2334 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2329 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2335 } 2330 }
2336 2331
2337 2332
2338 } } // namespace v8::internal 2333 } } // namespace v8::internal
2339 2334
2340 #endif // V8_TARGET_ARCH_X64 2335 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698