Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 2ae1429bca6a1a70a690302abc7e1339efe5f445..36773fae702ad5b03f3eff8fbd229a073ee268f2 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -7258,6 +7258,10 @@ class JSFunction: public JSObject { |
inline Context* context(); |
inline void set_context(Object* context); |
+ // [constant_pool]: The constant pool for this function. |
+ inline ConstantPoolArray* constant_pool(); |
+ inline void set_constant_pool(Object* context); |
+ |
// [code]: The generated code object for this function. Executed |
// when the function is invoked, e.g. foo() or new foo(). See |
// [[Call]] and [[Construct]] description in ECMA-262, section |
@@ -7402,7 +7406,8 @@ class JSFunction: public JSObject { |
static const int kSharedFunctionInfoOffset = |
kPrototypeOrInitialMapOffset + kPointerSize; |
static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; |
- static const int kLiteralsOffset = kContextOffset + kPointerSize; |
+ static const int kConstantPoolOffset = kContextOffset + kPointerSize; |
+ static const int kLiteralsOffset = kConstantPoolOffset + kPointerSize; |
static const int kNonWeakFieldsEndOffset = kLiteralsOffset + kPointerSize; |
static const int kNextFunctionLinkOffset = kNonWeakFieldsEndOffset; |
static const int kSize = kNextFunctionLinkOffset + kPointerSize; |