| Index: src/objects.h
|
| ===================================================================
|
| --- src/objects.h (revision 11394)
|
| +++ src/objects.h (working copy)
|
| @@ -5139,6 +5139,12 @@
|
| // [code]: Function code.
|
| DECL_ACCESSORS(code, Code)
|
|
|
| + // [optimized_code_map]: Map from global context to optimized code
|
| + // or Smi 0 if none.
|
| + DECL_ACCESSORS(optimized_code_map, Object)
|
| +
|
| + Code* SearchOptimizedCodeMap(Context* global_context);
|
| +
|
| // [scope_info]: Scope info.
|
| DECL_ACCESSORS(scope_info, ScopeInfo)
|
|
|
| @@ -5246,6 +5252,9 @@
|
| // IsInobjectSlackTrackingInProgress is false after this call.
|
| void CompleteInobjectSlackTracking();
|
|
|
| + // Invoked before pointers in SharedFunctionInfo are being marked.
|
| + inline void BeforeVisitingPointers();
|
| +
|
| // Clears the initial_map before the GC marking phase to ensure the reference
|
| // is weak. IsInobjectSlackTrackingInProgress is false after this call.
|
| void DetachInitialMap();
|
| @@ -5504,7 +5513,8 @@
|
| // Pointer fields.
|
| static const int kNameOffset = HeapObject::kHeaderSize;
|
| static const int kCodeOffset = kNameOffset + kPointerSize;
|
| - static const int kScopeInfoOffset = kCodeOffset + kPointerSize;
|
| + static const int kOptimizedCodeMapOffset = kCodeOffset + kPointerSize;
|
| + static const int kScopeInfoOffset = kOptimizedCodeMapOffset + kPointerSize;
|
| static const int kConstructStubOffset = kScopeInfoOffset + kPointerSize;
|
| static const int kInstanceClassNameOffset =
|
| kConstructStubOffset + kPointerSize;
|
|
|