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 10940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10951 class StackFrameInfo : public Struct { | 10951 class StackFrameInfo : public Struct { |
10952 public: | 10952 public: |
10953 DECL_INT_ACCESSORS(line_number) | 10953 DECL_INT_ACCESSORS(line_number) |
10954 DECL_INT_ACCESSORS(column_number) | 10954 DECL_INT_ACCESSORS(column_number) |
10955 DECL_INT_ACCESSORS(script_id) | 10955 DECL_INT_ACCESSORS(script_id) |
10956 DECL_ACCESSORS(script_name, Object) | 10956 DECL_ACCESSORS(script_name, Object) |
10957 DECL_ACCESSORS(script_name_or_source_url, Object) | 10957 DECL_ACCESSORS(script_name_or_source_url, Object) |
10958 DECL_ACCESSORS(function_name, Object) | 10958 DECL_ACCESSORS(function_name, Object) |
10959 DECL_BOOLEAN_ACCESSORS(is_eval) | 10959 DECL_BOOLEAN_ACCESSORS(is_eval) |
10960 DECL_BOOLEAN_ACCESSORS(is_constructor) | 10960 DECL_BOOLEAN_ACCESSORS(is_constructor) |
| 10961 DECL_BOOLEAN_ACCESSORS(is_wasm) |
10961 DECL_INT_ACCESSORS(flag) | 10962 DECL_INT_ACCESSORS(flag) |
10962 | 10963 |
10963 DECLARE_CAST(StackFrameInfo) | 10964 DECLARE_CAST(StackFrameInfo) |
10964 | 10965 |
10965 // Dispatched behavior. | 10966 // Dispatched behavior. |
10966 DECLARE_PRINTER(StackFrameInfo) | 10967 DECLARE_PRINTER(StackFrameInfo) |
10967 DECLARE_VERIFIER(StackFrameInfo) | 10968 DECLARE_VERIFIER(StackFrameInfo) |
10968 | 10969 |
10969 static const int kLineNumberIndex = Struct::kHeaderSize; | 10970 static const int kLineNumberIndex = Struct::kHeaderSize; |
10970 static const int kColumnNumberIndex = kLineNumberIndex + kPointerSize; | 10971 static const int kColumnNumberIndex = kLineNumberIndex + kPointerSize; |
10971 static const int kScriptIdIndex = kColumnNumberIndex + kPointerSize; | 10972 static const int kScriptIdIndex = kColumnNumberIndex + kPointerSize; |
10972 static const int kScriptNameIndex = kScriptIdIndex + kPointerSize; | 10973 static const int kScriptNameIndex = kScriptIdIndex + kPointerSize; |
10973 static const int kScriptNameOrSourceUrlIndex = | 10974 static const int kScriptNameOrSourceUrlIndex = |
10974 kScriptNameIndex + kPointerSize; | 10975 kScriptNameIndex + kPointerSize; |
10975 static const int kFunctionNameIndex = | 10976 static const int kFunctionNameIndex = |
10976 kScriptNameOrSourceUrlIndex + kPointerSize; | 10977 kScriptNameOrSourceUrlIndex + kPointerSize; |
10977 static const int kFlagIndex = kFunctionNameIndex + kPointerSize; | 10978 static const int kFlagIndex = kFunctionNameIndex + kPointerSize; |
10978 static const int kSize = kFlagIndex + kPointerSize; | 10979 static const int kSize = kFlagIndex + kPointerSize; |
10979 | 10980 |
10980 private: | 10981 private: |
10981 // Bit position in the flag, from least significant bit position. | 10982 // Bit position in the flag, from least significant bit position. |
10982 static const int kIsEvalBit = 0; | 10983 static const int kIsEvalBit = 0; |
10983 static const int kIsConstructorBit = 1; | 10984 static const int kIsConstructorBit = 1; |
| 10985 static const int kIsWasmBit = 2; |
10984 | 10986 |
10985 DISALLOW_IMPLICIT_CONSTRUCTORS(StackFrameInfo); | 10987 DISALLOW_IMPLICIT_CONSTRUCTORS(StackFrameInfo); |
10986 }; | 10988 }; |
10987 | 10989 |
10988 #define VISITOR_SYNCHRONIZATION_TAGS_LIST(V) \ | 10990 #define VISITOR_SYNCHRONIZATION_TAGS_LIST(V) \ |
10989 V(kStringTable, "string_table", "(Internalized strings)") \ | 10991 V(kStringTable, "string_table", "(Internalized strings)") \ |
10990 V(kExternalStringsTable, "external_strings_table", "(External strings)") \ | 10992 V(kExternalStringsTable, "external_strings_table", "(External strings)") \ |
10991 V(kStrongRootList, "strong_root_list", "(Strong roots)") \ | 10993 V(kStrongRootList, "strong_root_list", "(Strong roots)") \ |
10992 V(kSmiRootList, "smi_root_list", "(Smi roots)") \ | 10994 V(kSmiRootList, "smi_root_list", "(Smi roots)") \ |
10993 V(kBootstrapper, "bootstrapper", "(Bootstrapper)") \ | 10995 V(kBootstrapper, "bootstrapper", "(Bootstrapper)") \ |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11100 } | 11102 } |
11101 }; | 11103 }; |
11102 | 11104 |
11103 | 11105 |
11104 } // NOLINT, false-positive due to second-order macros. | 11106 } // NOLINT, false-positive due to second-order macros. |
11105 } // NOLINT, false-positive due to second-order macros. | 11107 } // NOLINT, false-positive due to second-order macros. |
11106 | 11108 |
11107 #include "src/objects/object-macros-undef.h" | 11109 #include "src/objects/object-macros-undef.h" |
11108 | 11110 |
11109 #endif // V8_OBJECTS_H_ | 11111 #endif // V8_OBJECTS_H_ |
OLD | NEW |