Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
chakrashim: Fix for nan v2.2 APIs
Browse files Browse the repository at this point in the history
`GCPrologueCallback ` and `GCEpilogueCallback ` is replaced by `GCCallback`.

Reviewed-By @jianchun
  • Loading branch information
kunalspathak committed Jan 12, 2016
1 parent 6bc3ef3 commit ee68330
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions deps/chakrashim/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -2138,12 +2138,14 @@ class V8_EXPORT Isolate {
Isolate* isolate, GCType type, GCCallbackFlags flags);
typedef void (*GCEpilogueCallback)(
Isolate* isolate, GCType type, GCCallbackFlags flags);
typedef void(*GCCallback)(Isolate* isolate, GCType type,
GCCallbackFlags flags);
void AddGCPrologueCallback(
GCPrologueCallback callback, GCType gc_type_filter = kGCTypeAll);
void RemoveGCPrologueCallback(GCPrologueCallback callback);
GCCallback callback, GCType gc_type_filter = kGCTypeAll);
void RemoveGCPrologueCallback(GCCallback callback);
void AddGCEpilogueCallback(
GCEpilogueCallback callback, GCType gc_type_filter = kGCTypeAll);
void RemoveGCEpilogueCallback(GCEpilogueCallback callback);
GCCallback callback, GCType gc_type_filter = kGCTypeAll);
void RemoveGCEpilogueCallback(GCCallback callback);

void SetCounterFunction(CounterLookupCallback);
void SetCreateHistogramFunction(CreateHistogramCallback);
Expand Down
8 changes: 4 additions & 4 deletions deps/chakrashim/src/v8isolate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,17 @@ CpuProfiler* Isolate::GetCpuProfiler() {
}

void Isolate::AddGCPrologueCallback(
GCPrologueCallback callback, GCType gc_type_filter) {
GCCallback callback, GCType gc_type_filter) {
}

void Isolate::RemoveGCPrologueCallback(GCPrologueCallback callback) {
void Isolate::RemoveGCPrologueCallback(GCCallback callback) {
}

void Isolate::AddGCEpilogueCallback(
GCEpilogueCallback callback, GCType gc_type_filter) {
GCCallback callback, GCType gc_type_filter) {
}

void Isolate::RemoveGCEpilogueCallback(GCEpilogueCallback callback) {
void Isolate::RemoveGCEpilogueCallback(GCCallback callback) {
}

void Isolate::SetCounterFunction(CounterLookupCallback) {
Expand Down

0 comments on commit ee68330

Please sign in to comment.