| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 enum Status { | 417 enum Status { |
| 418 FAILED, BAILED_OUT, SUCCEEDED | 418 FAILED, BAILED_OUT, SUCCEEDED |
| 419 }; | 419 }; |
| 420 | 420 |
| 421 MUST_USE_RESULT Status CreateGraph(); | 421 MUST_USE_RESULT Status CreateGraph(); |
| 422 MUST_USE_RESULT Status OptimizeGraph(); | 422 MUST_USE_RESULT Status OptimizeGraph(); |
| 423 MUST_USE_RESULT Status GenerateAndInstallCode(); | 423 MUST_USE_RESULT Status GenerateAndInstallCode(); |
| 424 | 424 |
| 425 Status last_status() const { return last_status_; } | 425 Status last_status() const { return last_status_; } |
| 426 CompilationInfo* info() const { return info_; } | 426 CompilationInfo* info() const { return info_; } |
| 427 Isolate* isolate() const { return info()->isolate(); } |
| 427 | 428 |
| 428 MUST_USE_RESULT Status AbortOptimization() { | 429 MUST_USE_RESULT Status AbortOptimization() { |
| 429 info_->AbortOptimization(); | 430 info_->AbortOptimization(); |
| 430 info_->shared_info()->DisableOptimization(info_->bailout_reason()); | 431 info_->shared_info()->DisableOptimization(info_->bailout_reason()); |
| 431 return SetLastStatus(BAILED_OUT); | 432 return SetLastStatus(BAILED_OUT); |
| 432 } | 433 } |
| 433 | 434 |
| 434 private: | 435 private: |
| 435 CompilationInfo* info_; | 436 CompilationInfo* info_; |
| 436 TypeFeedbackOracle* oracle_; | 437 TypeFeedbackOracle* oracle_; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 531 |
| 531 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, | 532 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
| 532 CompilationInfo* info, | 533 CompilationInfo* info, |
| 533 Handle<SharedFunctionInfo> shared); | 534 Handle<SharedFunctionInfo> shared); |
| 534 }; | 535 }; |
| 535 | 536 |
| 536 | 537 |
| 537 } } // namespace v8::internal | 538 } } // namespace v8::internal |
| 538 | 539 |
| 539 #endif // V8_COMPILER_H_ | 540 #endif // V8_COMPILER_H_ |
| OLD | NEW |