OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 return linear_allocation_scope_depth_ != 0; | 583 return linear_allocation_scope_depth_ != 0; |
584 } | 584 } |
585 | 585 |
586 Address* NewSpaceAllocationTopAddress() { | 586 Address* NewSpaceAllocationTopAddress() { |
587 return new_space_.allocation_top_address(); | 587 return new_space_.allocation_top_address(); |
588 } | 588 } |
589 Address* NewSpaceAllocationLimitAddress() { | 589 Address* NewSpaceAllocationLimitAddress() { |
590 return new_space_.allocation_limit_address(); | 590 return new_space_.allocation_limit_address(); |
591 } | 591 } |
592 | 592 |
| 593 Address* OldPointerSpaceAllocationTopAddress() { |
| 594 return old_pointer_space_->allocation_top_address(); |
| 595 } |
| 596 Address* OldPointerSpaceAllocationLimitAddress() { |
| 597 return old_pointer_space_->allocation_limit_address(); |
| 598 } |
| 599 |
593 // Uncommit unused semi space. | 600 // Uncommit unused semi space. |
594 bool UncommitFromSpace() { return new_space_.UncommitFromSpace(); } | 601 bool UncommitFromSpace() { return new_space_.UncommitFromSpace(); } |
595 | 602 |
596 // Allocates and initializes a new JavaScript object based on a | 603 // Allocates and initializes a new JavaScript object based on a |
597 // constructor. | 604 // constructor. |
598 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 605 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
599 // failed. | 606 // failed. |
600 // Please note this does not perform a garbage collection. | 607 // Please note this does not perform a garbage collection. |
601 MUST_USE_RESULT MaybeObject* AllocateJSObject( | 608 MUST_USE_RESULT MaybeObject* AllocateJSObject( |
602 JSFunction* constructor, | 609 JSFunction* constructor, |
(...skipping 2400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3003 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 3010 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
3004 | 3011 |
3005 private: | 3012 private: |
3006 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3013 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3007 }; | 3014 }; |
3008 #endif // DEBUG | 3015 #endif // DEBUG |
3009 | 3016 |
3010 } } // namespace v8::internal | 3017 } } // namespace v8::internal |
3011 | 3018 |
3012 #endif // V8_HEAP_H_ | 3019 #endif // V8_HEAP_H_ |
OLD | NEW |