Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1353)

Unified Diff: src/api.cc

Issue 796623003: Support multiple interrupt requests in v8 API. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | src/execution.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index d094dbd55c4cf9f20e4ee3caf48bf846333152d5..12e8b3f4bc59554144413b06c70744aa1d9f9627 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -6464,17 +6464,11 @@ void Isolate::CancelTerminateExecution() {
void Isolate::RequestInterrupt(InterruptCallback callback, void* data) {
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
- isolate->set_api_interrupt_callback(callback);
- isolate->set_api_interrupt_callback_data(data);
- isolate->stack_guard()->RequestApiInterrupt();
+ isolate->RequestInterrupt(callback, data);
}
void Isolate::ClearInterrupt() {
- i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
- isolate->stack_guard()->ClearApiInterrupt();
- isolate->set_api_interrupt_callback(NULL);
- isolate->set_api_interrupt_callback_data(NULL);
}
« no previous file with comments | « include/v8.h ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698