Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: src/heap.h

Issue 12314155: Allow direct allocation in old pointer space. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698