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

Side by Side Diff: src/objects.cc

Issue 3099: Changed the disassembler formatting... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 3 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/objects.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 4171 matching lines...) Expand 10 before | Expand all | Expand 10 after
4182 case KEYED_LOAD_IC: return "KEYED_LOAD_IC"; 4182 case KEYED_LOAD_IC: return "KEYED_LOAD_IC";
4183 case STORE_IC: return "STORE_IC"; 4183 case STORE_IC: return "STORE_IC";
4184 case KEYED_STORE_IC: return "KEYED_STORE_IC"; 4184 case KEYED_STORE_IC: return "KEYED_STORE_IC";
4185 case CALL_IC: return "CALL_IC"; 4185 case CALL_IC: return "CALL_IC";
4186 } 4186 }
4187 UNREACHABLE(); 4187 UNREACHABLE();
4188 return NULL; 4188 return NULL;
4189 } 4189 }
4190 4190
4191 4191
4192 const char* Code::ICState2String(InlineCacheState state) {
4193 switch (state) {
4194 case UNINITIALIZED: return "UNINITIALIZED";
4195 case PREMONOMORPHIC: return "PREMONOMORPHIC";
4196 case MONOMORPHIC: return "MONOMORPHIC";
4197 case MONOMORPHIC_PROTOTYPE_FAILURE: return "MONOMORPHIC_PROTOTYPE_FAILURE";
4198 case MEGAMORPHIC: return "MEGAMORPHIC";
4199 case DEBUG_BREAK: return "DEBUG_BREAK";
4200 case DEBUG_PREPARE_STEP_IN: return "DEBUG_PREPARE_STEP_IN";
4201 }
4202 UNREACHABLE();
4203 return NULL;
4204 }
4205
4206
4192 void Code::Disassemble() { 4207 void Code::Disassemble() {
4193 PrintF("kind = %s", Kind2String(kind())); 4208 PrintF("kind = %s", Kind2String(kind()));
4194 4209
4195 PrintF("\nInstructions (size = %d)\n", instruction_size()); 4210 PrintF("\nInstructions (size = %d)\n", instruction_size());
4196 Disassembler::Decode(NULL, this); 4211 Disassembler::Decode(NULL, this);
4197 PrintF("\n"); 4212 PrintF("\n");
4198 4213
4199 PrintF("RelocInfo (size = %d)\n", relocation_size()); 4214 PrintF("RelocInfo (size = %d)\n", relocation_size());
4200 for (RelocIterator it(this); !it.done(); it.next()) 4215 for (RelocIterator it(this); !it.done(); it.next())
4201 it.rinfo()->Print(); 4216 it.rinfo()->Print();
(...skipping 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after
6255 // No break point. 6270 // No break point.
6256 if (break_point_objects()->IsUndefined()) return 0; 6271 if (break_point_objects()->IsUndefined()) return 0;
6257 // Single beak point. 6272 // Single beak point.
6258 if (!break_point_objects()->IsFixedArray()) return 1; 6273 if (!break_point_objects()->IsFixedArray()) return 1;
6259 // Multiple break points. 6274 // Multiple break points.
6260 return FixedArray::cast(break_point_objects())->length(); 6275 return FixedArray::cast(break_point_objects())->length();
6261 } 6276 }
6262 6277
6263 6278
6264 } } // namespace v8::internal 6279 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698