| 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 10093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10104 DECL_INT_ACCESSORS(line_number) | 10104 DECL_INT_ACCESSORS(line_number) |
| 10105 DECL_INT_ACCESSORS(column_number) | 10105 DECL_INT_ACCESSORS(column_number) |
| 10106 DECL_INT_ACCESSORS(script_id) | 10106 DECL_INT_ACCESSORS(script_id) |
| 10107 DECL_ACCESSORS(script_name, Object) | 10107 DECL_ACCESSORS(script_name, Object) |
| 10108 DECL_ACCESSORS(script_name_or_source_url, Object) | 10108 DECL_ACCESSORS(script_name_or_source_url, Object) |
| 10109 DECL_ACCESSORS(function_name, Object) | 10109 DECL_ACCESSORS(function_name, Object) |
| 10110 DECL_BOOLEAN_ACCESSORS(is_eval) | 10110 DECL_BOOLEAN_ACCESSORS(is_eval) |
| 10111 DECL_BOOLEAN_ACCESSORS(is_constructor) | 10111 DECL_BOOLEAN_ACCESSORS(is_constructor) |
| 10112 DECL_BOOLEAN_ACCESSORS(is_wasm) | 10112 DECL_BOOLEAN_ACCESSORS(is_wasm) |
| 10113 DECL_INT_ACCESSORS(flag) | 10113 DECL_INT_ACCESSORS(flag) |
| 10114 DECL_INT_ACCESSORS(options) |
| 10114 | 10115 |
| 10115 DECLARE_CAST(StackFrameInfo) | 10116 DECLARE_CAST(StackFrameInfo) |
| 10116 | 10117 |
| 10117 // Dispatched behavior. | 10118 // Dispatched behavior. |
| 10118 DECLARE_PRINTER(StackFrameInfo) | 10119 DECLARE_PRINTER(StackFrameInfo) |
| 10119 DECLARE_VERIFIER(StackFrameInfo) | 10120 DECLARE_VERIFIER(StackFrameInfo) |
| 10120 | 10121 |
| 10121 static const int kLineNumberIndex = Struct::kHeaderSize; | 10122 static const int kLineNumberIndex = Struct::kHeaderSize; |
| 10122 static const int kColumnNumberIndex = kLineNumberIndex + kPointerSize; | 10123 static const int kColumnNumberIndex = kLineNumberIndex + kPointerSize; |
| 10123 static const int kScriptIdIndex = kColumnNumberIndex + kPointerSize; | 10124 static const int kScriptIdIndex = kColumnNumberIndex + kPointerSize; |
| 10124 static const int kScriptNameIndex = kScriptIdIndex + kPointerSize; | 10125 static const int kScriptNameIndex = kScriptIdIndex + kPointerSize; |
| 10125 static const int kScriptNameOrSourceUrlIndex = | 10126 static const int kScriptNameOrSourceUrlIndex = |
| 10126 kScriptNameIndex + kPointerSize; | 10127 kScriptNameIndex + kPointerSize; |
| 10127 static const int kFunctionNameIndex = | 10128 static const int kFunctionNameIndex = |
| 10128 kScriptNameOrSourceUrlIndex + kPointerSize; | 10129 kScriptNameOrSourceUrlIndex + kPointerSize; |
| 10129 static const int kFlagIndex = kFunctionNameIndex + kPointerSize; | 10130 static const int kFlagIndex = kFunctionNameIndex + kPointerSize; |
| 10130 static const int kSize = kFlagIndex + kPointerSize; | 10131 static const int kOptionsIndex = kFlagIndex + kPointerSize; |
| 10132 static const int kSize = kOptionsIndex + kPointerSize; |
| 10131 | 10133 |
| 10132 private: | 10134 private: |
| 10133 // Bit position in the flag, from least significant bit position. | 10135 // Bit position in the flag, from least significant bit position. |
| 10134 static const int kIsEvalBit = 0; | 10136 static const int kIsEvalBit = 0; |
| 10135 static const int kIsConstructorBit = 1; | 10137 static const int kIsConstructorBit = 1; |
| 10136 static const int kIsWasmBit = 2; | 10138 static const int kIsWasmBit = 2; |
| 10137 | 10139 |
| 10138 DISALLOW_IMPLICIT_CONSTRUCTORS(StackFrameInfo); | 10140 DISALLOW_IMPLICIT_CONSTRUCTORS(StackFrameInfo); |
| 10139 }; | 10141 }; |
| 10140 | 10142 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10244 } | 10246 } |
| 10245 }; | 10247 }; |
| 10246 | 10248 |
| 10247 | 10249 |
| 10248 } // NOLINT, false-positive due to second-order macros. | 10250 } // NOLINT, false-positive due to second-order macros. |
| 10249 } // NOLINT, false-positive due to second-order macros. | 10251 } // NOLINT, false-positive due to second-order macros. |
| 10250 | 10252 |
| 10251 #include "src/objects/object-macros-undef.h" | 10253 #include "src/objects/object-macros-undef.h" |
| 10252 | 10254 |
| 10253 #endif // V8_OBJECTS_H_ | 10255 #endif // V8_OBJECTS_H_ |
| OLD | NEW |