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

#include <string-stream.h>

Inheritance diagram for NoAllocationStringAllocator:
Collaboration diagram for NoAllocationStringAllocator:

Public Member Functions

 NoAllocationStringAllocator (char *memory, unsigned size)
 
char * allocate (unsigned bytes)
 
char * grow (unsigned *bytes)
 
- Public Member Functions inherited from StringAllocator
virtual ~StringAllocator ()
 

Detailed Description

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

Constructor & Destructor Documentation

NoAllocationStringAllocator ( char *  memory,
unsigned  size 
)

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

References v8::internal::memory().

Member Function Documentation

char* allocate ( unsigned  bytes)
inlinevirtual

Implements StringAllocator.

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

char * grow ( unsigned *  bytes)
virtual

Implements StringAllocator.

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

References ASSERT.


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