OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 6418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6429 // [type]: the script type. | 6429 // [type]: the script type. |
6430 DECL_INT_ACCESSORS(type) | 6430 DECL_INT_ACCESSORS(type) |
6431 | 6431 |
6432 // [line_ends]: FixedArray of line ends positions. | 6432 // [line_ends]: FixedArray of line ends positions. |
6433 DECL_ACCESSORS(line_ends, Object) | 6433 DECL_ACCESSORS(line_ends, Object) |
6434 | 6434 |
6435 // [eval_from_shared]: for eval scripts the shared function info for the | 6435 // [eval_from_shared]: for eval scripts the shared function info for the |
6436 // function from which eval was called. | 6436 // function from which eval was called. |
6437 DECL_ACCESSORS(eval_from_shared, Object) | 6437 DECL_ACCESSORS(eval_from_shared, Object) |
6438 | 6438 |
6439 // [eval_from_position]: the source position in the code for the | 6439 // [eval_from_instructions_offset]: the instruction offset in the code for the |
6440 // function from which eval was called. | 6440 // function from which eval was called where eval was called. |
6441 DECL_INT_ACCESSORS(eval_from_position) | 6441 DECL_INT_ACCESSORS(eval_from_instructions_offset) |
6442 | 6442 |
6443 // [shared_function_infos]: weak fixed array containing all shared | 6443 // [shared_function_infos]: weak fixed array containing all shared |
6444 // function infos created from this script. | 6444 // function infos created from this script. |
6445 DECL_ACCESSORS(shared_function_infos, Object) | 6445 DECL_ACCESSORS(shared_function_infos, Object) |
6446 | 6446 |
6447 // [flags]: Holds an exciting bitfield. | 6447 // [flags]: Holds an exciting bitfield. |
6448 DECL_INT_ACCESSORS(flags) | 6448 DECL_INT_ACCESSORS(flags) |
6449 | 6449 |
6450 // [source_url]: sourceURL from magic comment | 6450 // [source_url]: sourceURL from magic comment |
6451 DECL_ACCESSORS(source_url, Object) | 6451 DECL_ACCESSORS(source_url, Object) |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6518 static const int kSourceOffset = HeapObject::kHeaderSize; | 6518 static const int kSourceOffset = HeapObject::kHeaderSize; |
6519 static const int kNameOffset = kSourceOffset + kPointerSize; | 6519 static const int kNameOffset = kSourceOffset + kPointerSize; |
6520 static const int kLineOffsetOffset = kNameOffset + kPointerSize; | 6520 static const int kLineOffsetOffset = kNameOffset + kPointerSize; |
6521 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; | 6521 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; |
6522 static const int kContextOffset = kColumnOffsetOffset + kPointerSize; | 6522 static const int kContextOffset = kColumnOffsetOffset + kPointerSize; |
6523 static const int kWrapperOffset = kContextOffset + kPointerSize; | 6523 static const int kWrapperOffset = kContextOffset + kPointerSize; |
6524 static const int kTypeOffset = kWrapperOffset + kPointerSize; | 6524 static const int kTypeOffset = kWrapperOffset + kPointerSize; |
6525 static const int kLineEndsOffset = kTypeOffset + kPointerSize; | 6525 static const int kLineEndsOffset = kTypeOffset + kPointerSize; |
6526 static const int kIdOffset = kLineEndsOffset + kPointerSize; | 6526 static const int kIdOffset = kLineEndsOffset + kPointerSize; |
6527 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; | 6527 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; |
6528 static const int kEvalFromPositionOffset = | 6528 static const int kEvalFrominstructionsOffsetOffset = |
6529 kEvalFromSharedOffset + kPointerSize; | 6529 kEvalFromSharedOffset + kPointerSize; |
6530 static const int kSharedFunctionInfosOffset = | 6530 static const int kSharedFunctionInfosOffset = |
6531 kEvalFromPositionOffset + kPointerSize; | 6531 kEvalFrominstructionsOffsetOffset + kPointerSize; |
6532 static const int kFlagsOffset = kSharedFunctionInfosOffset + kPointerSize; | 6532 static const int kFlagsOffset = kSharedFunctionInfosOffset + kPointerSize; |
6533 static const int kSourceUrlOffset = kFlagsOffset + kPointerSize; | 6533 static const int kSourceUrlOffset = kFlagsOffset + kPointerSize; |
6534 static const int kSourceMappingUrlOffset = kSourceUrlOffset + kPointerSize; | 6534 static const int kSourceMappingUrlOffset = kSourceUrlOffset + kPointerSize; |
6535 static const int kSize = kSourceMappingUrlOffset + kPointerSize; | 6535 static const int kSize = kSourceMappingUrlOffset + kPointerSize; |
6536 | 6536 |
6537 private: | 6537 private: |
6538 int GetLineNumberWithArray(int code_pos); | 6538 int GetLineNumberWithArray(int code_pos); |
6539 | 6539 |
6540 // Bit positions in the flags field. | 6540 // Bit positions in the flags field. |
6541 static const int kCompilationTypeBit = 0; | 6541 static const int kCompilationTypeBit = 0; |
(...skipping 4238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10780 } | 10780 } |
10781 return value; | 10781 return value; |
10782 } | 10782 } |
10783 }; | 10783 }; |
10784 | 10784 |
10785 | 10785 |
10786 } // NOLINT, false-positive due to second-order macros. | 10786 } // NOLINT, false-positive due to second-order macros. |
10787 } // NOLINT, false-positive due to second-order macros. | 10787 } // NOLINT, false-positive due to second-order macros. |
10788 | 10788 |
10789 #endif // V8_OBJECTS_H_ | 10789 #endif // V8_OBJECTS_H_ |
OLD | NEW |