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

Side by Side Diff: src/rewriter.cc

Issue 3427021: Fix some inconsistent formatting. (Closed)
Patch Set: Created 10 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
« no previous file with comments | « src/parser.cc ('k') | src/scanner.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 class Processor: public AstVisitor { 685 class Processor: public AstVisitor {
686 public: 686 public:
687 explicit Processor(VariableProxy* result) 687 explicit Processor(VariableProxy* result)
688 : result_(result), 688 : result_(result),
689 result_assigned_(false), 689 result_assigned_(false),
690 is_set_(false), 690 is_set_(false),
691 in_try_(false) { 691 in_try_(false) {
692 } 692 }
693 693
694 void Process(ZoneList<Statement*>* statements); 694 void Process(ZoneList<Statement*>* statements);
695 bool result_assigned() const { return result_assigned_; } 695 bool result_assigned() const { return result_assigned_; }
696 696
697 private: 697 private:
698 VariableProxy* result_; 698 VariableProxy* result_;
699 699
700 // We are not tracking result usage via the result_'s use 700 // We are not tracking result usage via the result_'s use
701 // counts (we leave the accurate computation to the 701 // counts (we leave the accurate computation to the
702 // usage analyzer). Instead we simple remember if 702 // usage analyzer). Instead we simple remember if
703 // there was ever an assignment to result_. 703 // there was ever an assignment to result_.
704 bool result_assigned_; 704 bool result_assigned_;
705 705
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 optimizer.Optimize(body); 1013 optimizer.Optimize(body);
1014 if (optimizer.HasStackOverflow()) { 1014 if (optimizer.HasStackOverflow()) {
1015 return false; 1015 return false;
1016 } 1016 }
1017 } 1017 }
1018 return true; 1018 return true;
1019 } 1019 }
1020 1020
1021 1021
1022 } } // namespace v8::internal 1022 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/scanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698