| Index: src/objects.h
|
| ===================================================================
|
| --- src/objects.h (revision 5039)
|
| +++ src/objects.h (working copy)
|
| @@ -2744,10 +2744,6 @@
|
|
|
| inline int relocation_size();
|
|
|
| - // [sinfo_size]: Size of scope information.
|
| - inline int sinfo_size();
|
| - inline void set_sinfo_size(int value);
|
| -
|
| // [flags]: Various code flags.
|
| inline Flags flags();
|
| inline void set_flags(Flags flags);
|
| @@ -2816,9 +2812,6 @@
|
| // Returns true if pc is inside this object's instructions.
|
| inline bool contains(byte* pc);
|
|
|
| - // Returns the address of the scope information.
|
| - inline byte* sinfo_start();
|
| -
|
| // Relocate the code by delta bytes. Called to signal that this code
|
| // object has been moved by delta bytes.
|
| void Relocate(intptr_t delta);
|
| @@ -2826,12 +2819,10 @@
|
| // Migrate code described by desc.
|
| void CopyFrom(const CodeDesc& desc);
|
|
|
| - // Returns the object size for a given body and sinfo size (Used for
|
| - // allocation).
|
| - static int SizeFor(int body_size, int sinfo_size) {
|
| + // Returns the object size for a given body (used for allocation).
|
| + static int SizeFor(int body_size) {
|
| ASSERT_SIZE_TAG_ALIGNED(body_size);
|
| - ASSERT_SIZE_TAG_ALIGNED(sinfo_size);
|
| - return RoundUp(kHeaderSize + body_size + sinfo_size, kCodeAlignment);
|
| + return RoundUp(kHeaderSize + body_size, kCodeAlignment);
|
| }
|
|
|
| // Calculate the size of the code object to report for log events. This takes
|
| @@ -2851,7 +2842,7 @@
|
| static inline Code* cast(Object* obj);
|
|
|
| // Dispatched behavior.
|
| - int CodeSize() { return SizeFor(body_size(), sinfo_size()); }
|
| + int CodeSize() { return SizeFor(body_size()); }
|
| void CodeIterateBody(ObjectVisitor* v);
|
| #ifdef DEBUG
|
| void CodePrint();
|
| @@ -2865,8 +2856,7 @@
|
| // Layout description.
|
| static const int kInstructionSizeOffset = HeapObject::kHeaderSize;
|
| static const int kRelocationInfoOffset = kInstructionSizeOffset + kIntSize;
|
| - static const int kSInfoSizeOffset = kRelocationInfoOffset + kPointerSize;
|
| - static const int kFlagsOffset = kSInfoSizeOffset + kIntSize;
|
| + static const int kFlagsOffset = kRelocationInfoOffset + kPointerSize;
|
| static const int kKindSpecificFlagsOffset = kFlagsOffset + kIntSize;
|
| // Add padding to align the instruction start following right after
|
| // the Code object header.
|
| @@ -3273,6 +3263,9 @@
|
| // [code]: Function code.
|
| DECL_ACCESSORS(code, Code)
|
|
|
| + // [scope_info]: Scope info.
|
| + DECL_ACCESSORS(scope_info, Object)
|
| +
|
| // [construct stub]: Code stub for constructing instances of this function.
|
| DECL_ACCESSORS(construct_stub, Code)
|
|
|
| @@ -3426,7 +3419,8 @@
|
| // Pointer fields.
|
| static const int kNameOffset = HeapObject::kHeaderSize;
|
| static const int kCodeOffset = kNameOffset + kPointerSize;
|
| - static const int kConstructStubOffset = kCodeOffset + kPointerSize;
|
| + static const int kScopeInfoOffset = kCodeOffset + kPointerSize;
|
| + static const int kConstructStubOffset = kScopeInfoOffset + kPointerSize;
|
| static const int kInstanceClassNameOffset =
|
| kConstructStubOffset + kPointerSize;
|
| static const int kFunctionDataOffset =
|
|
|