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

Side by Side Diff: src/compiler/code-generator-impl.h

Issue 1775323002: [turbofan] Frame elision for code stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_CODE_GENERATOR_IMPL_H_ 5 #ifndef V8_COMPILER_CODE_GENERATOR_IMPL_H_
6 #define V8_COMPILER_CODE_GENERATOR_IMPL_H_ 6 #define V8_COMPILER_CODE_GENERATOR_IMPL_H_
7 7
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compiler/code-generator.h" 9 #include "src/compiler/code-generator.h"
10 #include "src/compiler/instruction.h" 10 #include "src/compiler/instruction.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 class OutOfLineCode : public ZoneObject { 157 class OutOfLineCode : public ZoneObject {
158 public: 158 public:
159 explicit OutOfLineCode(CodeGenerator* gen); 159 explicit OutOfLineCode(CodeGenerator* gen);
160 virtual ~OutOfLineCode(); 160 virtual ~OutOfLineCode();
161 161
162 virtual void Generate() = 0; 162 virtual void Generate() = 0;
163 163
164 Label* entry() { return &entry_; } 164 Label* entry() { return &entry_; }
165 Label* exit() { return &exit_; } 165 Label* exit() { return &exit_; }
166 Frame* frame() const { return frame_; } 166 Frame* frame() const { return frame_; }
167 FrameAccessState* frame_access_state() const { return frame_access_state_; }
167 Isolate* isolate() const { return masm()->isolate(); } 168 Isolate* isolate() const { return masm()->isolate(); }
168 MacroAssembler* masm() const { return masm_; } 169 MacroAssembler* masm() const { return masm_; }
169 OutOfLineCode* next() const { return next_; } 170 OutOfLineCode* next() const { return next_; }
170 171
171 private: 172 private:
172 Label entry_; 173 Label entry_;
173 Label exit_; 174 Label exit_;
174 Frame* const frame_; 175 Frame* const frame_;
176 FrameAccessState* const frame_access_state_;
175 MacroAssembler* const masm_; 177 MacroAssembler* const masm_;
176 OutOfLineCode* const next_; 178 OutOfLineCode* const next_;
177 }; 179 };
178 180
179 181
180 // TODO(dcarney): generify this on bleeding_edge and replace this call 182 // TODO(dcarney): generify this on bleeding_edge and replace this call
181 // when merged. 183 // when merged.
182 static inline void FinishCode(MacroAssembler* masm) { 184 static inline void FinishCode(MacroAssembler* masm) {
183 #if V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM 185 #if V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM
184 masm->CheckConstPool(true, false); 186 masm->CheckConstPool(true, false);
185 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 187 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64
186 masm->ud2(); 188 masm->ud2();
187 #endif 189 #endif
188 } 190 }
189 191
190 } // namespace compiler 192 } // namespace compiler
191 } // namespace internal 193 } // namespace internal
192 } // namespace v8 194 } // namespace v8
193 195
194 #endif // V8_COMPILER_CODE_GENERATOR_IMPL_H 196 #endif // V8_COMPILER_CODE_GENERATOR_IMPL_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698