| 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 // fail, bail-out to the full code generator or succeed. Apart from | 506 // fail, bail-out to the full code generator or succeed. Apart from |
| 507 // their return value, the status of the phase last run can be checked | 507 // their return value, the status of the phase last run can be checked |
| 508 // using last_status(). | 508 // using last_status(). |
| 509 class RecompileJob: public ZoneObject { | 509 class RecompileJob: public ZoneObject { |
| 510 public: | 510 public: |
| 511 explicit RecompileJob(CompilationInfo* info) | 511 explicit RecompileJob(CompilationInfo* info) |
| 512 : info_(info), | 512 : info_(info), |
| 513 graph_builder_(NULL), | 513 graph_builder_(NULL), |
| 514 graph_(NULL), | 514 graph_(NULL), |
| 515 chunk_(NULL), | 515 chunk_(NULL), |
| 516 last_status_(FAILED) { } | 516 last_status_(FAILED), |
| 517 awaiting_install_(false) { } |
| 517 | 518 |
| 518 enum Status { | 519 enum Status { |
| 519 FAILED, BAILED_OUT, SUCCEEDED | 520 FAILED, BAILED_OUT, SUCCEEDED |
| 520 }; | 521 }; |
| 521 | 522 |
| 522 MUST_USE_RESULT Status CreateGraph(); | 523 MUST_USE_RESULT Status CreateGraph(); |
| 523 MUST_USE_RESULT Status OptimizeGraph(); | 524 MUST_USE_RESULT Status OptimizeGraph(); |
| 524 MUST_USE_RESULT Status GenerateAndInstallCode(); | 525 MUST_USE_RESULT Status GenerateAndInstallCode(); |
| 525 | 526 |
| 526 Status last_status() const { return last_status_; } | 527 Status last_status() const { return last_status_; } |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 unsigned info_zone_start_allocation_size_; | 666 unsigned info_zone_start_allocation_size_; |
| 666 ElapsedTimer timer_; | 667 ElapsedTimer timer_; |
| 667 | 668 |
| 668 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 669 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 669 }; | 670 }; |
| 670 | 671 |
| 671 | 672 |
| 672 } } // namespace v8::internal | 673 } } // namespace v8::internal |
| 673 | 674 |
| 674 #endif // V8_COMPILER_H_ | 675 #endif // V8_COMPILER_H_ |
| OLD | NEW |