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

Unified Diff: src/runtime/runtime.h

Issue 2654733004: [tests] Make assertOptimized()/assertUnoptimized() great again. (Closed)
Patch Set: Update debugger.status Created 3 years, 11 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
Index: src/runtime/runtime.h
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h
index 2df020b6159862b62d6054962dff675153574f84..abe2b93a367f544be4c7562506b80e5d887346fd 100644
--- a/src/runtime/runtime.h
+++ b/src/runtime/runtime.h
@@ -1154,6 +1154,20 @@ class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
STATIC_ASSERT(LANGUAGE_END == 2);
class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {};
+// A set of bits returned by Runtime_GetOpmtimizationStatus.
Michael Starzinger 2017/01/26 12:24:52 nit: s/Opmtimization/Optimization/
Igor Sheludko 2017/01/26 14:12:31 Done.
+// These bits must be in sync with bits defined in test/mjsunit/mjsunit.js
+enum class OptimizationStatus {
+ kIsFunction = 1 << 0,
+ kNeverOptimize = 1 << 1,
+ kAlwaysOptimize = 1 << 2,
+ kMaybeDeopted = 1 << 3,
+ kOptimized = 1 << 4,
+ kTurboFanned = 1 << 5,
+ kInterpreted = 1 << 6,
+
+ kIsOptmimizedFunctionMask = kIsFunction | kOptimized,
Michael Starzinger 2017/01/26 12:24:52 nit: s/Optmimized/Optimized/, also I would vote fo
Igor Sheludko 2017/01/26 14:12:30 Removed.
+};
+
} // namespace internal
} // namespace v8
« no previous file with comments | « src/d8.cc ('k') | src/runtime/runtime-test.cc » ('j') | test/mjsunit/assert-opt-and-deopt.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698