| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ | 201 V(Smi, construct_stub_deopt_pc_offset, ConstructStubDeoptPCOffset) \ |
| 202 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ | 202 V(Smi, getter_stub_deopt_pc_offset, GetterStubDeoptPCOffset) \ |
| 203 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) | 203 V(Smi, setter_stub_deopt_pc_offset, SetterStubDeoptPCOffset) |
| 204 | 204 |
| 205 | 205 |
| 206 #define ROOT_LIST(V) \ | 206 #define ROOT_LIST(V) \ |
| 207 STRONG_ROOT_LIST(V) \ | 207 STRONG_ROOT_LIST(V) \ |
| 208 SMI_ROOT_LIST(V) \ | 208 SMI_ROOT_LIST(V) \ |
| 209 V(StringTable, string_table, StringTable) | 209 V(StringTable, string_table, StringTable) |
| 210 | 210 |
| 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(configurable_string, "configurable") \ |
| 221 V(default_string, "default") \ | 221 V(constructor_string, "constructor") \ |
| 222 V(dot_result_string, ".result") \ | 222 V(default_string, "default") \ |
| 223 V(eval_string, "eval") \ | 223 V(dot_result_string, ".result") \ |
| 224 V(float32x4_string, "float32x4") \ | 224 V(enumerable_string, "enumerable") \ |
| 225 V(Float32x4_string, "Float32x4") \ | 225 V(eval_string, "eval") \ |
| 226 V(int32x4_string, "int32x4") \ | 226 V(float32x4_string, "float32x4") \ |
| 227 V(Int32x4_string, "Int32x4") \ | 227 V(Float32x4_string, "Float32x4") \ |
| 228 V(uint32x4_string, "uint32x4") \ | 228 V(int32x4_string, "int32x4") \ |
| 229 V(Uint32x4_string, "Uint32x4") \ | 229 V(Int32x4_string, "Int32x4") \ |
| 230 V(bool32x4_string, "bool32x4") \ | 230 V(uint32x4_string, "uint32x4") \ |
| 231 V(Bool32x4_string, "Bool32x4") \ | 231 V(Uint32x4_string, "Uint32x4") \ |
| 232 V(int16x8_string, "int16x8") \ | 232 V(bool32x4_string, "bool32x4") \ |
| 233 V(Int16x8_string, "Int16x8") \ | 233 V(Bool32x4_string, "Bool32x4") \ |
| 234 V(uint16x8_string, "uint16x8") \ | 234 V(int16x8_string, "int16x8") \ |
| 235 V(Uint16x8_string, "Uint16x8") \ | 235 V(Int16x8_string, "Int16x8") \ |
| 236 V(bool16x8_string, "bool16x8") \ | 236 V(uint16x8_string, "uint16x8") \ |
| 237 V(Bool16x8_string, "Bool16x8") \ | 237 V(Uint16x8_string, "Uint16x8") \ |
| 238 V(int8x16_string, "int8x16") \ | 238 V(bool16x8_string, "bool16x8") \ |
| 239 V(Int8x16_string, "Int8x16") \ | 239 V(Bool16x8_string, "Bool16x8") \ |
| 240 V(uint8x16_string, "uint8x16") \ | 240 V(int8x16_string, "int8x16") \ |
| 241 V(Uint8x16_string, "Uint8x16") \ | 241 V(Int8x16_string, "Int8x16") \ |
| 242 V(bool8x16_string, "bool8x16") \ | 242 V(uint8x16_string, "uint8x16") \ |
| 243 V(Bool8x16_string, "Bool8x16") \ | 243 V(Uint8x16_string, "Uint8x16") \ |
| 244 V(function_string, "function") \ | 244 V(bool8x16_string, "bool8x16") \ |
| 245 V(Function_string, "Function") \ | 245 V(Bool8x16_string, "Bool8x16") \ |
| 246 V(length_string, "length") \ | 246 V(function_string, "function") \ |
| 247 V(name_string, "name") \ | 247 V(Function_string, "Function") \ |
| 248 V(null_string, "null") \ | 248 V(get_string, "get") \ |
| 249 V(number_string, "number") \ | 249 V(length_string, "length") \ |
| 250 V(Number_string, "Number") \ | 250 V(name_string, "name") \ |
| 251 V(nan_string, "NaN") \ | 251 V(null_string, "null") \ |
| 252 V(source_string, "source") \ | 252 V(number_string, "number") \ |
| 253 V(source_url_string, "source_url") \ | 253 V(Number_string, "Number") \ |
| 254 V(source_mapping_url_string, "source_mapping_url") \ | 254 V(nan_string, "NaN") \ |
| 255 V(this_string, "this") \ | 255 V(set_string, "set") \ |
| 256 V(global_string, "global") \ | 256 V(source_string, "source") \ |
| 257 V(ignore_case_string, "ignoreCase") \ | 257 V(source_url_string, "source_url") \ |
| 258 V(multiline_string, "multiline") \ | 258 V(source_mapping_url_string, "source_mapping_url") \ |
| 259 V(sticky_string, "sticky") \ | 259 V(this_string, "this") \ |
| 260 V(unicode_string, "unicode") \ | 260 V(writable_string, "writable") \ |
| 261 V(harmony_tolength_string, "harmony_tolength") \ | 261 V(global_string, "global") \ |
| 262 V(input_string, "input") \ | 262 V(ignore_case_string, "ignoreCase") \ |
| 263 V(index_string, "index") \ | 263 V(multiline_string, "multiline") \ |
| 264 V(last_index_string, "lastIndex") \ | 264 V(sticky_string, "sticky") \ |
| 265 V(object_string, "object") \ | 265 V(unicode_string, "unicode") \ |
| 266 V(prototype_string, "prototype") \ | 266 V(harmony_tolength_string, "harmony_tolength") \ |
| 267 V(string_string, "string") \ | 267 V(input_string, "input") \ |
| 268 V(String_string, "String") \ | 268 V(index_string, "index") \ |
| 269 V(symbol_string, "symbol") \ | 269 V(last_index_string, "lastIndex") \ |
| 270 V(Symbol_string, "Symbol") \ | 270 V(object_string, "object") \ |
| 271 V(Map_string, "Map") \ | 271 V(prototype_string, "prototype") \ |
| 272 V(Set_string, "Set") \ | 272 V(string_string, "string") \ |
| 273 V(WeakMap_string, "WeakMap") \ | 273 V(String_string, "String") \ |
| 274 V(WeakSet_string, "WeakSet") \ | 274 V(symbol_string, "symbol") \ |
| 275 V(for_string, "for") \ | 275 V(Symbol_string, "Symbol") \ |
| 276 V(for_api_string, "for_api") \ | 276 V(Map_string, "Map") \ |
| 277 V(Date_string, "Date") \ | 277 V(Set_string, "Set") \ |
| 278 V(char_at_string, "CharAt") \ | 278 V(WeakMap_string, "WeakMap") \ |
| 279 V(undefined_string, "undefined") \ | 279 V(WeakSet_string, "WeakSet") \ |
| 280 V(valueOf_string, "valueOf") \ | 280 V(for_string, "for") \ |
| 281 V(stack_string, "stack") \ | 281 V(for_api_string, "for_api") \ |
| 282 V(toString_string, "toString") \ | 282 V(Date_string, "Date") \ |
| 283 V(toJSON_string, "toJSON") \ | 283 V(char_at_string, "CharAt") \ |
| 284 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ | 284 V(undefined_string, "undefined") \ |
| 285 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ | 285 V(valueOf_string, "valueOf") \ |
| 286 V(illegal_access_string, "illegal access") \ | 286 V(stack_string, "stack") \ |
| 287 V(cell_value_string, "%cell_value") \ | 287 V(toString_string, "toString") \ |
| 288 V(illegal_argument_string, "illegal argument") \ | 288 V(toJSON_string, "toJSON") \ |
| 289 V(closure_string, "(closure)") \ | 289 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ |
| 290 V(dot_string, ".") \ | 290 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ |
| 291 V(compare_ic_string, "==") \ | 291 V(illegal_access_string, "illegal access") \ |
| 292 V(strict_compare_ic_string, "===") \ | 292 V(cell_value_string, "%cell_value") \ |
| 293 V(infinity_string, "Infinity") \ | 293 V(illegal_argument_string, "illegal argument") \ |
| 294 V(minus_infinity_string, "-Infinity") \ | 294 V(closure_string, "(closure)") \ |
| 295 V(query_colon_string, "(?:)") \ | 295 V(dot_string, ".") \ |
| 296 V(Generator_string, "Generator") \ | 296 V(compare_ic_string, "==") \ |
| 297 V(throw_string, "throw") \ | 297 V(strict_compare_ic_string, "===") \ |
| 298 V(done_string, "done") \ | 298 V(infinity_string, "Infinity") \ |
| 299 V(value_string, "value") \ | 299 V(minus_infinity_string, "-Infinity") \ |
| 300 V(next_string, "next") \ | 300 V(query_colon_string, "(?:)") \ |
| 301 V(byte_length_string, "byteLength") \ | 301 V(Generator_string, "Generator") \ |
| 302 V(byte_offset_string, "byteOffset") \ | 302 V(throw_string, "throw") \ |
| 303 V(minus_zero_string, "-0") \ | 303 V(done_string, "done") \ |
| 304 V(Array_string, "Array") \ | 304 V(value_string, "value") \ |
| 305 V(Error_string, "Error") \ | 305 V(next_string, "next") \ |
| 306 V(RegExp_string, "RegExp") \ | 306 V(byte_length_string, "byteLength") \ |
| 307 V(byte_offset_string, "byteOffset") \ |
| 308 V(minus_zero_string, "-0") \ |
| 309 V(Array_string, "Array") \ |
| 310 V(Error_string, "Error") \ |
| 311 V(RegExp_string, "RegExp") \ |
| 307 V(anonymous_string, "anonymous") | 312 V(anonymous_string, "anonymous") |
| 308 | 313 |
| 309 #define PRIVATE_SYMBOL_LIST(V) \ | 314 #define PRIVATE_SYMBOL_LIST(V) \ |
| 310 V(array_iteration_kind_symbol) \ | 315 V(array_iteration_kind_symbol) \ |
| 311 V(array_iterator_next_symbol) \ | 316 V(array_iterator_next_symbol) \ |
| 312 V(array_iterator_object_symbol) \ | 317 V(array_iterator_object_symbol) \ |
| 313 V(call_site_function_symbol) \ | 318 V(call_site_function_symbol) \ |
| 314 V(call_site_position_symbol) \ | 319 V(call_site_position_symbol) \ |
| 315 V(call_site_receiver_symbol) \ | 320 V(call_site_receiver_symbol) \ |
| 316 V(call_site_strict_symbol) \ | 321 V(call_site_strict_symbol) \ |
| (...skipping 2393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2710 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2715 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2711 | 2716 |
| 2712 private: | 2717 private: |
| 2713 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2718 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2714 }; | 2719 }; |
| 2715 #endif // DEBUG | 2720 #endif // DEBUG |
| 2716 } // namespace internal | 2721 } // namespace internal |
| 2717 } // namespace v8 | 2722 } // namespace v8 |
| 2718 | 2723 |
| 2719 #endif // V8_HEAP_HEAP_H_ | 2724 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |