| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 V(eval_string, "eval") \ | 242 V(eval_string, "eval") \ |
| 243 V(float32x4_string, "float32x4") \ | 243 V(float32x4_string, "float32x4") \ |
| 244 V(Float32x4_string, "Float32x4") \ | 244 V(Float32x4_string, "Float32x4") \ |
| 245 V(for_api_string, "for_api") \ | 245 V(for_api_string, "for_api") \ |
| 246 V(for_string, "for") \ | 246 V(for_string, "for") \ |
| 247 V(function_string, "function") \ | 247 V(function_string, "function") \ |
| 248 V(Function_string, "Function") \ | 248 V(Function_string, "Function") \ |
| 249 V(Generator_string, "Generator") \ | 249 V(Generator_string, "Generator") \ |
| 250 V(get_string, "get") \ | 250 V(get_string, "get") \ |
| 251 V(global_string, "global") \ | 251 V(global_string, "global") \ |
| 252 V(ignore_case_string, "ignoreCase") \ |
| 252 V(illegal_access_string, "illegal access") \ | 253 V(illegal_access_string, "illegal access") \ |
| 253 V(illegal_argument_string, "illegal argument") \ | 254 V(illegal_argument_string, "illegal argument") \ |
| 254 V(index_string, "index") \ | 255 V(index_string, "index") \ |
| 255 V(infinity_string, "Infinity") \ | 256 V(infinity_string, "Infinity") \ |
| 256 V(input_string, "input") \ | 257 V(input_string, "input") \ |
| 257 V(int16x8_string, "int16x8") \ | 258 V(int16x8_string, "int16x8") \ |
| 258 V(Int16x8_string, "Int16x8") \ | 259 V(Int16x8_string, "Int16x8") \ |
| 259 V(int32x4_string, "int32x4") \ | 260 V(int32x4_string, "int32x4") \ |
| 260 V(Int32x4_string, "Int32x4") \ | 261 V(Int32x4_string, "Int32x4") \ |
| 261 V(int8x16_string, "int8x16") \ | 262 V(int8x16_string, "int8x16") \ |
| 262 V(Int8x16_string, "Int8x16") \ | 263 V(Int8x16_string, "Int8x16") \ |
| 263 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ | 264 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ |
| 264 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ | 265 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ |
| 265 V(last_index_string, "lastIndex") \ | 266 V(last_index_string, "lastIndex") \ |
| 266 V(length_string, "length") \ | 267 V(length_string, "length") \ |
| 267 V(Map_string, "Map") \ | 268 V(Map_string, "Map") \ |
| 268 V(minus_infinity_string, "-Infinity") \ | 269 V(minus_infinity_string, "-Infinity") \ |
| 269 V(minus_zero_string, "-0") \ | 270 V(minus_zero_string, "-0") \ |
| 271 V(multiline_string, "multiline") \ |
| 270 V(name_string, "name") \ | 272 V(name_string, "name") \ |
| 271 V(nan_string, "NaN") \ | 273 V(nan_string, "NaN") \ |
| 272 V(next_string, "next") \ | 274 V(next_string, "next") \ |
| 273 V(null_string, "null") \ | 275 V(null_string, "null") \ |
| 274 V(number_string, "number") \ | 276 V(number_string, "number") \ |
| 275 V(Number_string, "Number") \ | 277 V(Number_string, "Number") \ |
| 276 V(object_string, "object") \ | 278 V(object_string, "object") \ |
| 277 V(Object_string, "Object") \ | 279 V(Object_string, "Object") \ |
| 278 V(private_api_string, "private_api") \ | 280 V(private_api_string, "private_api") \ |
| 279 V(proto_string, "__proto__") \ | 281 V(proto_string, "__proto__") \ |
| 280 V(prototype_string, "prototype") \ | 282 V(prototype_string, "prototype") \ |
| 281 V(query_colon_string, "(?:)") \ | 283 V(query_colon_string, "(?:)") \ |
| 282 V(RegExp_string, "RegExp") \ | 284 V(RegExp_string, "RegExp") \ |
| 283 V(set_string, "set") \ | 285 V(set_string, "set") \ |
| 284 V(Set_string, "Set") \ | 286 V(Set_string, "Set") \ |
| 285 V(source_mapping_url_string, "source_mapping_url") \ | 287 V(source_mapping_url_string, "source_mapping_url") \ |
| 286 V(source_string, "source") \ | 288 V(source_string, "source") \ |
| 287 V(source_url_string, "source_url") \ | 289 V(source_url_string, "source_url") \ |
| 288 V(stack_string, "stack") \ | 290 V(stack_string, "stack") \ |
| 291 V(sticky_string, "sticky") \ |
| 289 V(strict_compare_ic_string, "===") \ | 292 V(strict_compare_ic_string, "===") \ |
| 290 V(string_string, "string") \ | 293 V(string_string, "string") \ |
| 291 V(String_string, "String") \ | 294 V(String_string, "String") \ |
| 292 V(symbol_string, "symbol") \ | 295 V(symbol_string, "symbol") \ |
| 293 V(Symbol_string, "Symbol") \ | 296 V(Symbol_string, "Symbol") \ |
| 294 V(this_string, "this") \ | 297 V(this_string, "this") \ |
| 295 V(throw_string, "throw") \ | 298 V(throw_string, "throw") \ |
| 296 V(toJSON_string, "toJSON") \ | 299 V(toJSON_string, "toJSON") \ |
| 297 V(toString_string, "toString") \ | 300 V(toString_string, "toString") \ |
| 298 V(uint16x8_string, "uint16x8") \ | 301 V(uint16x8_string, "uint16x8") \ |
| 299 V(Uint16x8_string, "Uint16x8") \ | 302 V(Uint16x8_string, "Uint16x8") \ |
| 300 V(uint32x4_string, "uint32x4") \ | 303 V(uint32x4_string, "uint32x4") \ |
| 301 V(Uint32x4_string, "Uint32x4") \ | 304 V(Uint32x4_string, "Uint32x4") \ |
| 302 V(uint8x16_string, "uint8x16") \ | 305 V(uint8x16_string, "uint8x16") \ |
| 303 V(Uint8x16_string, "Uint8x16") \ | 306 V(Uint8x16_string, "Uint8x16") \ |
| 304 V(undefined_string, "undefined") \ | 307 V(undefined_string, "undefined") \ |
| 308 V(unicode_string, "unicode") \ |
| 305 V(valueOf_string, "valueOf") \ | 309 V(valueOf_string, "valueOf") \ |
| 306 V(value_string, "value") \ | 310 V(value_string, "value") \ |
| 307 V(WeakMap_string, "WeakMap") \ | 311 V(WeakMap_string, "WeakMap") \ |
| 308 V(WeakSet_string, "WeakSet") \ | 312 V(WeakSet_string, "WeakSet") \ |
| 309 V(writable_string, "writable") | 313 V(writable_string, "writable") |
| 310 | 314 |
| 311 #define PRIVATE_SYMBOL_LIST(V) \ | 315 #define PRIVATE_SYMBOL_LIST(V) \ |
| 312 V(array_iteration_kind_symbol) \ | 316 V(array_iteration_kind_symbol) \ |
| 313 V(array_iterator_next_symbol) \ | 317 V(array_iterator_next_symbol) \ |
| 314 V(array_iterator_object_symbol) \ | 318 V(array_iterator_object_symbol) \ |
| (...skipping 23 matching lines...) Expand all Loading... |
| 338 V(observed_symbol) \ | 342 V(observed_symbol) \ |
| 339 V(premonomorphic_symbol) \ | 343 V(premonomorphic_symbol) \ |
| 340 V(promise_combined_deferred_symbol) \ | 344 V(promise_combined_deferred_symbol) \ |
| 341 V(promise_debug_marker_symbol) \ | 345 V(promise_debug_marker_symbol) \ |
| 342 V(promise_has_handler_symbol) \ | 346 V(promise_has_handler_symbol) \ |
| 343 V(promise_on_resolve_symbol) \ | 347 V(promise_on_resolve_symbol) \ |
| 344 V(promise_on_reject_symbol) \ | 348 V(promise_on_reject_symbol) \ |
| 345 V(promise_raw_symbol) \ | 349 V(promise_raw_symbol) \ |
| 346 V(promise_status_symbol) \ | 350 V(promise_status_symbol) \ |
| 347 V(promise_value_symbol) \ | 351 V(promise_value_symbol) \ |
| 348 V(regexp_flags_symbol) \ | |
| 349 V(regexp_source_symbol) \ | |
| 350 V(sealed_symbol) \ | 352 V(sealed_symbol) \ |
| 351 V(stack_trace_symbol) \ | 353 V(stack_trace_symbol) \ |
| 352 V(string_iterator_iterated_string_symbol) \ | 354 V(string_iterator_iterated_string_symbol) \ |
| 353 V(string_iterator_next_index_symbol) \ | 355 V(string_iterator_next_index_symbol) \ |
| 354 V(uninitialized_symbol) | 356 V(uninitialized_symbol) |
| 355 | 357 |
| 356 #define PUBLIC_SYMBOL_LIST(V) \ | 358 #define PUBLIC_SYMBOL_LIST(V) \ |
| 357 V(has_instance_symbol, Symbol.hasInstance) \ | 359 V(has_instance_symbol, Symbol.hasInstance) \ |
| 360 V(is_regexp_symbol, Symbol.isRegExp) \ |
| 358 V(iterator_symbol, Symbol.iterator) \ | 361 V(iterator_symbol, Symbol.iterator) \ |
| 359 V(match_symbol, Symbol.match) \ | 362 V(match_symbol, Symbol.match) \ |
| 360 V(replace_symbol, Symbol.replace) \ | 363 V(replace_symbol, Symbol.replace) \ |
| 361 V(search_symbol, Symbol.search) \ | 364 V(search_symbol, Symbol.search) \ |
| 362 V(split_symbol, Symbol.split) \ | 365 V(split_symbol, Symbol.split) \ |
| 363 V(to_primitive_symbol, Symbol.toPrimitive) \ | 366 V(to_primitive_symbol, Symbol.toPrimitive) \ |
| 364 V(unscopables_symbol, Symbol.unscopables) | 367 V(unscopables_symbol, Symbol.unscopables) |
| 365 | 368 |
| 366 // Well-Known Symbols are "Public" symbols, which have a bit set which causes | 369 // Well-Known Symbols are "Public" symbols, which have a bit set which causes |
| 367 // them to produce an undefined value when a load results in a failed access | 370 // them to produce an undefined value when a load results in a failed access |
| (...skipping 2356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2724 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2727 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2725 | 2728 |
| 2726 private: | 2729 private: |
| 2727 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2730 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2728 }; | 2731 }; |
| 2729 #endif // DEBUG | 2732 #endif // DEBUG |
| 2730 } // namespace internal | 2733 } // namespace internal |
| 2731 } // namespace v8 | 2734 } // namespace v8 |
| 2732 | 2735 |
| 2733 #endif // V8_HEAP_HEAP_H_ | 2736 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |