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

Side by Side Diff: src/disassembler.cc

Issue 543207: Removing redundant stub for runtime native calls. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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/debug.cc ('k') | src/full-codegen.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 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 uint32_t key = Smi::cast(obj)->value(); 259 uint32_t key = Smi::cast(obj)->value();
260 uint32_t minor_key = CodeStub::MinorKeyFromKey(key); 260 uint32_t minor_key = CodeStub::MinorKeyFromKey(key);
261 ASSERT(code->major_key() == CodeStub::MajorKeyFromKey(key)); 261 ASSERT(code->major_key() == CodeStub::MajorKeyFromKey(key));
262 out.AddFormatted(" %s, %s, ", 262 out.AddFormatted(" %s, %s, ",
263 Code::Kind2String(kind), 263 Code::Kind2String(kind),
264 CodeStub::MajorName(code->major_key())); 264 CodeStub::MajorName(code->major_key()));
265 switch (code->major_key()) { 265 switch (code->major_key()) {
266 case CodeStub::CallFunction: 266 case CodeStub::CallFunction:
267 out.AddFormatted("argc = %d", minor_key); 267 out.AddFormatted("argc = %d", minor_key);
268 break; 268 break;
269 case CodeStub::Runtime: { 269 default:
270 const char* name =
271 RuntimeStub::GetNameFromMinorKey(minor_key);
272 out.AddFormatted("%s", name);
273 break;
274 }
275 default:
276 out.AddFormatted("minor: %d", minor_key); 270 out.AddFormatted("minor: %d", minor_key);
277 } 271 }
278 } 272 }
279 } else { 273 } else {
280 out.AddFormatted(" %s", Code::Kind2String(kind)); 274 out.AddFormatted(" %s", Code::Kind2String(kind));
281 } 275 }
282 } else { 276 } else {
283 out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode)); 277 out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode));
284 } 278 }
285 } 279 }
(...skipping 23 matching lines...) Expand all
309 303
310 #else // ENABLE_DISASSEMBLER 304 #else // ENABLE_DISASSEMBLER
311 305
312 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {} 306 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {}
313 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; } 307 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; }
314 void Disassembler::Decode(FILE* f, Code* code) {} 308 void Disassembler::Decode(FILE* f, Code* code) {}
315 309
316 #endif // ENABLE_DISASSEMBLER 310 #endif // ENABLE_DISASSEMBLER
317 311
318 } } // namespace v8::internal 312 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698