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

Side by Side Diff: src/compiler.h

Issue 1863333004: [turbofan] Deprecate CompilationInfo::has_scope predicate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | src/compiler.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 #ifndef V8_COMPILER_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 bool is_native() const; 178 bool is_native() const;
179 bool is_module() const; 179 bool is_module() const;
180 LanguageMode language_mode() const; 180 LanguageMode language_mode() const;
181 Handle<JSFunction> closure() const; 181 Handle<JSFunction> closure() const;
182 FunctionLiteral* literal() const; 182 FunctionLiteral* literal() const;
183 Scope* scope() const; 183 Scope* scope() const;
184 Handle<Context> context() const; 184 Handle<Context> context() const;
185 Handle<SharedFunctionInfo> shared_info() const; 185 Handle<SharedFunctionInfo> shared_info() const;
186 bool has_shared_info() const; 186 bool has_shared_info() const;
187 bool has_context() const; 187 bool has_context() const;
188 bool has_scope() const;
189 // ----------------------------------------------------------- 188 // -----------------------------------------------------------
190 189
191 Isolate* isolate() const { 190 Isolate* isolate() const {
192 return isolate_; 191 return isolate_;
193 } 192 }
194 Zone* zone() { return zone_; } 193 Zone* zone() { return zone_; }
195 bool is_osr() const { return !osr_ast_id_.IsNone(); } 194 bool is_osr() const { return !osr_ast_id_.IsNone(); }
196 Handle<Code> code() const { return code_; } 195 Handle<Code> code() const { return code_; }
197 Code::Flags code_flags() const { return code_flags_; } 196 Code::Flags code_flags() const { return code_flags_; }
198 BailoutId osr_ast_id() const { return osr_ast_id_; } 197 BailoutId osr_ast_id() const { return osr_ast_id_; }
199 int num_parameters() const; 198 int num_parameters() const;
200 int num_parameters_including_this() const; 199 int num_parameters_including_this() const;
201 bool is_this_defined() const; 200 bool is_this_defined() const;
202 int num_heap_slots() const;
203 201
204 void set_parameter_count(int parameter_count) { 202 void set_parameter_count(int parameter_count) {
205 DCHECK(IsStub()); 203 DCHECK(IsStub());
206 parameter_count_ = parameter_count; 204 parameter_count_ = parameter_count;
207 } 205 }
208 206
209 bool has_bytecode_array() const { return !bytecode_array_.is_null(); } 207 bool has_bytecode_array() const { return !bytecode_array_.is_null(); }
210 Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; } 208 Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; }
211 209
212 Handle<AbstractCode> abstract_code() const { 210 Handle<AbstractCode> abstract_code() const {
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 OptimizedCompileJob* job_; 634 OptimizedCompileJob* job_;
637 base::ElapsedTimer timer_; 635 base::ElapsedTimer timer_;
638 base::TimeDelta* location_; 636 base::TimeDelta* location_;
639 }; 637 };
640 }; 638 };
641 639
642 } // namespace internal 640 } // namespace internal
643 } // namespace v8 641 } // namespace v8
644 642
645 #endif // V8_COMPILER_H_ 643 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698