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

Unified Diff: src/frames.cc

Issue 1469313002: [interpreter] Switch passing of new.target to register. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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.cc
diff --git a/src/frames.cc b/src/frames.cc
index 61b21beec4ce1391fdd0400825b5f31f05688d65..09052356fb6ed0866464427d2ee387e904f134e2 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -756,20 +756,6 @@ bool JavaScriptFrame::HasInlinedFrames() const {
}
-Object* JavaScriptFrame::GetNewTarget() const {
- DCHECK(!HasInlinedFrames());
- Address fp = caller_fp();
- if (has_adapted_arguments()) {
- // Skip the arguments adaptor frame and look at the real caller.
- fp = Memory::Address_at(fp + StandardFrameConstants::kCallerFPOffset);
- }
- DCHECK(IsConstructFrame(fp));
- STATIC_ASSERT(ConstructFrameConstants::kNewTargetOffset ==
- StandardFrameConstants::kExpressionsOffset - 3 * kPointerSize);
- return GetExpression(fp, 3);
-}
-
-
int JavaScriptFrame::GetArgumentsLength() const {
// If there is an arguments adaptor frame get the arguments length from it.
if (has_adapted_arguments()) {
« src/arm64/builtins-arm64.cc ('K') | « src/frames.h ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698