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

Unified Diff: src/frames.h

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/builtins.cc ('k') | src/frames.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.h
diff --git a/src/frames.h b/src/frames.h
index 36aa94c47187d822ab6100de055abdbcf9ed0a25..b98f732f7d8ddbc8b82576e2031623311ffa0769 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -329,6 +329,7 @@ class BuiltinExitFrameConstants : public CommonFrameConstants {
public:
static const int kNewTargetOffset = kCallerPCOffset + 1 * kPointerSize;
static const int kTargetOffset = kNewTargetOffset + 1 * kPointerSize;
+ static const int kArgcOffset = kTargetOffset + 1 * kPointerSize;
};
class InterpreterFrameConstants : public AllStatic {
@@ -664,13 +665,18 @@ class BuiltinExitFrame : public ExitFrame {
return static_cast<BuiltinExitFrame*>(frame);
}
- virtual JSFunction* function() const;
+ JSFunction* function() const;
+ Object* receiver() const;
+
+ bool IsConstructor() const;
protected:
inline explicit BuiltinExitFrame(StackFrameIteratorBase* iterator);
private:
- inline Object* function_slot_object() const;
+ inline Object* target_slot_object() const;
+ inline Object* new_target_slot_object() const;
+ inline Object* receiver_slot_object() const;
friend class StackFrameIteratorBase;
};
« no previous file with comments | « src/builtins.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698