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

Side by Side Diff: src/compiler/frame-states.cc

Issue 1768263004: [turbofan] [deoptimizer] Support inlining of ES6 tail calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments, StandardFrameConstants -> CommonFrameConstants Created 4 years, 9 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/compiler/frame-states.h ('k') | src/compiler/js-inlining.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/frame-states.h" 5 #include "src/compiler/frame-states.h"
6 6
7 #include "src/base/functional.h" 7 #include "src/base/functional.h"
8 #include "src/handles-inl.h" 8 #include "src/handles-inl.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 switch (type) { 51 switch (type) {
52 case FrameStateType::kJavaScriptFunction: 52 case FrameStateType::kJavaScriptFunction:
53 os << "JS_FRAME"; 53 os << "JS_FRAME";
54 break; 54 break;
55 case FrameStateType::kInterpretedFunction: 55 case FrameStateType::kInterpretedFunction:
56 os << "INTERPRETED_FRAME"; 56 os << "INTERPRETED_FRAME";
57 break; 57 break;
58 case FrameStateType::kArgumentsAdaptor: 58 case FrameStateType::kArgumentsAdaptor:
59 os << "ARGUMENTS_ADAPTOR"; 59 os << "ARGUMENTS_ADAPTOR";
60 break; 60 break;
61 case FrameStateType::kTailCallerFunction:
62 os << "TAIL_CALLER_FRAME";
63 break;
61 case FrameStateType::kConstructStub: 64 case FrameStateType::kConstructStub:
62 os << "CONSTRUCT_STUB"; 65 os << "CONSTRUCT_STUB";
63 break; 66 break;
64 } 67 }
65 return os; 68 return os;
66 } 69 }
67 70
68 71
69 std::ostream& operator<<(std::ostream& os, FrameStateInfo const& info) { 72 std::ostream& operator<<(std::ostream& os, FrameStateInfo const& info) {
70 os << info.type() << ", " << info.bailout_id() << ", " 73 os << info.type() << ", " << info.bailout_id() << ", "
71 << info.state_combine(); 74 << info.state_combine();
72 Handle<SharedFunctionInfo> shared_info; 75 Handle<SharedFunctionInfo> shared_info;
73 if (info.shared_info().ToHandle(&shared_info)) { 76 if (info.shared_info().ToHandle(&shared_info)) {
74 os << ", " << Brief(*shared_info); 77 os << ", " << Brief(*shared_info);
75 } 78 }
76 return os; 79 return os;
77 } 80 }
78 81
79 } // namespace compiler 82 } // namespace compiler
80 } // namespace internal 83 } // namespace internal
81 } // namespace v8 84 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/frame-states.h ('k') | src/compiler/js-inlining.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698