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

Unified Diff: src/heap.h

Issue 12427: Merge regexp2000 back into bleeding_edge (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: src/heap.h
===================================================================
--- src/heap.h (revision 830)
+++ src/heap.h (working copy)
@@ -391,7 +391,13 @@
// Allocate a byte array of the specified length
// Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
// failed.
- // Please not this does not perform a garbage collection.
+ // Please note this does not perform a garbage collection.
+ static Object* AllocateByteArray(int length, PretenureFlag pretenure);
+
+ // Allocate a non-tenured byte array of the specified length
+ // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
+ // failed.
+ // Please note this does not perform a garbage collection.
static Object* AllocateByteArray(int length);
// Allocates a fixed array initialized with undefined values
@@ -549,11 +555,14 @@
// Makes a new native code object
// Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
- // failed.
+ // failed. On success, the pointer to the Code object is stored in the
+ // self_reference. This allows generated code to reference its own Code
+ // object by containing this pointer.
// Please note this function does not perform a garbage collection.
static Object* CreateCode(const CodeDesc& desc,
ScopeInfo<>* sinfo,
- Code::Flags flags);
+ Code::Flags flags,
+ Code** self_reference = NULL);
static Object* CopyCode(Code* code);
// Finds the symbol for string in the symbol table.
@@ -582,6 +591,9 @@
static void GarbageCollectionPrologue();
static void GarbageCollectionEpilogue();
+ // Code that should be executed after the garbage collection proper.
+ static void PostGarbageCollectionProcessing();
+
// Performs garbage collection operation.
// Returns whether required_space bytes are available after the collection.
static bool CollectGarbage(int required_space, AllocationSpace space);

Powered by Google App Engine
This is Rietveld 408576698