| 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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 return linear_allocation_scope_depth_ != 0; | 584 return linear_allocation_scope_depth_ != 0; |
| 585 } | 585 } |
| 586 | 586 |
| 587 Address* NewSpaceAllocationTopAddress() { | 587 Address* NewSpaceAllocationTopAddress() { |
| 588 return new_space_.allocation_top_address(); | 588 return new_space_.allocation_top_address(); |
| 589 } | 589 } |
| 590 Address* NewSpaceAllocationLimitAddress() { | 590 Address* NewSpaceAllocationLimitAddress() { |
| 591 return new_space_.allocation_limit_address(); | 591 return new_space_.allocation_limit_address(); |
| 592 } | 592 } |
| 593 | 593 |
| 594 Address* OldPointerSpaceAllocationTopAddress() { |
| 595 return old_pointer_space_->allocation_top_address(); |
| 596 } |
| 597 Address* OldPointerSpaceAllocationLimitAddress() { |
| 598 return old_pointer_space_->allocation_limit_address(); |
| 599 } |
| 600 |
| 594 // Uncommit unused semi space. | 601 // Uncommit unused semi space. |
| 595 bool UncommitFromSpace() { return new_space_.UncommitFromSpace(); } | 602 bool UncommitFromSpace() { return new_space_.UncommitFromSpace(); } |
| 596 | 603 |
| 597 // Allocates and initializes a new JavaScript object based on a | 604 // Allocates and initializes a new JavaScript object based on a |
| 598 // constructor. | 605 // constructor. |
| 599 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 606 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 600 // failed. | 607 // failed. |
| 601 // Please note this does not perform a garbage collection. | 608 // Please note this does not perform a garbage collection. |
| 602 MUST_USE_RESULT MaybeObject* AllocateJSObject( | 609 MUST_USE_RESULT MaybeObject* AllocateJSObject( |
| 603 JSFunction* constructor, PretenureFlag pretenure = NOT_TENURED); | 610 JSFunction* constructor, PretenureFlag pretenure = NOT_TENURED); |
| (...skipping 2351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2955 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2962 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
| 2956 | 2963 |
| 2957 private: | 2964 private: |
| 2958 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2965 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2959 }; | 2966 }; |
| 2960 #endif // DEBUG | 2967 #endif // DEBUG |
| 2961 | 2968 |
| 2962 } } // namespace v8::internal | 2969 } } // namespace v8::internal |
| 2963 | 2970 |
| 2964 #endif // V8_HEAP_H_ | 2971 #endif // V8_HEAP_H_ |
| OLD | NEW |