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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 #define INTERNALIZED_STRING_LIST(V) \ | 211 #define INTERNALIZED_STRING_LIST(V) \ |
212 V(Object_string, "Object") \ | 212 V(Object_string, "Object") \ |
213 V(proto_string, "__proto__") \ | 213 V(proto_string, "__proto__") \ |
214 V(arguments_string, "arguments") \ | 214 V(arguments_string, "arguments") \ |
215 V(Arguments_string, "Arguments") \ | 215 V(Arguments_string, "Arguments") \ |
216 V(caller_string, "caller") \ | 216 V(caller_string, "caller") \ |
217 V(boolean_string, "boolean") \ | 217 V(boolean_string, "boolean") \ |
218 V(Boolean_string, "Boolean") \ | 218 V(Boolean_string, "Boolean") \ |
219 V(callee_string, "callee") \ | 219 V(callee_string, "callee") \ |
220 V(constructor_string, "constructor") \ | 220 V(constructor_string, "constructor") \ |
| 221 V(default_string, "default") \ |
221 V(dot_result_string, ".result") \ | 222 V(dot_result_string, ".result") \ |
222 V(eval_string, "eval") \ | 223 V(eval_string, "eval") \ |
223 V(float32x4_string, "float32x4") \ | 224 V(float32x4_string, "float32x4") \ |
224 V(Float32x4_string, "Float32x4") \ | 225 V(Float32x4_string, "Float32x4") \ |
225 V(int32x4_string, "int32x4") \ | 226 V(int32x4_string, "int32x4") \ |
226 V(Int32x4_string, "Int32x4") \ | 227 V(Int32x4_string, "Int32x4") \ |
227 V(uint32x4_string, "uint32x4") \ | 228 V(uint32x4_string, "uint32x4") \ |
228 V(Uint32x4_string, "Uint32x4") \ | 229 V(Uint32x4_string, "Uint32x4") \ |
229 V(bool32x4_string, "bool32x4") \ | 230 V(bool32x4_string, "bool32x4") \ |
230 V(Bool32x4_string, "Bool32x4") \ | 231 V(Bool32x4_string, "Bool32x4") \ |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 V(Symbol_string, "Symbol") \ | 272 V(Symbol_string, "Symbol") \ |
272 V(Map_string, "Map") \ | 273 V(Map_string, "Map") \ |
273 V(Set_string, "Set") \ | 274 V(Set_string, "Set") \ |
274 V(WeakMap_string, "WeakMap") \ | 275 V(WeakMap_string, "WeakMap") \ |
275 V(WeakSet_string, "WeakSet") \ | 276 V(WeakSet_string, "WeakSet") \ |
276 V(for_string, "for") \ | 277 V(for_string, "for") \ |
277 V(for_api_string, "for_api") \ | 278 V(for_api_string, "for_api") \ |
278 V(Date_string, "Date") \ | 279 V(Date_string, "Date") \ |
279 V(char_at_string, "CharAt") \ | 280 V(char_at_string, "CharAt") \ |
280 V(undefined_string, "undefined") \ | 281 V(undefined_string, "undefined") \ |
281 V(value_of_string, "valueOf") \ | 282 V(valueOf_string, "valueOf") \ |
282 V(stack_string, "stack") \ | 283 V(stack_string, "stack") \ |
| 284 V(toString_string, "toString") \ |
283 V(toJSON_string, "toJSON") \ | 285 V(toJSON_string, "toJSON") \ |
284 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ | 286 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ |
285 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ | 287 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ |
286 V(illegal_access_string, "illegal access") \ | 288 V(illegal_access_string, "illegal access") \ |
287 V(cell_value_string, "%cell_value") \ | 289 V(cell_value_string, "%cell_value") \ |
288 V(illegal_argument_string, "illegal argument") \ | 290 V(illegal_argument_string, "illegal argument") \ |
289 V(closure_string, "(closure)") \ | 291 V(closure_string, "(closure)") \ |
290 V(dot_string, ".") \ | 292 V(dot_string, ".") \ |
291 V(compare_ic_string, "==") \ | 293 V(compare_ic_string, "==") \ |
292 V(strict_compare_ic_string, "===") \ | 294 V(strict_compare_ic_string, "===") \ |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 V(string_iterator_next_index_symbol) \ | 348 V(string_iterator_next_index_symbol) \ |
347 V(uninitialized_symbol) | 349 V(uninitialized_symbol) |
348 | 350 |
349 | 351 |
350 #define PUBLIC_SYMBOL_LIST(V) \ | 352 #define PUBLIC_SYMBOL_LIST(V) \ |
351 V(has_instance_symbol, symbolHasInstance, Symbol.hasInstance) \ | 353 V(has_instance_symbol, symbolHasInstance, Symbol.hasInstance) \ |
352 V(is_concat_spreadable_symbol, symbolIsConcatSpreadable, \ | 354 V(is_concat_spreadable_symbol, symbolIsConcatSpreadable, \ |
353 Symbol.isConcatSpreadable) \ | 355 Symbol.isConcatSpreadable) \ |
354 V(is_regexp_symbol, symbolIsRegExp, Symbol.isRegExp) \ | 356 V(is_regexp_symbol, symbolIsRegExp, Symbol.isRegExp) \ |
355 V(iterator_symbol, symbolIterator, Symbol.iterator) \ | 357 V(iterator_symbol, symbolIterator, Symbol.iterator) \ |
| 358 V(to_primitive_symbol, symbolToPrimitive, Symbol.toPrimitive) \ |
356 V(to_string_tag_symbol, symbolToStringTag, Symbol.toStringTag) \ | 359 V(to_string_tag_symbol, symbolToStringTag, Symbol.toStringTag) \ |
357 V(unscopables_symbol, symbolUnscopables, Symbol.unscopables) | 360 V(unscopables_symbol, symbolUnscopables, Symbol.unscopables) |
358 | 361 |
359 // Heap roots that are known to be immortal immovable, for which we can safely | 362 // Heap roots that are known to be immortal immovable, for which we can safely |
360 // skip write barriers. This list is not complete and has omissions. | 363 // skip write barriers. This list is not complete and has omissions. |
361 #define IMMORTAL_IMMOVABLE_ROOT_LIST(V) \ | 364 #define IMMORTAL_IMMOVABLE_ROOT_LIST(V) \ |
362 V(ByteArrayMap) \ | 365 V(ByteArrayMap) \ |
363 V(BytecodeArrayMap) \ | 366 V(BytecodeArrayMap) \ |
364 V(FreeSpaceMap) \ | 367 V(FreeSpaceMap) \ |
365 V(OnePointerFillerMap) \ | 368 V(OnePointerFillerMap) \ |
(...skipping 2430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2796 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2799 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2797 | 2800 |
2798 private: | 2801 private: |
2799 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2802 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2800 }; | 2803 }; |
2801 #endif // DEBUG | 2804 #endif // DEBUG |
2802 } | 2805 } |
2803 } // namespace v8::internal | 2806 } // namespace v8::internal |
2804 | 2807 |
2805 #endif // V8_HEAP_HEAP_H_ | 2808 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |