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

Side by Side Diff: src/hydrogen.h

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: '' 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
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 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 void PrintLongProperty(const char* name, int64_t value) { 1164 void PrintLongProperty(const char* name, int64_t value) {
1165 PrintIndent(); 1165 PrintIndent();
1166 trace_.Add("%s %d000\n", name, static_cast<int>(value / 1000)); 1166 trace_.Add("%s %d000\n", name, static_cast<int>(value / 1000));
1167 } 1167 }
1168 1168
1169 void PrintBlockProperty(const char* name, int block_id) { 1169 void PrintBlockProperty(const char* name, int block_id) {
1170 PrintIndent(); 1170 PrintIndent();
1171 trace_.Add("%s \"B%d\"\n", name, block_id); 1171 trace_.Add("%s \"B%d\"\n", name, block_id);
1172 } 1172 }
1173 1173
1174 void PrintBlockProperty(const char* name, int block_id1, int block_id2) {
1175 PrintIndent();
1176 trace_.Add("%s \"B%d\" \"B%d\"\n", name, block_id1, block_id2);
1177 }
1178
1179 void PrintIntProperty(const char* name, int value) { 1174 void PrintIntProperty(const char* name, int value) {
1180 PrintIndent(); 1175 PrintIndent();
1181 trace_.Add("%s %d\n", name, value); 1176 trace_.Add("%s %d\n", name, value);
1182 } 1177 }
1183 1178
1184 void PrintIndent() { 1179 void PrintIndent() {
1185 for (int i = 0; i < indent_; i++) { 1180 for (int i = 0; i < indent_; i++) {
1186 trace_.Add(" "); 1181 trace_.Add(" ");
1187 } 1182 }
1188 } 1183 }
1189 1184
1190 const char* filename_; 1185 const char* filename_;
1191 HeapStringAllocator string_allocator_; 1186 HeapStringAllocator string_allocator_;
1192 StringStream trace_; 1187 StringStream trace_;
1193 int indent_; 1188 int indent_;
1194 }; 1189 };
1195 1190
1196 1191
1197 } } // namespace v8::internal 1192 } } // namespace v8::internal
1198 1193
1199 #endif // V8_HYDROGEN_H_ 1194 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen.cc » ('j') | src/hydrogen-instructions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698