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

Unified Diff: src/objects.h

Issue 2172583002: [interpreter] Add OSR nesting level to bytecode header. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 82155dafc2820a8d5f9827f1351ebf4de998f727..02d2c914e10113794dc499bb0870f5ebe9d8f93d 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4515,6 +4515,10 @@ class BytecodeArray : public FixedArrayBase {
inline int interrupt_budget() const;
inline void set_interrupt_budget(int interrupt_budget);
+ // Accessors for OSR loop nesting level.
+ inline int osr_loop_nesting_level() const;
+ inline void set_osr_loop_nesting_level(int depth);
+
// Accessors for the constant pool.
DECL_ACCESSORS(constant_pool, FixedArray)
@@ -4554,7 +4558,8 @@ class BytecodeArray : public FixedArrayBase {
static const int kFrameSizeOffset = kSourcePositionTableOffset + kPointerSize;
static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize;
static const int kInterruptBudgetOffset = kParameterSizeOffset + kIntSize;
- static const int kHeaderSize = kInterruptBudgetOffset + kIntSize;
+ static const int kOSRNestingLevelOffset = kInterruptBudgetOffset + kIntSize;
+ static const int kHeaderSize = kOSRNestingLevelOffset + kIntSize;
rmcilroy 2016/07/22 09:46:01 The OSR nesting level is always less than a byte (
Michael Starzinger 2016/07/25 10:24:42 As discussed offline: Yes, the OSR nesting level i
rmcilroy 2016/07/25 11:14:47 Yeah this is an issue I hadn't thought of. We cou
Michael Starzinger 2016/07/25 11:21:28 Done.
// Maximal memory consumption for a single BytecodeArray.
static const int kMaxSize = 512 * MB;
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698