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

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: Address review comments 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
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/objects.cc » ('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 a0ca513dd9e249046150fd2888c38a914e9c887d..6b393a049e2eeffadb85b40e867823a7957b7409 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4112,9 +4112,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)
@@ -4128,7 +4132,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);
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698