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

Side by Side Diff: src/mips/lithium-mips.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/mips/lithium-mips.h ('k') | src/x64/lithium-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 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 environment()->PrintTo(stream); 101 environment()->PrintTo(stream);
102 } 102 }
103 103
104 if (HasPointerMap()) { 104 if (HasPointerMap()) {
105 stream->Add(" "); 105 stream->Add(" ");
106 pointer_map()->PrintTo(stream); 106 pointer_map()->PrintTo(stream);
107 } 107 }
108 } 108 }
109 109
110 110
111 template<int R, int I, int T> 111 void LInstruction::PrintDataTo(StringStream* stream) {
112 void LTemplateInstruction<R, I, T>::PrintDataTo(StringStream* stream) {
113 stream->Add("= "); 112 stream->Add("= ");
114 for (int i = 0; i < inputs_.length(); i++) { 113 for (int i = 0; i < InputCount(); i++) {
115 if (i > 0) stream->Add(" "); 114 if (i > 0) stream->Add(" ");
116 inputs_[i]->PrintTo(stream); 115 InputAt(i)->PrintTo(stream);
117 } 116 }
118 } 117 }
119 118
120 119
121 template<int R, int I, int T> 120 void LInstruction::PrintOutputOperandTo(StringStream* stream) {
122 void LTemplateInstruction<R, I, T>::PrintOutputOperandTo(StringStream* stream) { 121 if (HasResult()) result()->PrintTo(stream);
123 for (int i = 0; i < results_.length(); i++) {
124 if (i > 0) stream->Add(" ");
125 results_[i]->PrintTo(stream);
126 }
127 } 122 }
128 123
129 124
130 void LLabel::PrintDataTo(StringStream* stream) { 125 void LLabel::PrintDataTo(StringStream* stream) {
131 LGap::PrintDataTo(stream); 126 LGap::PrintDataTo(stream);
132 LLabel* rep = replacement(); 127 LLabel* rep = replacement();
133 if (rep != NULL) { 128 if (rep != NULL) {
134 stream->Add(" Dead block replaced with B%d", rep->block_id()); 129 stream->Add(" Dead block replaced with B%d", rep->block_id());
135 } 130 }
136 } 131 }
(...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 2331
2337 2332
2338 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2333 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2339 LOperand* object = UseRegister(instr->object()); 2334 LOperand* object = UseRegister(instr->object());
2340 LOperand* index = UseRegister(instr->index()); 2335 LOperand* index = UseRegister(instr->index());
2341 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2336 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2342 } 2337 }
2343 2338
2344 2339
2345 } } // namespace v8::internal 2340 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698