OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 // Allocates a heap object based on the map. | 516 // Allocates a heap object based on the map. |
517 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 517 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
518 // failed. | 518 // failed. |
519 // Please note this function does not perform a garbage collection. | 519 // Please note this function does not perform a garbage collection. |
520 MUST_USE_RESULT MaybeObject* Allocate(Map* map, AllocationSpace space); | 520 MUST_USE_RESULT MaybeObject* Allocate(Map* map, AllocationSpace space); |
521 | 521 |
522 // Allocates a JS Map in the heap. | 522 // Allocates a JS Map in the heap. |
523 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 523 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
524 // failed. | 524 // failed. |
525 // Please note this function does not perform a garbage collection. | 525 // Please note this function does not perform a garbage collection. |
526 MUST_USE_RESULT MaybeObject* AllocateMap(InstanceType instance_type, | 526 MUST_USE_RESULT MaybeObject* AllocateMap( |
527 int instance_size); | 527 InstanceType instance_type, |
| 528 int instance_size, |
| 529 ElementsKind elements_kind = FAST_ELEMENTS); |
528 | 530 |
529 // Allocates a partial map for bootstrapping. | 531 // Allocates a partial map for bootstrapping. |
530 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, | 532 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, |
531 int instance_size); | 533 int instance_size); |
532 | 534 |
533 // Allocate a map for the specified function | 535 // Allocate a map for the specified function |
534 MUST_USE_RESULT MaybeObject* AllocateInitialMap(JSFunction* fun); | 536 MUST_USE_RESULT MaybeObject* AllocateInitialMap(JSFunction* fun); |
535 | 537 |
536 // Allocates an empty code cache. | 538 // Allocates an empty code cache. |
537 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); | 539 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); |
(...skipping 1941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2479 | 2481 |
2480 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2482 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2481 }; | 2483 }; |
2482 #endif // DEBUG || LIVE_OBJECT_LIST | 2484 #endif // DEBUG || LIVE_OBJECT_LIST |
2483 | 2485 |
2484 } } // namespace v8::internal | 2486 } } // namespace v8::internal |
2485 | 2487 |
2486 #undef HEAP | 2488 #undef HEAP |
2487 | 2489 |
2488 #endif // V8_HEAP_H_ | 2490 #endif // V8_HEAP_H_ |
OLD | NEW |