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

Side by Side Diff: test/cctest/compiler/test-run-inlining.cc

Issue 2106113002: Revert of [builtins] New frame type for exits to C++ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/x64/macro-assembler-x64.cc ('k') | test/cctest/test-log-stack-tracer.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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-inl.h" 5 #include "src/frames-inl.h"
6 #include "test/cctest/compiler/function-tester.h" 6 #include "test/cctest/compiler/function-tester.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
11 11
12 namespace { 12 namespace {
13 13
14 // Helper to determine inline count via JavaScriptFrame::GetFunctions. 14 // Helper to determine inline count via JavaScriptFrame::GetFunctions.
15 // Note that a count of 1 indicates that no inlining has occured. 15 // Note that a count of 1 indicates that no inlining has occured.
16 void AssertInlineCount(const v8::FunctionCallbackInfo<v8::Value>& args) { 16 void AssertInlineCount(const v8::FunctionCallbackInfo<v8::Value>& args) {
17 JavaScriptFrameIterator it(CcTest::i_isolate()); 17 StackTraceFrameIterator it(CcTest::i_isolate());
18 int frames_seen = 0; 18 int frames_seen = 0;
19 JavaScriptFrame* topmost = it.frame(); 19 JavaScriptFrame* topmost = it.javascript_frame();
20 while (!it.done()) { 20 while (!it.done()) {
21 JavaScriptFrame* frame = it.frame(); 21 JavaScriptFrame* frame = it.javascript_frame();
22 List<JSFunction*> functions(2); 22 List<JSFunction*> functions(2);
23 frame->GetFunctions(&functions); 23 frame->GetFunctions(&functions);
24 PrintF("%d %s, inline count: %d\n", frames_seen, 24 PrintF("%d %s, inline count: %d\n", frames_seen,
25 frame->function()->shared()->DebugName()->ToCString().get(), 25 frame->function()->shared()->DebugName()->ToCString().get(),
26 functions.length()); 26 functions.length());
27 frames_seen++; 27 frames_seen++;
28 it.Advance(); 28 it.Advance();
29 } 29 }
30 List<JSFunction*> functions(2); 30 List<JSFunction*> functions(2);
31 topmost->GetFunctions(&functions); 31 topmost->GetFunctions(&functions);
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 "})();", 569 "})();",
570 kInlineFlags); 570 kInlineFlags);
571 571
572 InstallAssertInlineCountHelper(CcTest::isolate()); 572 InstallAssertInlineCountHelper(CcTest::isolate());
573 T.CheckCall(T.Val(42), T.Val(1)); 573 T.CheckCall(T.Val(42), T.Val(1));
574 } 574 }
575 575
576 } // namespace compiler 576 } // namespace compiler
577 } // namespace internal 577 } // namespace internal
578 } // namespace v8 578 } // namespace v8
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | test/cctest/test-log-stack-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698