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

Unified Diff: src/objects.h

Issue 1303403004: [Interpreter] Add support for parameter variables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_add_bytecodes
Patch Set: Fix Windows build Created 5 years, 4 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/objects.h
diff --git a/src/objects.h b/src/objects.h
index 4fe42cdc81c6c0aa30317c96daf47d843bc54faa..f54a6c9b890fbdf5867fa096a082fb131894d328 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4103,9 +4103,13 @@ class BytecodeArray : public FixedArrayBase {
// Returns data start address.
inline Address GetFirstBytecodeAddress();
- // Accessors for frame size and the number of locals
+ // Accessors for frame size.
inline int frame_size() const;
- inline void set_frame_size(int value);
+ inline void set_frame_size(int frame_size);
+
+ // Accessors for parameter count (including implicit 'this' receiver).
+ inline int parameter_count() const;
+ inline void set_parameter_count(int number_of_parameters);
DECLARE_CAST(BytecodeArray)
@@ -4119,7 +4123,8 @@ class BytecodeArray : public FixedArrayBase {
// Layout description.
static const int kFrameSizeOffset = FixedArrayBase::kHeaderSize;
- static const int kHeaderSize = kFrameSizeOffset + kIntSize;
+ static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize;
+ static const int kHeaderSize = kParameterSizeOffset + kIntSize;
static const int kAlignedSize = OBJECT_POINTER_ALIGN(kHeaderSize);

Powered by Google App Engine
This is Rietveld 408576698