diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-01-17 11:32:56 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-01-17 11:32:56 -0800 |
commit | cf2e4f44afbfb208c5976786c96ec963930323cc (patch) | |
tree | 7e9ddac16d51490f1428abb610afd02eda98aacf /deps/v8/src/compiler.h | |
parent | 082a4b6033df22a68518c58d320e86f688db7bda (diff) | |
download | node-new-cf2e4f44afbfb208c5976786c96ec963930323cc.tar.gz |
Upgrade V8 to 3.0.8
Diffstat (limited to 'deps/v8/src/compiler.h')
-rw-r--r-- | deps/v8/src/compiler.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/deps/v8/src/compiler.h b/deps/v8/src/compiler.h index 1176c6941a..68066aa67a 100644 --- a/deps/v8/src/compiler.h +++ b/deps/v8/src/compiler.h @@ -114,7 +114,7 @@ class CompilationInfo BASE_EMBEDDED { SetMode(OPTIMIZE); osr_ast_id_ = osr_ast_id; } - void DisableOptimization() { SetMode(NONOPT); } + void DisableOptimization(); // Deoptimization support. bool HasDeoptimizationSupport() const { return supports_deoptimization_; } @@ -125,9 +125,7 @@ class CompilationInfo BASE_EMBEDDED { // Determine whether or not we can adaptively optimize. bool AllowOptimize() { - return V8::UseCrankshaft() && - !closure_.is_null() && - function_->AllowOptimize(); + return V8::UseCrankshaft() && !closure_.is_null(); } private: |