v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HeapStringAllocator Class Reference

#include <string-stream.h>

Inheritance diagram for HeapStringAllocator:
Collaboration diagram for HeapStringAllocator:

Public Member Functions

 ~HeapStringAllocator ()
 
char * allocate (unsigned bytes)
 
char * grow (unsigned *bytes)
 
- Public Member Functions inherited from StringAllocator
virtual ~StringAllocator ()
 

Detailed Description

Definition at line 49 of file string-stream.h.

Constructor & Destructor Documentation

~HeapStringAllocator ( )
inline

Definition at line 51 of file string-stream.h.

References v8::internal::DeleteArray().

Member Function Documentation

char * allocate ( unsigned  bytes)
virtual

Implements StringAllocator.

Definition at line 38 of file string-stream.cc.

char * grow ( unsigned *  bytes)
virtual

Implements StringAllocator.

Definition at line 563 of file string-stream.cc.

References v8::internal::DeleteArray(), OS::MemCopy(), and v8::internal::NULL.


The documentation for this class was generated from the following files: