Chromium Code Reviews

Unified Diff: src/objects-inl.h

Issue 1707693003: [Interpreter] Enable runtime profiler support for Ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add test and modify comment. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index ced82cb2bedb0167c7a92ad8bd51b982a7a6c17e..79c9e04ad0f78b794755a1ddf48e3dbc4c009471 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -3886,6 +3886,14 @@ void BytecodeArray::set_parameter_count(int number_of_parameters) {
(number_of_parameters << kPointerSizeLog2));
}
+int BytecodeArray::profiling_count() const {
+ return READ_INT_FIELD(this, kProfilingCountOffset);
+}
+
+void BytecodeArray::set_profiling_count(int profiling_counter_budget) {
+ DCHECK_GE(profiling_counter_budget, 0);
+ WRITE_INT_FIELD(this, kProfilingCountOffset, profiling_counter_budget);
+}
int BytecodeArray::parameter_count() const {
// Parameter count is stored as the size on stack of the parameters to allow

Powered by Google App Engine