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 10094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10105 class StackFrameInfo : public Struct { | 10105 class StackFrameInfo : public Struct { |
10106 public: | 10106 public: |
10107 DECL_INT_ACCESSORS(line_number) | 10107 DECL_INT_ACCESSORS(line_number) |
10108 DECL_INT_ACCESSORS(column_number) | 10108 DECL_INT_ACCESSORS(column_number) |
10109 DECL_INT_ACCESSORS(script_id) | 10109 DECL_INT_ACCESSORS(script_id) |
10110 DECL_ACCESSORS(script_name, Object) | 10110 DECL_ACCESSORS(script_name, Object) |
10111 DECL_ACCESSORS(script_name_or_source_url, Object) | 10111 DECL_ACCESSORS(script_name_or_source_url, Object) |
10112 DECL_ACCESSORS(function_name, Object) | 10112 DECL_ACCESSORS(function_name, Object) |
10113 DECL_BOOLEAN_ACCESSORS(is_eval) | 10113 DECL_BOOLEAN_ACCESSORS(is_eval) |
10114 DECL_BOOLEAN_ACCESSORS(is_constructor) | 10114 DECL_BOOLEAN_ACCESSORS(is_constructor) |
| 10115 DECL_BOOLEAN_ACCESSORS(is_wasm) |
10115 DECL_INT_ACCESSORS(flag) | 10116 DECL_INT_ACCESSORS(flag) |
10116 | 10117 |
10117 DECLARE_CAST(StackFrameInfo) | 10118 DECLARE_CAST(StackFrameInfo) |
10118 | 10119 |
10119 // Dispatched behavior. | 10120 // Dispatched behavior. |
10120 DECLARE_PRINTER(StackFrameInfo) | 10121 DECLARE_PRINTER(StackFrameInfo) |
10121 DECLARE_VERIFIER(StackFrameInfo) | 10122 DECLARE_VERIFIER(StackFrameInfo) |
10122 | 10123 |
10123 static const int kLineNumberIndex = Struct::kHeaderSize; | 10124 static const int kLineNumberIndex = Struct::kHeaderSize; |
10124 static const int kColumnNumberIndex = kLineNumberIndex + kPointerSize; | 10125 static const int kColumnNumberIndex = kLineNumberIndex + kPointerSize; |
10125 static const int kScriptIdIndex = kColumnNumberIndex + kPointerSize; | 10126 static const int kScriptIdIndex = kColumnNumberIndex + kPointerSize; |
10126 static const int kScriptNameIndex = kScriptIdIndex + kPointerSize; | 10127 static const int kScriptNameIndex = kScriptIdIndex + kPointerSize; |
10127 static const int kScriptNameOrSourceUrlIndex = | 10128 static const int kScriptNameOrSourceUrlIndex = |
10128 kScriptNameIndex + kPointerSize; | 10129 kScriptNameIndex + kPointerSize; |
10129 static const int kFunctionNameIndex = | 10130 static const int kFunctionNameIndex = |
10130 kScriptNameOrSourceUrlIndex + kPointerSize; | 10131 kScriptNameOrSourceUrlIndex + kPointerSize; |
10131 static const int kFlagIndex = kFunctionNameIndex + kPointerSize; | 10132 static const int kFlagIndex = kFunctionNameIndex + kPointerSize; |
10132 static const int kSize = kFlagIndex + kPointerSize; | 10133 static const int kSize = kFlagIndex + kPointerSize; |
10133 | 10134 |
10134 private: | 10135 private: |
10135 // Bit position in the flag, from least significant bit position. | 10136 // Bit position in the flag, from least significant bit position. |
10136 static const int kIsEvalBit = 0; | 10137 static const int kIsEvalBit = 0; |
10137 static const int kIsConstructorBit = 1; | 10138 static const int kIsConstructorBit = 1; |
| 10139 static const int kIsWasmBit = 2; |
10138 | 10140 |
10139 DISALLOW_IMPLICIT_CONSTRUCTORS(StackFrameInfo); | 10141 DISALLOW_IMPLICIT_CONSTRUCTORS(StackFrameInfo); |
10140 }; | 10142 }; |
10141 | 10143 |
10142 #define VISITOR_SYNCHRONIZATION_TAGS_LIST(V) \ | 10144 #define VISITOR_SYNCHRONIZATION_TAGS_LIST(V) \ |
10143 V(kStringTable, "string_table", "(Internalized strings)") \ | 10145 V(kStringTable, "string_table", "(Internalized strings)") \ |
10144 V(kExternalStringsTable, "external_strings_table", "(External strings)") \ | 10146 V(kExternalStringsTable, "external_strings_table", "(External strings)") \ |
10145 V(kStrongRootList, "strong_root_list", "(Strong roots)") \ | 10147 V(kStrongRootList, "strong_root_list", "(Strong roots)") \ |
10146 V(kSmiRootList, "smi_root_list", "(Smi roots)") \ | 10148 V(kSmiRootList, "smi_root_list", "(Smi roots)") \ |
10147 V(kBootstrapper, "bootstrapper", "(Bootstrapper)") \ | 10149 V(kBootstrapper, "bootstrapper", "(Bootstrapper)") \ |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10245 } | 10247 } |
10246 }; | 10248 }; |
10247 | 10249 |
10248 | 10250 |
10249 } // NOLINT, false-positive due to second-order macros. | 10251 } // NOLINT, false-positive due to second-order macros. |
10250 } // NOLINT, false-positive due to second-order macros. | 10252 } // NOLINT, false-positive due to second-order macros. |
10251 | 10253 |
10252 #include "src/objects/object-macros-undef.h" | 10254 #include "src/objects/object-macros-undef.h" |
10253 | 10255 |
10254 #endif // V8_OBJECTS_H_ | 10256 #endif // V8_OBJECTS_H_ |
OLD | NEW |