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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 | 402 |
403 Expression* expression() { return expression_; } | 403 Expression* expression() { return expression_; } |
404 | 404 |
405 private: | 405 private: |
406 Expression* expression_; | 406 Expression* expression_; |
407 }; | 407 }; |
408 | 408 |
409 | 409 |
410 class WithEnterStatement: public Statement { | 410 class WithEnterStatement: public Statement { |
411 public: | 411 public: |
412 explicit WithEnterStatement(Expression* expression) | 412 explicit WithEnterStatement(Expression* expression, bool is_catch_block) |
413 : expression_(expression) { } | 413 : expression_(expression), is_catch_block_(is_catch_block) { } |
414 | 414 |
415 virtual void Accept(AstVisitor* v); | 415 virtual void Accept(AstVisitor* v); |
416 | 416 |
417 Expression* expression() const { return expression_; } | 417 Expression* expression() const { return expression_; } |
418 | 418 |
| 419 bool is_catch_block() const { return is_catch_block_; } |
| 420 |
419 private: | 421 private: |
420 Expression* expression_; | 422 Expression* expression_; |
| 423 bool is_catch_block_; |
421 }; | 424 }; |
422 | 425 |
423 | 426 |
424 class WithExitStatement: public Statement { | 427 class WithExitStatement: public Statement { |
425 public: | 428 public: |
426 WithExitStatement() { } | 429 WithExitStatement() { } |
427 | 430 |
428 virtual void Accept(AstVisitor* v); | 431 virtual void Accept(AstVisitor* v); |
429 }; | 432 }; |
430 | 433 |
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1500 #undef DEF_VISIT | 1503 #undef DEF_VISIT |
1501 | 1504 |
1502 private: | 1505 private: |
1503 bool stack_overflow_; | 1506 bool stack_overflow_; |
1504 }; | 1507 }; |
1505 | 1508 |
1506 | 1509 |
1507 } } // namespace v8::internal | 1510 } } // namespace v8::internal |
1508 | 1511 |
1509 #endif // V8_AST_H_ | 1512 #endif // V8_AST_H_ |
OLD | NEW |