| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_COMPILATION_INFO_H_ | 5 #ifndef V8_COMPILATION_INFO_H_ |
| 6 #define V8_COMPILATION_INFO_H_ | 6 #define V8_COMPILATION_INFO_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "src/compilation-dependencies.h" | 10 #include "src/compilation-dependencies.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 bool is_this_defined() const; | 85 bool is_this_defined() const; |
| 86 | 86 |
| 87 void set_parameter_count(int parameter_count) { | 87 void set_parameter_count(int parameter_count) { |
| 88 DCHECK(IsStub()); | 88 DCHECK(IsStub()); |
| 89 parameter_count_ = parameter_count; | 89 parameter_count_ = parameter_count; |
| 90 } | 90 } |
| 91 | 91 |
| 92 bool has_bytecode_array() const { return !bytecode_array_.is_null(); } | 92 bool has_bytecode_array() const { return !bytecode_array_.is_null(); } |
| 93 Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; } | 93 Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; } |
| 94 | 94 |
| 95 bool is_tracking_positions() const { return track_positions_; } | |
| 96 | |
| 97 bool is_calling() const { | 95 bool is_calling() const { |
| 98 return GetFlag(kDeferredCalling) || GetFlag(kNonDeferredCalling); | 96 return GetFlag(kDeferredCalling) || GetFlag(kNonDeferredCalling); |
| 99 } | 97 } |
| 100 | 98 |
| 101 void MarkAsDeferredCalling() { SetFlag(kDeferredCalling); } | 99 void MarkAsDeferredCalling() { SetFlag(kDeferredCalling); } |
| 102 | 100 |
| 103 bool is_deferred_calling() const { return GetFlag(kDeferredCalling); } | 101 bool is_deferred_calling() const { return GetFlag(kDeferredCalling); } |
| 104 | 102 |
| 105 void MarkAsNonDeferredCalling() { SetFlag(kNonDeferredCalling); } | 103 void MarkAsNonDeferredCalling() { SetFlag(kNonDeferredCalling); } |
| 106 | 104 |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 370 |
| 373 DeferredHandles* deferred_handles_; | 371 DeferredHandles* deferred_handles_; |
| 374 | 372 |
| 375 // Dependencies for this compilation, e.g. stable maps. | 373 // Dependencies for this compilation, e.g. stable maps. |
| 376 CompilationDependencies dependencies_; | 374 CompilationDependencies dependencies_; |
| 377 | 375 |
| 378 BailoutReason bailout_reason_; | 376 BailoutReason bailout_reason_; |
| 379 | 377 |
| 380 int prologue_offset_; | 378 int prologue_offset_; |
| 381 | 379 |
| 382 bool track_positions_; | |
| 383 | |
| 384 InlinedFunctionList inlined_functions_; | 380 InlinedFunctionList inlined_functions_; |
| 385 | 381 |
| 386 // Number of parameters used for compilation of stubs that require arguments. | 382 // Number of parameters used for compilation of stubs that require arguments. |
| 387 int parameter_count_; | 383 int parameter_count_; |
| 388 | 384 |
| 389 int optimization_id_; | 385 int optimization_id_; |
| 390 | 386 |
| 391 int osr_expr_stack_height_; | 387 int osr_expr_stack_height_; |
| 392 | 388 |
| 393 // The current OSR frame for specialization or {nullptr}. | 389 // The current OSR frame for specialization or {nullptr}. |
| 394 JavaScriptFrame* osr_frame_ = nullptr; | 390 JavaScriptFrame* osr_frame_ = nullptr; |
| 395 | 391 |
| 396 Vector<const char> debug_name_; | 392 Vector<const char> debug_name_; |
| 397 | 393 |
| 398 DISALLOW_COPY_AND_ASSIGN(CompilationInfo); | 394 DISALLOW_COPY_AND_ASSIGN(CompilationInfo); |
| 399 }; | 395 }; |
| 400 | 396 |
| 401 } // namespace internal | 397 } // namespace internal |
| 402 } // namespace v8 | 398 } // namespace v8 |
| 403 | 399 |
| 404 #endif // V8_COMPILATION_INFO_H_ | 400 #endif // V8_COMPILATION_INFO_H_ |
| OLD | NEW |