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

Side by Side Diff: src/disassembler.cc

Issue 6577036: [Isolates] Merge from bleeding_edge to isolates, revisions 6100-6300. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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/deoptimizer.cc ('k') | src/extensions/experimental/experimental.gyp » ('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 2010 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
11 // with the distribution. 11 // with the distribution.
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 ASSERT(obj->IsSmi()); 262 ASSERT(obj->IsSmi());
263 // Get the STUB key and extract major and minor key. 263 // Get the STUB key and extract major and minor key.
264 uint32_t key = Smi::cast(obj)->value(); 264 uint32_t key = Smi::cast(obj)->value();
265 uint32_t minor_key = CodeStub::MinorKeyFromKey(key); 265 uint32_t minor_key = CodeStub::MinorKeyFromKey(key);
266 CodeStub::Major major_key = CodeStub::GetMajorKey(code); 266 CodeStub::Major major_key = CodeStub::GetMajorKey(code);
267 ASSERT(major_key == CodeStub::MajorKeyFromKey(key)); 267 ASSERT(major_key == CodeStub::MajorKeyFromKey(key));
268 out.AddFormatted(" %s, %s, ", 268 out.AddFormatted(" %s, %s, ",
269 Code::Kind2String(kind), 269 Code::Kind2String(kind),
270 CodeStub::MajorName(major_key, false)); 270 CodeStub::MajorName(major_key, false));
271 switch (major_key) { 271 switch (major_key) {
272 case CodeStub::CallFunction: 272 case CodeStub::CallFunction: {
273 out.AddFormatted("argc = %d", minor_key); 273 int argc =
274 CallFunctionStub::ExtractArgcFromMinorKey(minor_key);
275 out.AddFormatted("argc = %d", argc);
274 break; 276 break;
275 default: 277 }
278 default:
276 out.AddFormatted("minor: %d", minor_key); 279 out.AddFormatted("minor: %d", minor_key);
277 } 280 }
278 } 281 }
279 } else { 282 } else {
280 out.AddFormatted(" %s", Code::Kind2String(kind)); 283 out.AddFormatted(" %s", Code::Kind2String(kind));
281 } 284 }
282 } else if (rmode == RelocInfo::RUNTIME_ENTRY) { 285 } else if (rmode == RelocInfo::RUNTIME_ENTRY) {
283 // A runtime entry reloinfo might be a deoptimization bailout. 286 // A runtime entry reloinfo might be a deoptimization bailout.
284 Address addr = relocinfo.target_address(); 287 Address addr = relocinfo.target_address();
285 int id = Deoptimizer::GetDeoptimizationId(addr, Deoptimizer::EAGER); 288 int id = Deoptimizer::GetDeoptimizationId(addr, Deoptimizer::EAGER);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 330
328 #else // ENABLE_DISASSEMBLER 331 #else // ENABLE_DISASSEMBLER
329 332
330 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {} 333 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {}
331 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; } 334 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; }
332 void Disassembler::Decode(FILE* f, Code* code) {} 335 void Disassembler::Decode(FILE* f, Code* code) {}
333 336
334 #endif // ENABLE_DISASSEMBLER 337 #endif // ENABLE_DISASSEMBLER
335 338
336 } } // namespace v8::internal 339 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/extensions/experimental/experimental.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698