| Index: src/compiler.h
|
| diff --git a/src/compiler.h b/src/compiler.h
|
| index 47d459a28206252581c9d4c35a2b0f42228864e8..d9f0fefa850e723ccaaa84be2913453f13f18541 100644
|
| --- a/src/compiler.h
|
| +++ b/src/compiler.h
|
| @@ -235,9 +235,10 @@ class CompilationInfo {
|
| // Determines whether or not to insert a self-optimization header.
|
| bool ShouldSelfOptimize();
|
|
|
| - // Disable all optimization attempts of this info for the rest of the
|
| - // current compilation pipeline.
|
| - void AbortOptimization();
|
| + // Reset code to the unoptimized version when optimization is aborted.
|
| + void AbortOptimization() {
|
| + SetCode(handle(shared_info()->code()));
|
| + }
|
|
|
| void set_deferred_handles(DeferredHandles* deferred_handles) {
|
| ASSERT(deferred_handles_ == NULL);
|
|
|