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_HEAP_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 V(string_string, "string") \ | 259 V(string_string, "string") \ |
260 V(String_string, "String") \ | 260 V(String_string, "String") \ |
261 V(symbol_string, "symbol") \ | 261 V(symbol_string, "symbol") \ |
262 V(Symbol_string, "Symbol") \ | 262 V(Symbol_string, "Symbol") \ |
263 V(Map_string, "Map") \ | 263 V(Map_string, "Map") \ |
264 V(Set_string, "Set") \ | 264 V(Set_string, "Set") \ |
265 V(WeakMap_string, "WeakMap") \ | 265 V(WeakMap_string, "WeakMap") \ |
266 V(WeakSet_string, "WeakSet") \ | 266 V(WeakSet_string, "WeakSet") \ |
267 V(for_string, "for") \ | 267 V(for_string, "for") \ |
268 V(for_api_string, "for_api") \ | 268 V(for_api_string, "for_api") \ |
269 V(for_intern_string, "for_intern") \ | |
270 V(private_api_string, "private_api") \ | |
271 V(private_intern_string, "private_intern") \ | |
272 V(Date_string, "Date") \ | 269 V(Date_string, "Date") \ |
273 V(char_at_string, "CharAt") \ | 270 V(char_at_string, "CharAt") \ |
274 V(undefined_string, "undefined") \ | 271 V(undefined_string, "undefined") \ |
275 V(value_of_string, "valueOf") \ | 272 V(value_of_string, "valueOf") \ |
276 V(stack_string, "stack") \ | 273 V(stack_string, "stack") \ |
277 V(toJSON_string, "toJSON") \ | 274 V(toJSON_string, "toJSON") \ |
278 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ | 275 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ |
279 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ | 276 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ |
280 V(illegal_access_string, "illegal access") \ | 277 V(illegal_access_string, "illegal access") \ |
281 V(cell_value_string, "%cell_value") \ | 278 V(cell_value_string, "%cell_value") \ |
(...skipping 10 matching lines...) Expand all Loading... |
292 V(done_string, "done") \ | 289 V(done_string, "done") \ |
293 V(value_string, "value") \ | 290 V(value_string, "value") \ |
294 V(next_string, "next") \ | 291 V(next_string, "next") \ |
295 V(byte_length_string, "byteLength") \ | 292 V(byte_length_string, "byteLength") \ |
296 V(byte_offset_string, "byteOffset") \ | 293 V(byte_offset_string, "byteOffset") \ |
297 V(minus_zero_string, "-0") \ | 294 V(minus_zero_string, "-0") \ |
298 V(Array_string, "Array") \ | 295 V(Array_string, "Array") \ |
299 V(Error_string, "Error") \ | 296 V(Error_string, "Error") \ |
300 V(RegExp_string, "RegExp") | 297 V(RegExp_string, "RegExp") |
301 | 298 |
302 #define PRIVATE_SYMBOL_LIST(V) \ | 299 #define PRIVATE_SYMBOL_LIST(V) \ |
303 V(nonextensible_symbol) \ | 300 V(array_iteration_kind_symbol) \ |
304 V(sealed_symbol) \ | 301 V(array_iterator_next_symbol) \ |
305 V(hash_code_symbol) \ | 302 V(array_iterator_object_symbol) \ |
306 V(frozen_symbol) \ | 303 V(call_site_function_symbol) \ |
307 V(nonexistent_symbol) \ | 304 V(call_site_position_symbol) \ |
308 V(elements_transition_symbol) \ | 305 V(call_site_receiver_symbol) \ |
309 V(observed_symbol) \ | 306 V(call_site_strict_symbol) \ |
310 V(uninitialized_symbol) \ | 307 V(class_end_position_symbol) \ |
311 V(megamorphic_symbol) \ | 308 V(class_start_position_symbol) \ |
312 V(premonomorphic_symbol) \ | 309 V(detailed_stack_trace_symbol) \ |
313 V(stack_trace_symbol) \ | 310 V(elements_transition_symbol) \ |
314 V(detailed_stack_trace_symbol) \ | 311 V(error_end_pos_symbol) \ |
315 V(normal_ic_symbol) \ | 312 V(error_script_symbol) \ |
316 V(home_object_symbol) \ | 313 V(error_start_pos_symbol) \ |
317 V(intl_initialized_marker_symbol) \ | 314 V(formatted_stack_trace_symbol) \ |
318 V(intl_impl_object_symbol) \ | 315 V(frozen_symbol) \ |
319 V(promise_debug_marker_symbol) \ | 316 V(hash_code_symbol) \ |
320 V(promise_has_handler_symbol) \ | 317 V(home_object_symbol) \ |
321 V(class_start_position_symbol) \ | 318 V(internal_error_symbol) \ |
322 V(class_end_position_symbol) \ | 319 V(intl_impl_object_symbol) \ |
323 V(error_start_pos_symbol) \ | 320 V(intl_initialized_marker_symbol) \ |
324 V(error_end_pos_symbol) \ | 321 V(megamorphic_symbol) \ |
325 V(error_script_symbol) \ | 322 V(nonexistent_symbol) \ |
326 V(internal_error_symbol) | 323 V(nonextensible_symbol) \ |
| 324 V(normal_ic_symbol) \ |
| 325 V(observed_symbol) \ |
| 326 V(premonomorphic_symbol) \ |
| 327 V(promise_debug_marker_symbol) \ |
| 328 V(promise_has_handler_symbol) \ |
| 329 V(promise_on_resolve_symbol) \ |
| 330 V(promise_on_reject_symbol) \ |
| 331 V(promise_raw_symbol) \ |
| 332 V(promise_status_symbol) \ |
| 333 V(promise_value_symbol) \ |
| 334 V(sealed_symbol) \ |
| 335 V(stack_trace_symbol) \ |
| 336 V(string_iterator_iterated_string_symbol) \ |
| 337 V(string_iterator_next_index_symbol) \ |
| 338 V(uninitialized_symbol) |
| 339 |
327 | 340 |
328 #define PUBLIC_SYMBOL_LIST(V) \ | 341 #define PUBLIC_SYMBOL_LIST(V) \ |
329 V(has_instance_symbol, symbolHasInstance, Symbol.hasInstance) \ | 342 V(has_instance_symbol, symbolHasInstance, Symbol.hasInstance) \ |
330 V(is_concat_spreadable_symbol, symbolIsConcatSpreadable, \ | 343 V(is_concat_spreadable_symbol, symbolIsConcatSpreadable, \ |
331 Symbol.isConcatSpreadable) \ | 344 Symbol.isConcatSpreadable) \ |
332 V(is_regexp_symbol, symbolIsRegExp, Symbol.isRegExp) \ | 345 V(is_regexp_symbol, symbolIsRegExp, Symbol.isRegExp) \ |
333 V(iterator_symbol, symbolIterator, Symbol.iterator) \ | 346 V(iterator_symbol, symbolIterator, Symbol.iterator) \ |
334 V(to_string_tag_symbol, symbolToStringTag, Symbol.toStringTag) \ | 347 V(to_string_tag_symbol, symbolToStringTag, Symbol.toStringTag) \ |
335 V(unscopables_symbol, symbolUnscopables, Symbol.unscopables) | 348 V(unscopables_symbol, symbolUnscopables, Symbol.unscopables) |
336 | 349 |
(...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1798 struct StructTable { | 1811 struct StructTable { |
1799 InstanceType type; | 1812 InstanceType type; |
1800 int size; | 1813 int size; |
1801 RootListIndex index; | 1814 RootListIndex index; |
1802 }; | 1815 }; |
1803 | 1816 |
1804 static const StringTypeTable string_type_table[]; | 1817 static const StringTypeTable string_type_table[]; |
1805 static const ConstantStringTable constant_string_table[]; | 1818 static const ConstantStringTable constant_string_table[]; |
1806 static const StructTable struct_table[]; | 1819 static const StructTable struct_table[]; |
1807 | 1820 |
1808 void AddPrivateGlobalSymbols(Handle<Object> private_intern_table); | |
1809 | |
1810 struct GCCallbackPair { | 1821 struct GCCallbackPair { |
1811 GCCallbackPair(v8::Isolate::GCCallback callback, GCType gc_type, | 1822 GCCallbackPair(v8::Isolate::GCCallback callback, GCType gc_type, |
1812 bool pass_isolate) | 1823 bool pass_isolate) |
1813 : callback(callback), gc_type(gc_type), pass_isolate(pass_isolate) {} | 1824 : callback(callback), gc_type(gc_type), pass_isolate(pass_isolate) {} |
1814 | 1825 |
1815 bool operator==(const GCCallbackPair& other) const { | 1826 bool operator==(const GCCallbackPair& other) const { |
1816 return other.callback == callback; | 1827 return other.callback == callback; |
1817 } | 1828 } |
1818 | 1829 |
1819 v8::Isolate::GCCallback callback; | 1830 v8::Isolate::GCCallback callback; |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2696 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2707 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2697 | 2708 |
2698 private: | 2709 private: |
2699 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2710 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2700 }; | 2711 }; |
2701 #endif // DEBUG | 2712 #endif // DEBUG |
2702 } | 2713 } |
2703 } // namespace v8::internal | 2714 } // namespace v8::internal |
2704 | 2715 |
2705 #endif // V8_HEAP_HEAP_H_ | 2716 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |