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

Side by Side Diff: src/ast.h

Issue 159783: Removed some comments which did not make any sense (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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 | « no previous file | src/variables.h » ('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 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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 814
815 bool IsVariable(Handle<String> n) { 815 bool IsVariable(Handle<String> n) {
816 return !is_this() && name().is_identical_to(n); 816 return !is_this() && name().is_identical_to(n);
817 } 817 }
818 818
819 bool IsArguments() { 819 bool IsArguments() {
820 Variable* variable = AsVariable(); 820 Variable* variable = AsVariable();
821 return (variable == NULL) ? false : variable->is_arguments(); 821 return (variable == NULL) ? false : variable->is_arguments();
822 } 822 }
823 823
824 // If this assertion fails it means that some code has tried to
825 // treat the special "this" variable as an ordinary variable with
826 // the name "this".
827 Handle<String> name() const { return name_; } 824 Handle<String> name() const { return name_; }
828 Variable* var() const { return var_; } 825 Variable* var() const { return var_; }
829 UseCount* var_uses() { return &var_uses_; } 826 UseCount* var_uses() { return &var_uses_; }
830 UseCount* obj_uses() { return &obj_uses_; } 827 UseCount* obj_uses() { return &obj_uses_; }
831 bool is_this() const { return is_this_; } 828 bool is_this() const { return is_this_; }
832 bool inside_with() const { return inside_with_; } 829 bool inside_with() const { return inside_with_; }
833 830
834 // Bind this proxy to the variable var. 831 // Bind this proxy to the variable var.
835 void BindTo(Variable* var); 832 void BindTo(Variable* var);
836 833
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 #undef DEF_VISIT 1708 #undef DEF_VISIT
1712 1709
1713 private: 1710 private:
1714 bool stack_overflow_; 1711 bool stack_overflow_;
1715 }; 1712 };
1716 1713
1717 1714
1718 } } // namespace v8::internal 1715 } } // namespace v8::internal
1719 1716
1720 #endif // V8_AST_H_ 1717 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/variables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698