v8.h   v8.h 
skipping to change at line 43 skipping to change at line 43
* V8 header file, include/v8.h. * V8 header file, include/v8.h.
* *
* For other documentation see http://code.google.com/apis/v8/ * For other documentation see http://code.google.com/apis/v8/
*/ */
#ifndef V8_H_ #ifndef V8_H_
#define V8_H_ #define V8_H_
// TODO(svenpanne) Remove me when the Chrome bindings are adapted. // TODO(svenpanne) Remove me when the Chrome bindings are adapted.
#define V8_DISABLE_DEPRECATIONS 1 #define V8_DISABLE_DEPRECATIONS 1
// TODO(dcarney): Remove once Latin-1 transitions in WebKit has stuck.
#define V8_ONE_BYTE_STRINGS_ENABLED 1
#include "v8stdint.h" #include "v8stdint.h"
#ifdef _WIN32 #ifdef _WIN32
// Setup for Windows DLL export/import. When building the V8 DLL the // Setup for Windows DLL export/import. When building the V8 DLL the
// BUILDING_V8_SHARED needs to be defined. When building a program which us es // BUILDING_V8_SHARED needs to be defined. When building a program which us es
// the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8 // the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8
// static library or building a program which uses the V8 static library ne ither // static library or building a program which uses the V8 static library ne ither
// BUILDING_V8_SHARED nor USING_V8_SHARED should be defined. // BUILDING_V8_SHARED nor USING_V8_SHARED should be defined.
skipping to change at line 2969 skipping to change at line 2971
/** /**
* A JIT code event is issued each time code is added, moved or removed. * A JIT code event is issued each time code is added, moved or removed.
* *
* \note removal events are not currently issued. * \note removal events are not currently issued.
*/ */
struct JitCodeEvent { struct JitCodeEvent {
enum EventType { enum EventType {
CODE_ADDED, CODE_ADDED,
CODE_MOVED, CODE_MOVED,
CODE_REMOVED CODE_REMOVED,
CODE_ADD_LINE_POS_INFO,
CODE_START_LINE_INFO_RECORDING,
CODE_END_LINE_INFO_RECORDING
};
// Definition of the code position type. The "POSITION" type means the pl
ace
// in the source code which are of interest when making stack traces to
// pin-point the source location of a stack frame as close as possible.
// The "STATEMENT_POSITION" means the place at the beginning of each
// statement, and is used to indicate possible break locations.
enum PositionType {
POSITION,
STATEMENT_POSITION
}; };
// Type of event. // Type of event.
EventType type; EventType type;
// Start of the instructions. // Start of the instructions.
void* code_start; void* code_start;
// Size of the instructions. // Size of the instructions.
size_t code_len; size_t code_len;
// Script info for CODE_ADDED event.
Handle<Script> script;
// User-defined data for *_LINE_INFO_* event. It's used to hold the sourc
e
// code line information which is returned from the
// CODE_START_LINE_INFO_RECORDING event. And it's passed to subsequent
// CODE_ADD_LINE_POS_INFO and CODE_END_LINE_INFO_RECORDING events.
void* user_data;
union { union {
// Only valid for CODE_ADDED. // Only valid for CODE_ADDED.
struct { struct {
// Name of the object associated with the code, note that the string is // Name of the object associated with the code, note that the string is
// not zero-terminated. // not zero-terminated.
const char* str; const char* str;
// Number of chars in str. // Number of chars in str.
size_t len; size_t len;
} name; } name;
// Only valid for CODE_ADD_LINE_POS_INFO
struct {
// PC offset
size_t offset;
// Code postion
size_t pos;
// The position type.
PositionType position_type;
} line_info;
// New location of instructions. Only valid for CODE_MOVED. // New location of instructions. Only valid for CODE_MOVED.
void* new_code_start; void* new_code_start;
}; };
}; };
/** /**
* Option flags passed to the SetJitCodeEventHandler function. * Option flags passed to the SetJitCodeEventHandler function.
*/ */
enum JitCodeEventOptions { enum JitCodeEventOptions {
kJitCodeEventDefault = 0, kJitCodeEventDefault = 0,
 End of changes. 4 change blocks. 
1 lines changed or deleted 35 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/