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

Unified Diff: src/frames.cc

Issue 2106883003: [builtins] Add receiver to builtin exit frames (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments 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.h ('k') | src/frames-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index 17ce402ee2f5ef5f65ee4fe509257ad03ec58cab..fbce95bec0a7f9938bf9c6b356357cb23fe1863c 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -648,7 +648,13 @@ void ExitFrame::FillState(Address fp, Address sp, State* state) {
}
JSFunction* BuiltinExitFrame::function() const {
- return JSFunction::cast(function_slot_object());
+ return JSFunction::cast(target_slot_object());
+}
+
+Object* BuiltinExitFrame::receiver() const { return receiver_slot_object(); }
+
+bool BuiltinExitFrame::IsConstructor() const {
+ return !new_target_slot_object()->IsUndefined(isolate());
}
Address StandardFrame::GetExpressionAddress(int n) const {
« no previous file with comments | « src/frames.h ('k') | src/frames-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698