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

Side by Side Diff: src/disassembler.cc

Issue 5699002: RFC: Switch to ast ids (instead of positions) for type feedback. (Closed)
Patch Set: Cleanup Created 10 years 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 case CodeStub::CallFunction: 271 case CodeStub::CallFunction:
272 out.AddFormatted("argc = %d", minor_key); 272 out.AddFormatted("argc = %d", minor_key);
273 break; 273 break;
274 default: 274 default:
275 out.AddFormatted("minor: %d", minor_key); 275 out.AddFormatted("minor: %d", minor_key);
276 } 276 }
277 } 277 }
278 } else { 278 } else {
279 out.AddFormatted(" %s", Code::Kind2String(kind)); 279 out.AddFormatted(" %s", Code::Kind2String(kind));
280 } 280 }
281 if (rmode == RelocInfo::CODE_TARGET_WITH_ID) {
282 out.AddFormatted(" (id = %d)", static_cast<int>(relocinfo.data()));
283 }
281 } else if (rmode == RelocInfo::RUNTIME_ENTRY) { 284 } else if (rmode == RelocInfo::RUNTIME_ENTRY) {
282 // A runtime entry reloinfo might be a deoptimization bailout. 285 // A runtime entry reloinfo might be a deoptimization bailout.
283 Address addr = relocinfo.target_address(); 286 Address addr = relocinfo.target_address();
284 int id = Deoptimizer::GetDeoptimizationId(addr, Deoptimizer::EAGER); 287 int id = Deoptimizer::GetDeoptimizationId(addr, Deoptimizer::EAGER);
285 if (id == Deoptimizer::kNotDeoptimizationEntry) { 288 if (id == Deoptimizer::kNotDeoptimizationEntry) {
286 out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode)); 289 out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode));
287 } else { 290 } else {
288 out.AddFormatted(" ;; deoptimization bailout %d", id); 291 out.AddFormatted(" ;; deoptimization bailout %d", id);
289 } 292 }
290 } else { 293 } else {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 329
327 #else // ENABLE_DISASSEMBLER 330 #else // ENABLE_DISASSEMBLER
328 331
329 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {} 332 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {}
330 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; } 333 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; }
331 void Disassembler::Decode(FILE* f, Code* code) {} 334 void Disassembler::Decode(FILE* f, Code* code) {}
332 335
333 #endif // ENABLE_DISASSEMBLER 336 #endif // ENABLE_DISASSEMBLER
334 337
335 } } // namespace v8::internal 338 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698