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

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

Issue 7114004: Add support for hydrogen control instructions with >2 successor blocks. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: addressed comments and fixed ARM build Created 9 years, 6 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/ia32/lithium-ia32.h ('k') | src/lithium-allocator.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 template<int R, int I, int T>
114 void LTemplateInstruction<R, I, T>::PrintDataTo(StringStream* stream) { 114 void LTemplateInstruction<R, I, T>::PrintDataTo(StringStream* stream) {
115 stream->Add("= "); 115 stream->Add("= ");
116 inputs_.PrintOperandsTo(stream); 116 for (int i = 0; i < inputs_.length(); i++) {
117 if (i > 0) stream->Add(" ");
118 inputs_[i]->PrintTo(stream);
119 }
117 } 120 }
118 121
119 122
120 template<int R, int I, int T> 123 template<int R, int I, int T>
121 void LTemplateInstruction<R, I, T>::PrintOutputOperandTo(StringStream* stream) { 124 void LTemplateInstruction<R, I, T>::PrintOutputOperandTo(StringStream* stream) {
122 results_.PrintOperandsTo(stream); 125 for (int i = 0; i < results_.length(); i++) {
123 }
124
125
126 template<typename T, int N>
127 void OperandContainer<T, N>::PrintOperandsTo(StringStream* stream) {
128 for (int i = 0; i < N; i++) {
129 if (i > 0) stream->Add(" "); 126 if (i > 0) stream->Add(" ");
130 elems_[i]->PrintTo(stream); 127 results_[i]->PrintTo(stream);
131 } 128 }
132 } 129 }
133 130
134 131
135 void LLabel::PrintDataTo(StringStream* stream) { 132 void LLabel::PrintDataTo(StringStream* stream) {
136 LGap::PrintDataTo(stream); 133 LGap::PrintDataTo(stream);
137 LLabel* rep = replacement(); 134 LLabel* rep = replacement();
138 if (rep != NULL) { 135 if (rep != NULL) {
139 stream->Add(" Dead block replaced with B%d", rep->block_id()); 136 stream->Add(" Dead block replaced with B%d", rep->block_id());
140 } 137 }
(...skipping 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after
2284 LOperand* key = UseOrConstantAtStart(instr->key()); 2281 LOperand* key = UseOrConstantAtStart(instr->key());
2285 LOperand* object = UseOrConstantAtStart(instr->object()); 2282 LOperand* object = UseOrConstantAtStart(instr->object());
2286 LIn* result = new LIn(key, object); 2283 LIn* result = new LIn(key, object);
2287 return MarkAsCall(DefineFixed(result, eax), instr); 2284 return MarkAsCall(DefineFixed(result, eax), instr);
2288 } 2285 }
2289 2286
2290 2287
2291 } } // namespace v8::internal 2288 } } // namespace v8::internal
2292 2289
2293 #endif // V8_TARGET_ARCH_IA32 2290 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/lithium-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698