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

Unified Diff: src/frames-inl.h

Issue 2090723005: [builtins] New frame type for exits to C++ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing condition in SafeStackFrameIter::frame() Created 4 years, 6 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
« no previous file with comments | « src/frames.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames-inl.h
diff --git a/src/frames-inl.h b/src/frames-inl.h
index c45f015a231318300cbc4a9f44421f48f251b59c..a477c70f270bee232b4cf01ebd78257a8ac89417 100644
--- a/src/frames-inl.h
+++ b/src/frames-inl.h
@@ -98,6 +98,12 @@ inline ExitFrame::ExitFrame(StackFrameIteratorBase* iterator)
: StackFrame(iterator) {
}
+inline BuiltinExitFrame::BuiltinExitFrame(StackFrameIteratorBase* iterator)
+ : ExitFrame(iterator) {}
+
+inline Object* BuiltinExitFrame::function_slot_object() const {
+ return Memory::Object_at(fp() + BuiltinExitFrameConstants::kTargetOffset);
+}
inline StandardFrame::StandardFrame(StackFrameIteratorBase* iterator)
: StackFrame(iterator) {
@@ -306,7 +312,8 @@ WasmFrame* StackTraceFrameIterator::wasm_frame() const {
inline StackFrame* SafeStackFrameIterator::frame() const {
DCHECK(!done());
- DCHECK(frame_->is_java_script() || frame_->is_exit());
+ DCHECK(frame_->is_java_script() || frame_->is_exit() ||
+ frame_->is_builtin_exit());
return frame_;
}
« no previous file with comments | « src/frames.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698