| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 6fbba3cd5739877d76f595f15f9ae27cae63ff1e..06d994e70c278cbff7bf7ed8de1dd3cfbdf0e273 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -7256,6 +7256,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
|
| @@ -7400,7 +7404,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;
|
|
|