| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 // return blocks. NULL in all other cases. | 642 // return blocks. NULL in all other cases. |
| 643 TestContext* test_context_; | 643 TestContext* test_context_; |
| 644 | 644 |
| 645 FunctionState* outer_; | 645 FunctionState* outer_; |
| 646 }; | 646 }; |
| 647 | 647 |
| 648 | 648 |
| 649 class HGraphBuilder: public AstVisitor { | 649 class HGraphBuilder: public AstVisitor { |
| 650 public: | 650 public: |
| 651 enum BreakType { BREAK, CONTINUE }; | 651 enum BreakType { BREAK, CONTINUE }; |
| 652 enum SwitchType { UNKNOWN_SWITCH, SMI_SWITCH, STRING_SWITCH }; |
| 652 | 653 |
| 653 // A class encapsulating (lazily-allocated) break and continue blocks for | 654 // A class encapsulating (lazily-allocated) break and continue blocks for |
| 654 // a breakable statement. Separated from BreakAndContinueScope so that it | 655 // a breakable statement. Separated from BreakAndContinueScope so that it |
| 655 // can have a separate lifetime. | 656 // can have a separate lifetime. |
| 656 class BreakAndContinueInfo BASE_EMBEDDED { | 657 class BreakAndContinueInfo BASE_EMBEDDED { |
| 657 public: | 658 public: |
| 658 explicit BreakAndContinueInfo(BreakableStatement* target) | 659 explicit BreakAndContinueInfo(BreakableStatement* target) |
| 659 : target_(target), break_block_(NULL), continue_block_(NULL) { | 660 : target_(target), break_block_(NULL), continue_block_(NULL) { |
| 660 } | 661 } |
| 661 | 662 |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1240 const char* filename_; | 1241 const char* filename_; |
| 1241 HeapStringAllocator string_allocator_; | 1242 HeapStringAllocator string_allocator_; |
| 1242 StringStream trace_; | 1243 StringStream trace_; |
| 1243 int indent_; | 1244 int indent_; |
| 1244 }; | 1245 }; |
| 1245 | 1246 |
| 1246 | 1247 |
| 1247 } } // namespace v8::internal | 1248 } } // namespace v8::internal |
| 1248 | 1249 |
| 1249 #endif // V8_HYDROGEN_H_ | 1250 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |