OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_RUNTIME_RUNTIME_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_H_ |
6 #define V8_RUNTIME_RUNTIME_H_ | 6 #define V8_RUNTIME_RUNTIME_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 ARRAY_ID_FIRST = ARRAY_ID_UINT8, | 1102 ARRAY_ID_FIRST = ARRAY_ID_UINT8, |
1103 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED | 1103 ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED |
1104 }; | 1104 }; |
1105 | 1105 |
1106 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, | 1106 static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type, |
1107 ElementsKind* fixed_elements_kind, | 1107 ElementsKind* fixed_elements_kind, |
1108 size_t* element_size); | 1108 size_t* element_size); |
1109 | 1109 |
1110 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, | 1110 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, |
1111 Handle<Object>); | 1111 Handle<Object>); |
| 1112 |
| 1113 static Handle<JSArray> GetWeakMapEntries(Isolate* isolate, |
| 1114 Handle<JSWeakCollection>, |
| 1115 int max_entries); |
| 1116 static Handle<JSArray> GetWeakSetEntries(Isolate* isolate, |
| 1117 Handle<JSWeakCollection>, |
| 1118 int max_values); |
1112 }; | 1119 }; |
1113 | 1120 |
1114 | 1121 |
1115 class RuntimeState { | 1122 class RuntimeState { |
1116 public: | 1123 public: |
1117 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { | 1124 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { |
1118 return &to_upper_mapping_; | 1125 return &to_upper_mapping_; |
1119 } | 1126 } |
1120 unibrow::Mapping<unibrow::ToLowercase, 128>* to_lower_mapping() { | 1127 unibrow::Mapping<unibrow::ToLowercase, 128>* to_lower_mapping() { |
1121 return &to_lower_mapping_; | 1128 return &to_lower_mapping_; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 kMaybeDeopted = 1 << 3, | 1172 kMaybeDeopted = 1 << 3, |
1166 kOptimized = 1 << 4, | 1173 kOptimized = 1 << 4, |
1167 kTurboFanned = 1 << 5, | 1174 kTurboFanned = 1 << 5, |
1168 kInterpreted = 1 << 6, | 1175 kInterpreted = 1 << 6, |
1169 }; | 1176 }; |
1170 | 1177 |
1171 } // namespace internal | 1178 } // namespace internal |
1172 } // namespace v8 | 1179 } // namespace v8 |
1173 | 1180 |
1174 #endif // V8_RUNTIME_RUNTIME_H_ | 1181 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |