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

Unified Diff: src/objects.cc

Issue 1728593002: [Interpreter] Add support for cpu profiler logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address review feedback Created 4 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 side-by-side diff with in-line comments
Download patch
« src/log.cc ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 58d51c11ae874ce2ed087636dd84b3844b358a7d..c25d163916b721805bf7bbf7be14bb102bf19130 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -13801,8 +13801,10 @@ void SharedFunctionInfo::DisableOptimization(BailoutReason reason) {
set_optimization_disabled(true);
set_disable_optimization_reason(reason);
// Code should be the lazy compilation stub or else unoptimized.
- DCHECK(code()->kind() == Code::FUNCTION || code()->kind() == Code::BUILTIN);
- PROFILE(GetIsolate(), CodeDisableOptEvent(code(), this));
+ DCHECK(abstract_code()->kind() == AbstractCode::FUNCTION ||
+ abstract_code()->kind() == AbstractCode::INTERPRETED_FUNCTION ||
+ abstract_code()->kind() == AbstractCode::BUILTIN);
+ PROFILE(GetIsolate(), CodeDisableOptEvent(abstract_code(), this));
if (FLAG_trace_opt) {
PrintF("[disabled optimization for ");
ShortPrint();
« src/log.cc ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698