| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 63480eb08e1e3bec4d44cffdf2963b31f8c7a9f3..0e178081e506b5e14ccbf07dbcdf8e9270ea7617 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -2665,6 +2665,13 @@ class SharedFunctionInfo: public HeapObject {
|
| // [debug info]: Debug information.
|
| DECL_ACCESSORS(debug_info, Object)
|
|
|
| + // [inferred name]: Name inferred from variable or property
|
| + // assignment of this function. Used to facilitate debugging and
|
| + // profiling of JavaScript code written in OO style, where almost
|
| + // all functions are anonymous but are assigned to object
|
| + // properties.
|
| + DECL_ACCESSORS(inferred_name, String)
|
| +
|
| // Position of the 'function' token in the script source.
|
| inline int function_token_position();
|
| inline void set_function_token_position(int function_token_position);
|
| @@ -2724,7 +2731,8 @@ class SharedFunctionInfo: public HeapObject {
|
| static const int kEndPositionOffset = kStartPositionAndTypeOffset + kIntSize;
|
| static const int kFunctionTokenPositionOffset = kEndPositionOffset + kIntSize;
|
| static const int kDebugInfoOffset = kFunctionTokenPositionOffset + kIntSize;
|
| - static const int kSize = kDebugInfoOffset + kPointerSize;
|
| + static const int kInferredNameOffset = kDebugInfoOffset + kPointerSize;
|
| + static const int kSize = kInferredNameOffset + kPointerSize;
|
|
|
| private:
|
| // Bit positions in length_and_flg.
|
|
|