Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 794e017de45bfecc78f80578453ad4e6124fae02..f95cda71ef9da894827c04ad67d0a83fe4558768 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4087,6 +4087,11 @@ int BytecodeArray::frame_size() const { |
} |
+int BytecodeArray::register_count() const { |
+ return frame_size() / kPointerSize; |
+} |
+ |
+ |
void BytecodeArray::set_parameter_count(int number_of_parameters) { |
DCHECK_GE(number_of_parameters, 0); |
// Parameter count is stored as the size on stack of the parameters to allow |