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

Unified Diff: src/frames.h

Issue 2247353005: [builtins] support exception handling in TFJ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move impl to CodeAssembler, refactor api a bit Created 4 years, 4 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/frames.h
diff --git a/src/frames.h b/src/frames.h
index 12770231cf2f293800c0c777a25ebd9144de9c5d..69e4ba52ffc18ddf319d0208680e13a26221cded 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -447,6 +447,7 @@ class StackFrame BASE_EMBEDDED {
return (type == JAVA_SCRIPT) || (type == OPTIMIZED) ||
(type == INTERPRETED) || (type == BUILTIN);
}
+ bool is_stub() const { return type() == STUB; }
// Accessors.
Address sp() const { return state_.sp; }
@@ -909,6 +910,14 @@ class StubFrame : public StandardFrame {
// Determine the code for the frame.
Code* unchecked_code() const override;
+ int LookupExceptionHandlerInTable(int* data,
+ HandlerTable::CatchPrediction* prediction);
+
+ static StubFrame* cast(StackFrame* frame) {
+ DCHECK(frame->is_stub());
+ return static_cast<StubFrame*>(frame);
+ }
+
protected:
inline explicit StubFrame(StackFrameIteratorBase* iterator);

Powered by Google App Engine
This is Rietveld 408576698