v8-profiler.h | v8-profiler.h | |||
---|---|---|---|---|
skipping to change at line 60 | skipping to change at line 60 | |||
/** Returns resource name for script from where the function originates. */ | /** Returns resource name for script from where the function originates. */ | |||
Handle<String> GetScriptResourceName() const; | Handle<String> GetScriptResourceName() const; | |||
/** | /** | |||
* Returns the number, 1-based, of the line where the function originates . | * Returns the number, 1-based, of the line where the function originates . | |||
* kNoLineNumberInfo if no line number information is available. | * kNoLineNumberInfo if no line number information is available. | |||
*/ | */ | |||
int GetLineNumber() const; | int GetLineNumber() const; | |||
/** | ||||
* Returns 1-based number of the column where the function originates. | ||||
* kNoColumnNumberInfo if no column number information is available. | ||||
*/ | ||||
int GetColumnNumber() const; | ||||
/** Returns bailout reason for the function | /** Returns bailout reason for the function | |||
* if the optimization was disabled for it. | * if the optimization was disabled for it. | |||
*/ | */ | |||
const char* GetBailoutReason() const; | const char* GetBailoutReason() const; | |||
/** | /** | |||
* Returns the count of samples where the function was currently executi ng. | * Returns the count of samples where the function was currently executi ng. | |||
*/ | */ | |||
unsigned GetHitCount() const; | unsigned GetHitCount() const; | |||
skipping to change at line 83 | skipping to change at line 89 | |||
/** Returns id of the node. The id is unique within the tree */ | /** Returns id of the node. The id is unique within the tree */ | |||
unsigned GetNodeId() const; | unsigned GetNodeId() const; | |||
/** Returns child nodes count of the node. */ | /** Returns child nodes count of the node. */ | |||
int GetChildrenCount() const; | int GetChildrenCount() const; | |||
/** Retrieves a child node by index. */ | /** Retrieves a child node by index. */ | |||
const CpuProfileNode* GetChild(int index) const; | const CpuProfileNode* GetChild(int index) const; | |||
static const int kNoLineNumberInfo = Message::kNoLineNumberInfo; | static const int kNoLineNumberInfo = Message::kNoLineNumberInfo; | |||
static const int kNoColumnNumberInfo = Message::kNoColumnInfo; | ||||
}; | }; | |||
/** | /** | |||
* CpuProfile contains a CPU profile in a form of top-down call tree | * CpuProfile contains a CPU profile in a form of top-down call tree | |||
* (from main() down to functions that do all the work). | * (from main() down to functions that do all the work). | |||
*/ | */ | |||
class V8_EXPORT CpuProfile { | class V8_EXPORT CpuProfile { | |||
public: | public: | |||
/** Returns CPU profile UID (assigned by the profiler.) */ | /** Returns CPU profile UID (assigned by the profiler.) */ | |||
unsigned GetUid() const; | unsigned GetUid() const; | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 7 lines changed or added | |||
v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 838 | skipping to change at line 838 | |||
void operator delete(void*, size_t); | void operator delete(void*, size_t); | |||
internal::Object** escape_slot_; | internal::Object** escape_slot_; | |||
}; | }; | |||
/** | /** | |||
* A simple Maybe type, representing an object which may or may not have a | * A simple Maybe type, representing an object which may or may not have a | |||
* value. | * value. | |||
*/ | */ | |||
template<class T> | template<class T> | |||
struct V8_EXPORT Maybe { | struct Maybe { | |||
Maybe() : has_value(false) {} | Maybe() : has_value(false) {} | |||
explicit Maybe(T t) : has_value(true), value(t) {} | explicit Maybe(T t) : has_value(true), value(t) {} | |||
Maybe(bool has, T t) : has_value(has), value(t) {} | Maybe(bool has, T t) : has_value(has), value(t) {} | |||
bool has_value; | bool has_value; | |||
T value; | T value; | |||
}; | }; | |||
// --- Special objects --- | // --- Special objects --- | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||