Chromium Code Reviews| Index: src/compiler.h |
| diff --git a/src/compiler.h b/src/compiler.h |
| index 09aa23dec984f72b5644bd1f8e52855ffcda99d6..d125dc7cd1b65cb77e983a58c6d98a77982ea7bd 100644 |
| --- a/src/compiler.h |
| +++ b/src/compiler.h |
| @@ -120,6 +120,17 @@ class CompilationInfo BASE_EMBEDDED { |
| ASSERT(IsOptimizing()); |
| osr_ast_id_ = osr_ast_id; |
| } |
| + void MarkCompilingForDebugging(Handle<Code> current_code) { |
| + ASSERT(mode_ != OPTIMIZE); |
| + ASSERT(current_code->kind() == Code::FUNCTION); |
| + compiling_for_debugging_ = true; |
| + if (current_code->is_compiled_optimizable()) { |
| + EnableDeoptimizationSupport(); |
| + } else { |
| + mode_ = CompilationInfo::NONOPT; |
| + } |
| + } |
| + bool CompilingForDebugging() { return compiling_for_debugging_; } |
| bool has_global_object() const { |
| return !closure().is_null() && (closure()->context()->global() != NULL); |
| @@ -234,6 +245,10 @@ class CompilationInfo BASE_EMBEDDED { |
| bool supports_deoptimization_; |
| int osr_ast_id_; |
| + // If compiling for debugging produce just full code matching the |
| + // initial mode setting. |
| + bool compiling_for_debugging_; |
|
Kevin Millikin (Chromium)
2011/09/29 10:47:35
There's a bit field "flags_" in this class. I thi
Søren Thygesen Gjesse
2011/09/30 08:33:22
Good point - changed.
|
| + |
| DISALLOW_COPY_AND_ASSIGN(CompilationInfo); |
| }; |