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

Side by Side Diff: src/frames.cc

Issue 1343763002: [turbofan] Add inlining guards to Runtime_NewArguments. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-arguments-1
Patch Set: Addressed comments. Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « src/frames.h ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/frames.h" 5 #include "src/frames.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 bool JavaScriptFrame::IsConstructor() const { 720 bool JavaScriptFrame::IsConstructor() const {
721 Address fp = caller_fp(); 721 Address fp = caller_fp();
722 if (has_adapted_arguments()) { 722 if (has_adapted_arguments()) {
723 // Skip the arguments adaptor frame and look at the real caller. 723 // Skip the arguments adaptor frame and look at the real caller.
724 fp = Memory::Address_at(fp + StandardFrameConstants::kCallerFPOffset); 724 fp = Memory::Address_at(fp + StandardFrameConstants::kCallerFPOffset);
725 } 725 }
726 return IsConstructFrame(fp); 726 return IsConstructFrame(fp);
727 } 727 }
728 728
729 729
730 bool JavaScriptFrame::HasInlinedFrames() {
731 List<JSFunction*> functions(1);
732 GetFunctions(&functions);
733 return functions.length() > 1;
734 }
735
736
730 Object* JavaScriptFrame::GetOriginalConstructor() const { 737 Object* JavaScriptFrame::GetOriginalConstructor() const {
731 Address fp = caller_fp(); 738 Address fp = caller_fp();
732 if (has_adapted_arguments()) { 739 if (has_adapted_arguments()) {
733 // Skip the arguments adaptor frame and look at the real caller. 740 // Skip the arguments adaptor frame and look at the real caller.
734 fp = Memory::Address_at(fp + StandardFrameConstants::kCallerFPOffset); 741 fp = Memory::Address_at(fp + StandardFrameConstants::kCallerFPOffset);
735 } 742 }
736 DCHECK(IsConstructFrame(fp)); 743 DCHECK(IsConstructFrame(fp));
737 STATIC_ASSERT(ConstructFrameConstants::kOriginalConstructorOffset == 744 STATIC_ASSERT(ConstructFrameConstants::kOriginalConstructorOffset ==
738 StandardFrameConstants::kExpressionsOffset - 3 * kPointerSize); 745 StandardFrameConstants::kExpressionsOffset - 3 * kPointerSize);
739 return GetExpression(fp, 3); 746 return GetExpression(fp, 3);
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1563 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1557 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1564 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1558 list.Add(frame, zone); 1565 list.Add(frame, zone);
1559 } 1566 }
1560 return list.ToVector(); 1567 return list.ToVector();
1561 } 1568 }
1562 1569
1563 1570
1564 } // namespace internal 1571 } // namespace internal
1565 } // namespace v8 1572 } // namespace v8
OLDNEW
« no previous file with comments | « src/frames.h ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698