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

Side by Side Diff: src/disassembler.cc

Issue 14738009: Ensure that soft-deopts don't count against opt_count (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Implement x64 and ARM, review feedback Created 7 years, 7 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // A runtime entry reloinfo might be a deoptimization bailout. 286 // A runtime entry reloinfo might be a deoptimization bailout.
287 Address addr = relocinfo.target_address(); 287 Address addr = relocinfo.target_address();
288 int id = Deoptimizer::GetDeoptimizationId(isolate, 288 int id = Deoptimizer::GetDeoptimizationId(isolate,
289 addr, 289 addr,
290 Deoptimizer::EAGER); 290 Deoptimizer::EAGER);
291 if (id == Deoptimizer::kNotDeoptimizationEntry) { 291 if (id == Deoptimizer::kNotDeoptimizationEntry) {
292 id = Deoptimizer::GetDeoptimizationId(isolate, 292 id = Deoptimizer::GetDeoptimizationId(isolate,
293 addr, 293 addr,
294 Deoptimizer::LAZY); 294 Deoptimizer::LAZY);
295 if (id == Deoptimizer::kNotDeoptimizationEntry) { 295 if (id == Deoptimizer::kNotDeoptimizationEntry) {
296 out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode)); 296 id = Deoptimizer::GetDeoptimizationId(isolate,
297 addr,
298 Deoptimizer::SOFT);
299 if (id == Deoptimizer::kNotDeoptimizationEntry) {
300 out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode));
301 } else {
302 out.AddFormatted(" ;; soft deoptimization bailout %d", id);
303 }
297 } else { 304 } else {
298 out.AddFormatted(" ;; lazy deoptimization bailout %d", id); 305 out.AddFormatted(" ;; lazy deoptimization bailout %d", id);
299 } 306 }
300 } else { 307 } else {
301 out.AddFormatted(" ;; deoptimization bailout %d", id); 308 out.AddFormatted(" ;; deoptimization bailout %d", id);
302 } 309 }
303 } else { 310 } else {
304 out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode)); 311 out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode));
305 } 312 }
306 } 313 }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 358
352 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {} 359 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {}
353 int Disassembler::Decode(Isolate* isolate, FILE* f, byte* begin, byte* end) { 360 int Disassembler::Decode(Isolate* isolate, FILE* f, byte* begin, byte* end) {
354 return 0; 361 return 0;
355 } 362 }
356 void Disassembler::Decode(FILE* f, Code* code) {} 363 void Disassembler::Decode(FILE* f, Code* code) {}
357 364
358 #endif // ENABLE_DISASSEMBLER 365 #endif // ENABLE_DISASSEMBLER
359 366
360 } } // namespace v8::internal 367 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698