Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 9d612348a08200f1cb7f9f66f0331cb8628c4d9e..5148eb93da847c6203fdbe14b5626bdc0e41b682 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -197,7 +197,6 @@ class CompilationInfo { |
Handle<Code> code() const { return code_; } |
Code::Flags code_flags() const { return code_flags_; } |
BailoutId osr_ast_id() const { return osr_ast_id_; } |
- Handle<Code> unoptimized_code() const { return unoptimized_code_; } |
int opt_count() const { return opt_count_; } |
int num_parameters() const; |
int num_parameters_including_this() const; |
@@ -362,10 +361,9 @@ class CompilationInfo { |
code_flags_ = |
Code::KindField::update(code_flags_, Code::OPTIMIZED_FUNCTION); |
} |
- void SetOptimizingForOsr(BailoutId osr_ast_id, Handle<Code> unoptimized) { |
+ void SetOptimizingForOsr(BailoutId osr_ast_id) { |
SetOptimizing(); |
osr_ast_id_ = osr_ast_id; |
- unoptimized_code_ = unoptimized; |
} |
// Deoptimization support. |
@@ -389,7 +387,7 @@ class CompilationInfo { |
} |
void ReopenHandlesInNewHandleScope() { |
- unoptimized_code_ = Handle<Code>(*unoptimized_code_); |
+ // Empty for now but will be needed once fields move from ParseInfo. |
} |
void AbortOptimization(BailoutReason reason) { |
@@ -542,10 +540,6 @@ class CompilationInfo { |
// Compilation mode flag and whether deoptimization is allowed. |
Mode mode_; |
BailoutId osr_ast_id_; |
- // The unoptimized code we patched for OSR may not be the shared code |
- // afterwards, since we may need to compile it again to include deoptimization |
- // data. Keep track which code we patched. |
- Handle<Code> unoptimized_code_; |
// Holds the bytecode array generated by the interpreter. |
// TODO(rmcilroy/mstarzinger): Temporary work-around until compiler.cc is |