| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 // function g() { { var x; let x; } } | 764 // function g() { { var x; let x; } } |
| 765 // | 765 // |
| 766 // The var declarations are hoisted to the function scope, but originate from | 766 // The var declarations are hoisted to the function scope, but originate from |
| 767 // a scope where the name has also been let bound or the var declaration is | 767 // a scope where the name has also been let bound or the var declaration is |
| 768 // hoisted over such a scope. | 768 // hoisted over such a scope. |
| 769 void CheckConflictingVarDeclarations(Scope* scope, bool* ok); | 769 void CheckConflictingVarDeclarations(Scope* scope, bool* ok); |
| 770 | 770 |
| 771 // Parser support | 771 // Parser support |
| 772 VariableProxy* NewUnresolved(Handle<String> name, | 772 VariableProxy* NewUnresolved(Handle<String> name, |
| 773 VariableMode mode, | 773 VariableMode mode, |
| 774 Interface* interface = Interface::NewValue()); | 774 Interface* interface); |
| 775 void Declare(Declaration* declaration, bool resolve, bool* ok); | 775 void Declare(Declaration* declaration, bool resolve, bool* ok); |
| 776 | 776 |
| 777 bool TargetStackContainsLabel(Handle<String> label); | 777 bool TargetStackContainsLabel(Handle<String> label); |
| 778 BreakableStatement* LookupBreakTarget(Handle<String> label, bool* ok); | 778 BreakableStatement* LookupBreakTarget(Handle<String> label, bool* ok); |
| 779 IterationStatement* LookupContinueTarget(Handle<String> label, bool* ok); | 779 IterationStatement* LookupContinueTarget(Handle<String> label, bool* ok); |
| 780 | 780 |
| 781 void RegisterTargetUse(Label* target, Target* stop); | 781 void RegisterTargetUse(Label* target, Target* stop); |
| 782 | 782 |
| 783 // Factory methods. | 783 // Factory methods. |
| 784 | 784 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 private: | 871 private: |
| 872 static const int kTypeSlot = 0; | 872 static const int kTypeSlot = 0; |
| 873 static const int kElementsSlot = 1; | 873 static const int kElementsSlot = 1; |
| 874 | 874 |
| 875 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 875 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 876 }; | 876 }; |
| 877 | 877 |
| 878 } } // namespace v8::internal | 878 } } // namespace v8::internal |
| 879 | 879 |
| 880 #endif // V8_PARSER_H_ | 880 #endif // V8_PARSER_H_ |
| OLD | NEW |