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