summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler.h')
-rw-r--r--deps/v8/src/compiler.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/deps/v8/src/compiler.h b/deps/v8/src/compiler.h
index f7ff09c57d..3bf4db5780 100644
--- a/deps/v8/src/compiler.h
+++ b/deps/v8/src/compiler.h
@@ -175,8 +175,10 @@ class CompilationInfo {
ASSERT(function_ == NULL);
function_ = literal;
}
- // When the scope is applied, we may have deferred work to do on the function.
- void PrepareForCompilation(Scope* scope);
+ void SetScope(Scope* scope) {
+ ASSERT(scope_ == NULL);
+ scope_ = scope;
+ }
void SetGlobalScope(Scope* global_scope) {
ASSERT(global_scope_ == NULL);
global_scope_ = global_scope;
@@ -227,7 +229,6 @@ class CompilationInfo {
SetMode(OPTIMIZE);
osr_ast_id_ = osr_ast_id;
unoptimized_code_ = unoptimized;
- optimization_id_ = isolate()->NextOptimizationId();
}
void DisableOptimization();
@@ -316,8 +317,6 @@ class CompilationInfo {
return osr_ast_id_ == osr_ast_id && function.is_identical_to(closure_);
}
- int optimization_id() const { return optimization_id_; }
-
protected:
CompilationInfo(Handle<Script> script,
Zone* zone);
@@ -453,8 +452,6 @@ class CompilationInfo {
Handle<Foreign> object_wrapper_;
- int optimization_id_;
-
DISALLOW_COPY_AND_ASSIGN(CompilationInfo);
};