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

Unified Diff: src/isolate.h

Issue 2161263003: [debug] use catch prediction flag for promise rejections. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months 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
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index ffe01db18c23ef1c3e832970a3758bbe6c2b6dd7..ea8c0641cc1bdef8014242edb03bd1fcbd9c24fc 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -660,7 +660,7 @@ class Isolate {
bool OptionalRescheduleException(bool is_bottom_call);
// Push and pop a promise and the current try-catch handler.
- void PushPromise(Handle<JSObject> promise, Handle<JSFunction> function);
+ void PushPromise(Handle<JSObject> promise);
void PopPromise();
Handle<Object> GetPromiseOnStackOnThrow();
@@ -1436,15 +1436,12 @@ class Isolate {
class PromiseOnStack {
public:
- PromiseOnStack(Handle<JSFunction> function, Handle<JSObject> promise,
- PromiseOnStack* prev)
- : function_(function), promise_(promise), prev_(prev) {}
- Handle<JSFunction> function() { return function_; }
+ PromiseOnStack(Handle<JSObject> promise, PromiseOnStack* prev)
+ : promise_(promise), prev_(prev) {}
Handle<JSObject> promise() { return promise_; }
PromiseOnStack* prev() { return prev_; }
private:
- Handle<JSFunction> function_;
Handle<JSObject> promise_;
PromiseOnStack* prev_;
};

Powered by Google App Engine
This is Rietveld 408576698