Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: src/parser.h

Issue 10698167: Incorporate constness into inferred interfaces (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/interface.cc ('k') | src/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/interface.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698