| 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 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 V(undefined_map) \ | 249 V(undefined_map) \ |
| 250 V(the_hole_map) \ | 250 V(the_hole_map) \ |
| 251 V(null_map) \ | 251 V(null_map) \ |
| 252 V(boolean_map) \ | 252 V(boolean_map) \ |
| 253 V(uninitialized_map) \ | 253 V(uninitialized_map) \ |
| 254 V(message_object_map) \ | 254 V(message_object_map) \ |
| 255 V(foreign_map) \ | 255 V(foreign_map) \ |
| 256 V(neander_map) | 256 V(neander_map) |
| 257 | 257 |
| 258 #define INTERNALIZED_STRING_LIST(V) \ | 258 #define INTERNALIZED_STRING_LIST(V) \ |
| 259 V(Array_string, "Array") \ | |
| 260 V(Object_string, "Object") \ | 259 V(Object_string, "Object") \ |
| 261 V(proto_string, "__proto__") \ | 260 V(proto_string, "__proto__") \ |
| 262 V(arguments_string, "arguments") \ | 261 V(arguments_string, "arguments") \ |
| 263 V(Arguments_string, "Arguments") \ | 262 V(Arguments_string, "Arguments") \ |
| 264 V(call_string, "call") \ | |
| 265 V(apply_string, "apply") \ | |
| 266 V(caller_string, "caller") \ | 263 V(caller_string, "caller") \ |
| 267 V(boolean_string, "boolean") \ | 264 V(boolean_string, "boolean") \ |
| 268 V(Boolean_string, "Boolean") \ | 265 V(Boolean_string, "Boolean") \ |
| 269 V(callee_string, "callee") \ | 266 V(callee_string, "callee") \ |
| 270 V(constructor_string, "constructor") \ | 267 V(constructor_string, "constructor") \ |
| 271 V(dot_result_string, ".result") \ | 268 V(dot_result_string, ".result") \ |
| 272 V(dot_for_string, ".for.") \ | 269 V(dot_for_string, ".for.") \ |
| 273 V(eval_string, "eval") \ | 270 V(eval_string, "eval") \ |
| 274 V(empty_string, "") \ | 271 V(empty_string, "") \ |
| 275 V(function_string, "function") \ | 272 V(function_string, "function") \ |
| 273 V(Function_string, "Function") \ |
| 276 V(length_string, "length") \ | 274 V(length_string, "length") \ |
| 277 V(name_string, "name") \ | 275 V(name_string, "name") \ |
| 278 V(null_string, "null") \ | 276 V(null_string, "null") \ |
| 279 V(number_string, "number") \ | 277 V(number_string, "number") \ |
| 280 V(Number_string, "Number") \ | 278 V(Number_string, "Number") \ |
| 281 V(nan_string, "NaN") \ | 279 V(nan_string, "NaN") \ |
| 282 V(RegExp_string, "RegExp") \ | |
| 283 V(source_string, "source") \ | 280 V(source_string, "source") \ |
| 284 V(source_url_string, "source_url") \ | 281 V(source_url_string, "source_url") \ |
| 285 V(source_mapping_url_string, "source_mapping_url") \ | 282 V(source_mapping_url_string, "source_mapping_url") \ |
| 286 V(global_string, "global") \ | 283 V(global_string, "global") \ |
| 287 V(ignore_case_string, "ignoreCase") \ | 284 V(ignore_case_string, "ignoreCase") \ |
| 288 V(multiline_string, "multiline") \ | 285 V(multiline_string, "multiline") \ |
| 289 V(input_string, "input") \ | 286 V(input_string, "input") \ |
| 290 V(index_string, "index") \ | 287 V(index_string, "index") \ |
| 291 V(last_index_string, "lastIndex") \ | 288 V(last_index_string, "lastIndex") \ |
| 292 V(object_string, "object") \ | 289 V(object_string, "object") \ |
| 293 V(literals_string, "literals") \ | |
| 294 V(prototype_string, "prototype") \ | 290 V(prototype_string, "prototype") \ |
| 295 V(string_string, "string") \ | 291 V(string_string, "string") \ |
| 296 V(String_string, "String") \ | 292 V(String_string, "String") \ |
| 297 V(symbol_string, "symbol") \ | 293 V(symbol_string, "symbol") \ |
| 298 V(Symbol_string, "Symbol") \ | 294 V(Symbol_string, "Symbol") \ |
| 299 V(for_string, "for") \ | 295 V(for_string, "for") \ |
| 300 V(for_api_string, "for_api") \ | 296 V(for_api_string, "for_api") \ |
| 301 V(for_intern_string, "for_intern") \ | |
| 302 V(private_api_string, "private_api") \ | 297 V(private_api_string, "private_api") \ |
| 303 V(private_intern_string, "private_intern") \ | 298 V(private_intern_string, "private_intern") \ |
| 304 V(Date_string, "Date") \ | 299 V(Date_string, "Date") \ |
| 305 V(to_string_string, "toString") \ | |
| 306 V(char_at_string, "CharAt") \ | 300 V(char_at_string, "CharAt") \ |
| 307 V(undefined_string, "undefined") \ | 301 V(undefined_string, "undefined") \ |
| 308 V(value_of_string, "valueOf") \ | 302 V(value_of_string, "valueOf") \ |
| 309 V(stack_string, "stack") \ | 303 V(stack_string, "stack") \ |
| 310 V(toJSON_string, "toJSON") \ | 304 V(toJSON_string, "toJSON") \ |
| 311 V(InitializeVarGlobal_string, "InitializeVarGlobal") \ | |
| 312 V(InitializeConstGlobal_string, "InitializeConstGlobal") \ | |
| 313 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ | 305 V(KeyedLoadMonomorphic_string, "KeyedLoadMonomorphic") \ |
| 314 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ | 306 V(KeyedStoreMonomorphic_string, "KeyedStoreMonomorphic") \ |
| 315 V(stack_overflow_string, "kStackOverflowBoilerplate") \ | 307 V(stack_overflow_string, "kStackOverflowBoilerplate") \ |
| 316 V(illegal_access_string, "illegal access") \ | 308 V(illegal_access_string, "illegal access") \ |
| 317 V(get_string, "get") \ | |
| 318 V(set_string, "set") \ | |
| 319 V(map_field_string, "%map") \ | |
| 320 V(elements_field_string, "%elements") \ | |
| 321 V(length_field_string, "%length") \ | |
| 322 V(cell_value_string, "%cell_value") \ | 309 V(cell_value_string, "%cell_value") \ |
| 323 V(function_class_string, "Function") \ | |
| 324 V(illegal_argument_string, "illegal argument") \ | 310 V(illegal_argument_string, "illegal argument") \ |
| 325 V(space_string, " ") \ | |
| 326 V(exec_string, "exec") \ | |
| 327 V(zero_string, "0") \ | |
| 328 V(global_eval_string, "GlobalEval") \ | |
| 329 V(identity_hash_string, "v8::IdentityHash") \ | 311 V(identity_hash_string, "v8::IdentityHash") \ |
| 330 V(closure_string, "(closure)") \ | 312 V(closure_string, "(closure)") \ |
| 331 V(dot_string, ".") \ | 313 V(dot_string, ".") \ |
| 332 V(compare_ic_string, "==") \ | 314 V(compare_ic_string, "==") \ |
| 333 V(strict_compare_ic_string, "===") \ | 315 V(strict_compare_ic_string, "===") \ |
| 334 V(infinity_string, "Infinity") \ | 316 V(infinity_string, "Infinity") \ |
| 335 V(minus_infinity_string, "-Infinity") \ | 317 V(minus_infinity_string, "-Infinity") \ |
| 336 V(query_colon_string, "(?:)") \ | 318 V(query_colon_string, "(?:)") \ |
| 337 V(Generator_string, "Generator") \ | 319 V(Generator_string, "Generator") \ |
| 338 V(throw_string, "throw") \ | 320 V(throw_string, "throw") \ |
| 339 V(done_string, "done") \ | 321 V(done_string, "done") \ |
| 340 V(value_string, "value") \ | 322 V(value_string, "value") \ |
| 341 V(next_string, "next") \ | 323 V(next_string, "next") \ |
| 342 V(byte_length_string, "byteLength") \ | 324 V(byte_length_string, "byteLength") \ |
| 343 V(byte_offset_string, "byteOffset") \ | 325 V(byte_offset_string, "byteOffset") \ |
| 344 V(buffer_string, "buffer") \ | |
| 345 V(intl_initialized_marker_string, "v8::intl_initialized_marker") \ | 326 V(intl_initialized_marker_string, "v8::intl_initialized_marker") \ |
| 346 V(intl_impl_object_string, "v8::intl_object") | 327 V(intl_impl_object_string, "v8::intl_object") |
| 347 | 328 |
| 348 // Forward declarations. | 329 // Forward declarations. |
| 349 class HeapStats; | 330 class HeapStats; |
| 350 class Isolate; | 331 class Isolate; |
| 351 class WeakObjectRetainer; | 332 class WeakObjectRetainer; |
| 352 | 333 |
| 353 | 334 |
| 354 typedef String* (*ExternalStringTableUpdaterCallback)(Heap* heap, | 335 typedef String* (*ExternalStringTableUpdaterCallback)(Heap* heap, |
| (...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2538 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2519 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2539 | 2520 |
| 2540 private: | 2521 private: |
| 2541 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2522 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2542 }; | 2523 }; |
| 2543 #endif // DEBUG | 2524 #endif // DEBUG |
| 2544 } | 2525 } |
| 2545 } // namespace v8::internal | 2526 } // namespace v8::internal |
| 2546 | 2527 |
| 2547 #endif // V8_HEAP_HEAP_H_ | 2528 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |