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

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

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/code-generator.cc ('k') | src/compiler/frame-states.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 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 #ifndef V8_COMPILER_FRAME_STATES_H_ 5 #ifndef V8_COMPILER_FRAME_STATES_H_
6 #define V8_COMPILER_FRAME_STATES_H_ 6 #define V8_COMPILER_FRAME_STATES_H_
7 7
8 #include "src/handles.h" 8 #include "src/handles.h"
9 #include "src/utils.h" 9 #include "src/utils.h"
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 Kind const kind_; 72 Kind const kind_;
73 size_t const parameter_; 73 size_t const parameter_;
74 }; 74 };
75 75
76 76
77 // The type of stack frame that a FrameState node represents. 77 // The type of stack frame that a FrameState node represents.
78 enum class FrameStateType { 78 enum class FrameStateType {
79 kJavaScriptFunction, // Represents an unoptimized JavaScriptFrame. 79 kJavaScriptFunction, // Represents an unoptimized JavaScriptFrame.
80 kInterpretedFunction, // Represents an InterpretedFrame. 80 kInterpretedFunction, // Represents an InterpretedFrame.
81 kArgumentsAdaptor, // Represents an ArgumentsAdaptorFrame. 81 kArgumentsAdaptor, // Represents an ArgumentsAdaptorFrame.
82 kTailCallerFunction, // Represents a frame removed by tail call elimination.
82 kConstructStub // Represents a ConstructStubFrame. 83 kConstructStub // Represents a ConstructStubFrame.
83 }; 84 };
84 85
85
86 class FrameStateFunctionInfo { 86 class FrameStateFunctionInfo {
87 public: 87 public:
88 FrameStateFunctionInfo(FrameStateType type, int parameter_count, 88 FrameStateFunctionInfo(FrameStateType type, int parameter_count,
89 int local_count, 89 int local_count,
90 Handle<SharedFunctionInfo> shared_info) 90 Handle<SharedFunctionInfo> shared_info)
91 : type_(type), 91 : type_(type),
92 parameter_count_(parameter_count), 92 parameter_count_(parameter_count),
93 local_count_(local_count), 93 local_count_(local_count),
94 shared_info_(shared_info) {} 94 shared_info_(shared_info) {}
95 95
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 static const int kFrameStateContextInput = 3; 156 static const int kFrameStateContextInput = 3;
157 static const int kFrameStateFunctionInput = 4; 157 static const int kFrameStateFunctionInput = 4;
158 static const int kFrameStateOuterStateInput = 5; 158 static const int kFrameStateOuterStateInput = 5;
159 static const int kFrameStateInputCount = kFrameStateOuterStateInput + 1; 159 static const int kFrameStateInputCount = kFrameStateOuterStateInput + 1;
160 160
161 } // namespace compiler 161 } // namespace compiler
162 } // namespace internal 162 } // namespace internal
163 } // namespace v8 163 } // namespace v8
164 164
165 #endif // V8_COMPILER_FRAME_STATES_H_ 165 #endif // V8_COMPILER_FRAME_STATES_H_
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/frame-states.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698