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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 CompilationInfo* info() const { return info_; } | 527 CompilationInfo* info() const { return info_; } |
528 Isolate* isolate() const { return info()->isolate(); } | 528 Isolate* isolate() const { return info()->isolate(); } |
529 | 529 |
530 MUST_USE_RESULT Status AbortOptimization() { | 530 MUST_USE_RESULT Status AbortOptimization() { |
531 info_->AbortOptimization(); | 531 info_->AbortOptimization(); |
532 info_->shared_info()->DisableOptimization(info_->bailout_reason()); | 532 info_->shared_info()->DisableOptimization(info_->bailout_reason()); |
533 return SetLastStatus(BAILED_OUT); | 533 return SetLastStatus(BAILED_OUT); |
534 } | 534 } |
535 | 535 |
536 void WaitForInstall() { | 536 void WaitForInstall() { |
537 ASSERT(!info_->osr_ast_id().IsNone()); | 537 ASSERT(info_->is_osr()); |
538 awaiting_install_ = true; | 538 awaiting_install_ = true; |
539 } | 539 } |
540 | 540 |
541 bool IsWaitingForInstall() { return awaiting_install_; } | 541 bool IsWaitingForInstall() { return awaiting_install_; } |
542 | 542 |
543 private: | 543 private: |
544 CompilationInfo* info_; | 544 CompilationInfo* info_; |
545 HOptimizedGraphBuilder* graph_builder_; | 545 HOptimizedGraphBuilder* graph_builder_; |
546 HGraph* graph_; | 546 HGraph* graph_; |
547 LChunk* chunk_; | 547 LChunk* chunk_; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 unsigned info_zone_start_allocation_size_; | 665 unsigned info_zone_start_allocation_size_; |
666 ElapsedTimer timer_; | 666 ElapsedTimer timer_; |
667 | 667 |
668 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 668 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
669 }; | 669 }; |
670 | 670 |
671 | 671 |
672 } } // namespace v8::internal | 672 } } // namespace v8::internal |
673 | 673 |
674 #endif // V8_COMPILER_H_ | 674 #endif // V8_COMPILER_H_ |
OLD | NEW |