| Index: src/compiler.h
|
| diff --git a/src/compiler.h b/src/compiler.h
|
| index 6d374d9d9d7823941119836f198a5ad849506dd4..9315a502afa2e6998d9324af025d93d4fd469659 100644
|
| --- a/src/compiler.h
|
| +++ b/src/compiler.h
|
| @@ -79,6 +79,7 @@ class CompilationInfo {
|
| ScriptDataImpl* pre_parse_data() const { return pre_parse_data_; }
|
| Handle<Context> context() const { return context_; }
|
| BailoutId osr_ast_id() const { return osr_ast_id_; }
|
| + int opt_count() const { return opt_count_; }
|
| int num_parameters() const;
|
| int num_heap_slots() const;
|
| Code::Flags flags() const;
|
| @@ -326,6 +327,10 @@ class CompilationInfo {
|
|
|
| int prologue_offset_;
|
|
|
| + // A copy of shared_info()->opt_count() to avoid handle deref
|
| + // during graph optimization.
|
| + int opt_count_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(CompilationInfo);
|
| };
|
|
|
|
|