| OLD | NEW |
| 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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 | 645 |
| 646 | 646 |
| 647 class TryCatchStatement: public TryStatement { | 647 class TryCatchStatement: public TryStatement { |
| 648 public: | 648 public: |
| 649 TryCatchStatement(Block* try_block, | 649 TryCatchStatement(Block* try_block, |
| 650 VariableProxy* catch_var, | 650 VariableProxy* catch_var, |
| 651 Block* catch_block) | 651 Block* catch_block) |
| 652 : TryStatement(try_block), | 652 : TryStatement(try_block), |
| 653 catch_var_(catch_var), | 653 catch_var_(catch_var), |
| 654 catch_block_(catch_block) { | 654 catch_block_(catch_block) { |
| 655 ASSERT(catch_var->AsVariableProxy() != NULL); | |
| 656 } | 655 } |
| 657 | 656 |
| 658 virtual void Accept(AstVisitor* v); | 657 virtual void Accept(AstVisitor* v); |
| 659 | 658 |
| 660 VariableProxy* catch_var() const { return catch_var_; } | 659 VariableProxy* catch_var() const { return catch_var_; } |
| 661 Block* catch_block() const { return catch_block_; } | 660 Block* catch_block() const { return catch_block_; } |
| 662 | 661 |
| 663 private: | 662 private: |
| 664 VariableProxy* catch_var_; | 663 VariableProxy* catch_var_; |
| 665 Block* catch_block_; | 664 Block* catch_block_; |
| (...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1809 #undef DEF_VISIT | 1808 #undef DEF_VISIT |
| 1810 | 1809 |
| 1811 private: | 1810 private: |
| 1812 bool stack_overflow_; | 1811 bool stack_overflow_; |
| 1813 }; | 1812 }; |
| 1814 | 1813 |
| 1815 | 1814 |
| 1816 } } // namespace v8::internal | 1815 } } // namespace v8::internal |
| 1817 | 1816 |
| 1818 #endif // V8_AST_H_ | 1817 #endif // V8_AST_H_ |
| OLD | NEW |