Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: src/compiler.h

Issue 25279002: Initialize flag before usage. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698