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

Unified Diff: src/objects.h

Issue 1707693003: [Interpreter] Enable runtime profiler support for Ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Really fix --debug-code 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
« no previous file with comments | « src/mips64/builtins-mips64.cc ('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.h
diff --git a/src/objects.h b/src/objects.h
index 78962bbe4cb4a5853d542e945644d6dd25b8534a..4efd5b31edb9ee7832697605903b274980e8c026 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4451,6 +4451,10 @@ class BytecodeArray : public FixedArrayBase {
inline int parameter_count() const;
inline void set_parameter_count(int number_of_parameters);
+ // Accessors for profiling count.
+ inline int interrupt_budget() const;
+ inline void set_interrupt_budget(int interrupt_budget);
+
// Accessors for the constant pool.
DECL_ACCESSORS(constant_pool, FixedArray)
@@ -4477,13 +4481,14 @@ class BytecodeArray : public FixedArrayBase {
void Disassemble(std::ostream& os);
// Layout description.
- static const int kFrameSizeOffset = FixedArrayBase::kHeaderSize;
- static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize;
- static const int kConstantPoolOffset = kParameterSizeOffset + kIntSize;
+ static const int kConstantPoolOffset = FixedArrayBase::kHeaderSize;
static const int kHandlerTableOffset = kConstantPoolOffset + kPointerSize;
static const int kSourcePositionTableOffset =
kHandlerTableOffset + kPointerSize;
- static const int kHeaderSize = kSourcePositionTableOffset + kPointerSize;
+ static const int kFrameSizeOffset = kSourcePositionTableOffset + kPointerSize;
+ static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize;
+ static const int kInterruptBudgetOffset = kParameterSizeOffset + kIntSize;
+ static const int kHeaderSize = kInterruptBudgetOffset + kIntSize;
// Maximal memory consumption for a single BytecodeArray.
static const int kMaxSize = 512 * MB;
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698