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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 10131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10142 DECL_INT_ACCESSORS(line_number) | 10142 DECL_INT_ACCESSORS(line_number) |
10143 DECL_INT_ACCESSORS(column_number) | 10143 DECL_INT_ACCESSORS(column_number) |
10144 DECL_INT_ACCESSORS(script_id) | 10144 DECL_INT_ACCESSORS(script_id) |
10145 DECL_ACCESSORS(script_name, Object) | 10145 DECL_ACCESSORS(script_name, Object) |
10146 DECL_ACCESSORS(script_name_or_source_url, Object) | 10146 DECL_ACCESSORS(script_name_or_source_url, Object) |
10147 DECL_ACCESSORS(function_name, Object) | 10147 DECL_ACCESSORS(function_name, Object) |
10148 DECL_BOOLEAN_ACCESSORS(is_eval) | 10148 DECL_BOOLEAN_ACCESSORS(is_eval) |
10149 DECL_BOOLEAN_ACCESSORS(is_constructor) | 10149 DECL_BOOLEAN_ACCESSORS(is_constructor) |
10150 DECL_BOOLEAN_ACCESSORS(is_wasm) | 10150 DECL_BOOLEAN_ACCESSORS(is_wasm) |
10151 DECL_INT_ACCESSORS(flag) | 10151 DECL_INT_ACCESSORS(flag) |
| 10152 DECL_INT_ACCESSORS(id) |
10152 | 10153 |
10153 DECLARE_CAST(StackFrameInfo) | 10154 DECLARE_CAST(StackFrameInfo) |
10154 | 10155 |
10155 // Dispatched behavior. | 10156 // Dispatched behavior. |
10156 DECLARE_PRINTER(StackFrameInfo) | 10157 DECLARE_PRINTER(StackFrameInfo) |
10157 DECLARE_VERIFIER(StackFrameInfo) | 10158 DECLARE_VERIFIER(StackFrameInfo) |
10158 | 10159 |
10159 static const int kLineNumberIndex = Struct::kHeaderSize; | 10160 static const int kLineNumberIndex = Struct::kHeaderSize; |
10160 static const int kColumnNumberIndex = kLineNumberIndex + kPointerSize; | 10161 static const int kColumnNumberIndex = kLineNumberIndex + kPointerSize; |
10161 static const int kScriptIdIndex = kColumnNumberIndex + kPointerSize; | 10162 static const int kScriptIdIndex = kColumnNumberIndex + kPointerSize; |
10162 static const int kScriptNameIndex = kScriptIdIndex + kPointerSize; | 10163 static const int kScriptNameIndex = kScriptIdIndex + kPointerSize; |
10163 static const int kScriptNameOrSourceUrlIndex = | 10164 static const int kScriptNameOrSourceUrlIndex = |
10164 kScriptNameIndex + kPointerSize; | 10165 kScriptNameIndex + kPointerSize; |
10165 static const int kFunctionNameIndex = | 10166 static const int kFunctionNameIndex = |
10166 kScriptNameOrSourceUrlIndex + kPointerSize; | 10167 kScriptNameOrSourceUrlIndex + kPointerSize; |
10167 static const int kFlagIndex = kFunctionNameIndex + kPointerSize; | 10168 static const int kFlagIndex = kFunctionNameIndex + kPointerSize; |
10168 static const int kSize = kFlagIndex + kPointerSize; | 10169 static const int kIdIndex = kFlagIndex + kPointerSize; |
| 10170 static const int kSize = kIdIndex + kPointerSize; |
10169 | 10171 |
10170 private: | 10172 private: |
10171 // Bit position in the flag, from least significant bit position. | 10173 // Bit position in the flag, from least significant bit position. |
10172 static const int kIsEvalBit = 0; | 10174 static const int kIsEvalBit = 0; |
10173 static const int kIsConstructorBit = 1; | 10175 static const int kIsConstructorBit = 1; |
10174 static const int kIsWasmBit = 2; | 10176 static const int kIsWasmBit = 2; |
10175 | 10177 |
10176 DISALLOW_IMPLICIT_CONSTRUCTORS(StackFrameInfo); | 10178 DISALLOW_IMPLICIT_CONSTRUCTORS(StackFrameInfo); |
10177 }; | 10179 }; |
10178 | 10180 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10298 } | 10300 } |
10299 }; | 10301 }; |
10300 | 10302 |
10301 | 10303 |
10302 } // NOLINT, false-positive due to second-order macros. | 10304 } // NOLINT, false-positive due to second-order macros. |
10303 } // NOLINT, false-positive due to second-order macros. | 10305 } // NOLINT, false-positive due to second-order macros. |
10304 | 10306 |
10305 #include "src/objects/object-macros-undef.h" | 10307 #include "src/objects/object-macros-undef.h" |
10306 | 10308 |
10307 #endif // V8_OBJECTS_H_ | 10309 #endif // V8_OBJECTS_H_ |
OLD | NEW |