Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 112696baa0cfcbcd43245e2fcb005077bfe7ae6e..3195b81da0b3585059ee85c05774eb9c43a3314e 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -247,7 +247,8 @@ 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(BailoutId osr_ast_id = BailoutId::None(), |
+ Handle<Code> unoptimized = Handle<Code>::null()) { |
rmcilroy
2016/02/09 22:06:07
nit - maybe remove these parameters, and instead a
Michael Starzinger
2016/02/10 10:01:11
Done. Nice idea, I like!
|
DCHECK(has_shared_info()); |
SetMode(OPTIMIZE); |
osr_ast_id_ = osr_ast_id; |