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

Commit

Permalink
chakrashim: shim updated apis
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhorton authored and kfarnung committed Jan 9, 2018
1 parent ad7c2e2 commit a2e28d7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deps/chakrashim/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -2639,11 +2639,24 @@ class V8_EXPORT Isolate {
Isolate* isolate, GCType type, GCCallbackFlags flags);
typedef void(*GCCallback)(Isolate* isolate, GCType type,
GCCallbackFlags flags);
typedef void (*GCCallbackWithData)(Isolate* isolate, GCType type,
GCCallbackFlags flags, void* data);

void AddGCPrologueCallback(
GCCallbackWithData callback, void* data = nullptr,
GCType gc_type_filter = kGCTypeAll);
void AddGCPrologueCallback(
GCCallback callback, GCType gc_type_filter = kGCTypeAll);
void RemoveGCPrologueCallback(
GCCallbackWithData callback, void* data = nullptr);
void RemoveGCPrologueCallback(GCCallback callback);
void AddGCEpilogueCallback(
GCCallbackWithData callback, void* data = nullptr,
GCType gc_type_filter = kGCTypeAll);
void AddGCEpilogueCallback(
GCCallback callback, GCType gc_type_filter = kGCTypeAll);
void RemoveGCEpilogueCallback(
GCCallbackWithData callback, void* data = nullptr);
void RemoveGCEpilogueCallback(GCCallback callback);

void CancelTerminateExecution();
Expand Down
16 changes: 16 additions & 0 deletions deps/chakrashim/src/v8isolate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,17 +172,33 @@ CpuProfiler* Isolate::GetCpuProfiler() {
return &dummyCpuProfiler;
}

void Isolate::AddGCPrologueCallback(
GCCallbackWithData callback, void* data, GCType gc_type_filter) {
}

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

void Isolate::RemoveGCPrologueCallback(
GCCallbackWithData callback, void* data) {
}

void Isolate::RemoveGCPrologueCallback(GCCallback callback) {
}

void Isolate::AddGCEpilogueCallback(
GCCallbackWithData callback, void* data, GCType gc_type_filter) {
}

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

void Isolate::RemoveGCEpilogueCallback(
GCCallbackWithData callback, void* data) {
}

void Isolate::RemoveGCEpilogueCallback(GCCallback callback) {
}

Expand Down

0 comments on commit a2e28d7

Please sign in to comment.