28 #ifndef V8_STRING_STREAM_H_
29 #define V8_STRING_STREAM_H_
39 virtual char*
allocate(
unsigned bytes) = 0;
44 virtual char*
grow(
unsigned* bytes) = 0;
53 char*
grow(
unsigned* bytes);
65 char*
allocate(
unsigned bytes) {
return space_; }
66 char*
grow(
unsigned* bytes);
78 explicit FmtElm(
double value) : type_(DOUBLE) {
79 data_.u_double_ = value;
81 FmtElm(
const char* value) : type_(C_STR) {
82 data_.u_c_str_ = value;
85 data_.u_lc_str_ = &value;
93 FmtElm(
void* value) : type_(POINTER) {
94 data_.u_pointer_ = value;
99 enum Type { INT, DOUBLE, C_STR, LC_STR, OBJ,
HANDLE, POINTER };
116 allocator_(allocator),
128 bool Put(
String* str,
int start,
int end);
130 void Add(
const char* format);
132 void Add(
const char* format,
FmtElm arg0);
135 void Add(
const char* format,
169 static bool IsMentionedObjectCacheClear();
176 void PrintObject(
Object* obj);
183 bool full()
const {
return (capacity_ - length_) == 1; }
184 int space()
const {
return capacity_ - length_; }
192 #endif // V8_STRING_STREAM_H_
char * allocate(unsigned bytes)
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 and VFP2 enable use of VFP2 instructions if available enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of MIPS FPU instructions if expose natives in global object expose gc extension number of stack frames to capture disable builtin natives files print a stack trace if an assertion failure occurs use random jit cookie to mask large constants trace lazy optimization use adaptive optimizations prepare for turning on always opt minimum length for automatic enable preparsing maximum number of optimization attempts before giving up cache prototype transitions automatically set the debug break flag when debugger commands are in the queue always cause a debug break before aborting maximum length of function source code printed in a stack trace max size of the new max size of the old max size of executable memory(in Mbytes)") DEFINE_bool(gc_global
static const int kInitialCapacity
void PrintSecurityTokenIfChanged(Object *function)
void PrintMentionedObjectCache()
typedef HANDLE(__stdcall *DLL_FUNC_TYPE(CreateToolhelp32Snapshot))(DWORD dwFlags
void PrintPrototype(JSFunction *fun, Object *receiver)
void PrintUsingMap(JSObject *js_object)
char * allocate(unsigned bytes)
char * grow(unsigned *bytes)
Handle< String > ToString()
void Add(Vector< const char > format, Vector< FmtElm > elms)
void PrintFixedArray(FixedArray *array, unsigned int limit)
char * grow(unsigned *bytes)
NoAllocationStringAllocator(char *memory, unsigned size)
virtual char * allocate(unsigned bytes)=0
void PrintByteArray(ByteArray *ba)
FmtElm(const char *value)
FmtElm(Handle< Object > value)
void PrintName(Object *o)
const Vector< const uc16 > * u_lc_str_
void PrintFunction(Object *function, Object *receiver, Code **code)
virtual char * grow(unsigned *bytes)=0
void OutputToFile(FILE *out)
static void ClearMentionedObjectCache()
virtual ~StringAllocator()
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra code(assertions) for debugging") DEFINE_bool(code_comments
FmtElm(const Vector< const uc16 > &value)
SmartArrayPointer< const char > ToCString() const
void DeleteArray(T *array)
StringStream(StringAllocator *allocator)