| 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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 | 674 |
| 675 bool TargetStackContainsLabel(Handle<String> label); | 675 bool TargetStackContainsLabel(Handle<String> label); |
| 676 BreakableStatement* LookupBreakTarget(Handle<String> label, bool* ok); | 676 BreakableStatement* LookupBreakTarget(Handle<String> label, bool* ok); |
| 677 IterationStatement* LookupContinueTarget(Handle<String> label, bool* ok); | 677 IterationStatement* LookupContinueTarget(Handle<String> label, bool* ok); |
| 678 | 678 |
| 679 void RegisterTargetUse(Label* target, Target* stop); | 679 void RegisterTargetUse(Label* target, Target* stop); |
| 680 | 680 |
| 681 // Factory methods. | 681 // Factory methods. |
| 682 | 682 |
| 683 Statement* EmptyStatement() { | 683 Statement* EmptyStatement() { |
| 684 static v8::internal::EmptyStatement empty; | 684 static v8::internal::EmptyStatement* empty = |
| 685 return ∅ | 685 ::new v8::internal::EmptyStatement(); |
| 686 return empty; |
| 686 } | 687 } |
| 687 | 688 |
| 688 Scope* NewScope(Scope* parent, ScopeType type); | 689 Scope* NewScope(Scope* parent, ScopeType type); |
| 689 | 690 |
| 690 Handle<String> LookupSymbol(int symbol_id); | 691 Handle<String> LookupSymbol(int symbol_id); |
| 691 | 692 |
| 692 Handle<String> LookupCachedSymbol(int symbol_id); | 693 Handle<String> LookupCachedSymbol(int symbol_id); |
| 693 | 694 |
| 694 Expression* NewCall(Expression* expression, | 695 Expression* NewCall(Expression* expression, |
| 695 ZoneList<Expression*>* arguments, | 696 ZoneList<Expression*>* arguments, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 private: | 778 private: |
| 778 static const int kTypeSlot = 0; | 779 static const int kTypeSlot = 0; |
| 779 static const int kElementsSlot = 1; | 780 static const int kElementsSlot = 1; |
| 780 | 781 |
| 781 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 782 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 782 }; | 783 }; |
| 783 | 784 |
| 784 } } // namespace v8::internal | 785 } } // namespace v8::internal |
| 785 | 786 |
| 786 #endif // V8_PARSER_H_ | 787 #endif // V8_PARSER_H_ |
| OLD | NEW |