OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 V(Map, long_external_ascii_string_map, LongExternalAsciiStringMap) \ | 87 V(Map, long_external_ascii_string_map, LongExternalAsciiStringMap) \ |
88 V(Map, undetectable_short_string_map, UndetectableShortStringMap) \ | 88 V(Map, undetectable_short_string_map, UndetectableShortStringMap) \ |
89 V(Map, undetectable_medium_string_map, UndetectableMediumStringMap) \ | 89 V(Map, undetectable_medium_string_map, UndetectableMediumStringMap) \ |
90 V(Map, undetectable_long_string_map, UndetectableLongStringMap) \ | 90 V(Map, undetectable_long_string_map, UndetectableLongStringMap) \ |
91 V(Map, undetectable_short_ascii_string_map, UndetectableShortAsciiStringMap) \ | 91 V(Map, undetectable_short_ascii_string_map, UndetectableShortAsciiStringMap) \ |
92 V(Map, \ | 92 V(Map, \ |
93 undetectable_medium_ascii_string_map, \ | 93 undetectable_medium_ascii_string_map, \ |
94 UndetectableMediumAsciiStringMap) \ | 94 UndetectableMediumAsciiStringMap) \ |
95 V(Map, undetectable_long_ascii_string_map, UndetectableLongAsciiStringMap) \ | 95 V(Map, undetectable_long_ascii_string_map, UndetectableLongAsciiStringMap) \ |
96 V(Map, byte_array_map, ByteArrayMap) \ | 96 V(Map, byte_array_map, ByteArrayMap) \ |
| 97 V(Map, pixel_array_map, PixelArrayMap) \ |
97 V(Map, fixed_array_map, FixedArrayMap) \ | 98 V(Map, fixed_array_map, FixedArrayMap) \ |
98 V(Map, hash_table_map, HashTableMap) \ | 99 V(Map, hash_table_map, HashTableMap) \ |
99 V(Map, context_map, ContextMap) \ | 100 V(Map, context_map, ContextMap) \ |
100 V(Map, catch_context_map, CatchContextMap) \ | 101 V(Map, catch_context_map, CatchContextMap) \ |
101 V(Map, global_context_map, GlobalContextMap) \ | 102 V(Map, global_context_map, GlobalContextMap) \ |
102 V(Map, code_map, CodeMap) \ | 103 V(Map, code_map, CodeMap) \ |
103 V(Map, oddball_map, OddballMap) \ | 104 V(Map, oddball_map, OddballMap) \ |
104 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ | 105 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ |
105 V(Map, boilerplate_function_map, BoilerplateFunctionMap) \ | 106 V(Map, boilerplate_function_map, BoilerplateFunctionMap) \ |
106 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ | 107 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 // failed. | 412 // failed. |
412 // Please note this does not perform a garbage collection. | 413 // Please note this does not perform a garbage collection. |
413 static Object* AllocateByteArray(int length, PretenureFlag pretenure); | 414 static Object* AllocateByteArray(int length, PretenureFlag pretenure); |
414 | 415 |
415 // Allocate a non-tenured byte array of the specified length | 416 // Allocate a non-tenured byte array of the specified length |
416 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 417 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
417 // failed. | 418 // failed. |
418 // Please note this does not perform a garbage collection. | 419 // Please note this does not perform a garbage collection. |
419 static Object* AllocateByteArray(int length); | 420 static Object* AllocateByteArray(int length); |
420 | 421 |
| 422 // Allocate a pixel array of the specified length |
| 423 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 424 // failed. |
| 425 // Please note this does not perform a garbage collection. |
| 426 static Object* AllocatePixelArray(int length, |
| 427 uint8_t* external_pointer, |
| 428 PretenureFlag pretenure); |
| 429 |
421 // Allocate a tenured JS global property cell. | 430 // Allocate a tenured JS global property cell. |
422 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 431 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
423 // failed. | 432 // failed. |
424 // Please note this does not perform a garbage collection. | 433 // Please note this does not perform a garbage collection. |
425 static Object* AllocateJSGlobalPropertyCell(Object* value); | 434 static Object* AllocateJSGlobalPropertyCell(Object* value); |
426 | 435 |
427 // Allocates a fixed array initialized with undefined values | 436 // Allocates a fixed array initialized with undefined values |
428 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 437 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
429 // failed. | 438 // failed. |
430 // Please note this does not perform a garbage collection. | 439 // Please note this does not perform a garbage collection. |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1453 int marked_count_; | 1462 int marked_count_; |
1454 | 1463 |
1455 // The count from the end of the previous full GC. Will be zero if there | 1464 // The count from the end of the previous full GC. Will be zero if there |
1456 // was no previous full GC. | 1465 // was no previous full GC. |
1457 int previous_marked_count_; | 1466 int previous_marked_count_; |
1458 }; | 1467 }; |
1459 | 1468 |
1460 } } // namespace v8::internal | 1469 } } // namespace v8::internal |
1461 | 1470 |
1462 #endif // V8_HEAP_H_ | 1471 #endif // V8_HEAP_H_ |
OLD | NEW |