Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 112696baa0cfcbcd43245e2fcb005077bfe7ae6e..4ab4a307bbc3a5d2f499dfa1ff527892c0a81535 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -247,15 +247,18 @@ class CompilationInfo { |
// Accessors for the different compilation modes. |
bool IsOptimizing() const { return mode_ == OPTIMIZE; } |
bool IsStub() const { return mode_ == STUB; } |
- void SetOptimizing(BailoutId osr_ast_id, Handle<Code> unoptimized) { |
+ void SetOptimizing() { |
DCHECK(has_shared_info()); |
SetMode(OPTIMIZE); |
- osr_ast_id_ = osr_ast_id; |
- unoptimized_code_ = unoptimized; |
optimization_id_ = isolate()->NextOptimizationId(); |
code_flags_ = |
Code::KindField::update(code_flags_, Code::OPTIMIZED_FUNCTION); |
} |
+ void SetOptimizingForOsr(BailoutId osr_ast_id, Handle<Code> unoptimized) { |
+ SetOptimizing(); |
+ osr_ast_id_ = osr_ast_id; |
+ unoptimized_code_ = unoptimized; |
+ } |
// Deoptimization support. |
bool HasDeoptimizationSupport() const { |