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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 // Allocates a heap object based on the map. | 469 // Allocates a heap object based on the map. |
470 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 470 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
471 // failed. | 471 // failed. |
472 // Please note this function does not perform a garbage collection. | 472 // Please note this function does not perform a garbage collection. |
473 MUST_USE_RESULT MaybeObject* Allocate(Map* map, AllocationSpace space); | 473 MUST_USE_RESULT MaybeObject* Allocate(Map* map, AllocationSpace space); |
474 | 474 |
475 // Allocates a JS Map in the heap. | 475 // Allocates a JS Map in the heap. |
476 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 476 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
477 // failed. | 477 // failed. |
478 // Please note this function does not perform a garbage collection. | 478 // Please note this function does not perform a garbage collection. |
479 MUST_USE_RESULT MaybeObject* AllocateMap(InstanceType instance_type, | 479 MUST_USE_RESULT MaybeObject* AllocateMap( |
480 int instance_size); | 480 InstanceType instance_type, |
| 481 int instance_size, |
| 482 ElementsKind elements_kind = FAST_ELEMENTS); |
481 | 483 |
482 // Allocates a partial map for bootstrapping. | 484 // Allocates a partial map for bootstrapping. |
483 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, | 485 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, |
484 int instance_size); | 486 int instance_size); |
485 | 487 |
486 // Allocate a map for the specified function | 488 // Allocate a map for the specified function |
487 MUST_USE_RESULT MaybeObject* AllocateInitialMap(JSFunction* fun); | 489 MUST_USE_RESULT MaybeObject* AllocateInitialMap(JSFunction* fun); |
488 | 490 |
489 // Allocates an empty code cache. | 491 // Allocates an empty code cache. |
490 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); | 492 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); |
(...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2341 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2343 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2342 }; | 2344 }; |
2343 #endif // DEBUG || LIVE_OBJECT_LIST | 2345 #endif // DEBUG || LIVE_OBJECT_LIST |
2344 | 2346 |
2345 | 2347 |
2346 } } // namespace v8::internal | 2348 } } // namespace v8::internal |
2347 | 2349 |
2348 #undef HEAP | 2350 #undef HEAP |
2349 | 2351 |
2350 #endif // V8_HEAP_H_ | 2352 #endif // V8_HEAP_H_ |
OLD | NEW |