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

Side by Side Diff: src/x64/lithium-x64.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/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 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 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after
2225 LOperand* key = UseOrConstantAtStart(instr->key()); 2222 LOperand* key = UseOrConstantAtStart(instr->key());
2226 LOperand* object = UseOrConstantAtStart(instr->object()); 2223 LOperand* object = UseOrConstantAtStart(instr->object());
2227 LIn* result = new LIn(key, object); 2224 LIn* result = new LIn(key, object);
2228 return MarkAsCall(DefineFixed(result, rax), instr); 2225 return MarkAsCall(DefineFixed(result, rax), instr);
2229 } 2226 }
2230 2227
2231 2228
2232 } } // namespace v8::internal 2229 } } // namespace v8::internal
2233 2230
2234 #endif // V8_TARGET_ARCH_X64 2231 #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