OLD | NEW |
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 19 matching lines...) Expand all Loading... |
30 #include "ast.h" | 30 #include "ast.h" |
31 #include "scopes.h" | 31 #include "scopes.h" |
32 | 32 |
33 namespace v8 { namespace internal { | 33 namespace v8 { namespace internal { |
34 | 34 |
35 | 35 |
36 VariableProxySentinel VariableProxySentinel::this_proxy_(true); | 36 VariableProxySentinel VariableProxySentinel::this_proxy_(true); |
37 VariableProxySentinel VariableProxySentinel::identifier_proxy_(false); | 37 VariableProxySentinel VariableProxySentinel::identifier_proxy_(false); |
38 ValidLeftHandSideSentinel ValidLeftHandSideSentinel::instance_; | 38 ValidLeftHandSideSentinel ValidLeftHandSideSentinel::instance_; |
39 Property Property::this_property_(VariableProxySentinel::this_proxy(), NULL, 0); | 39 Property Property::this_property_(VariableProxySentinel::this_proxy(), NULL, 0); |
40 Call Call::sentinel_(NULL, NULL, false, 0); | 40 Call Call::sentinel_(NULL, NULL, Call::ALIASED, 0); |
41 | 41 |
42 | 42 |
43 // ---------------------------------------------------------------------------- | 43 // ---------------------------------------------------------------------------- |
44 // All the Accept member functions for each syntax tree node type. | 44 // All the Accept member functions for each syntax tree node type. |
45 | 45 |
46 #define DECL_ACCEPT(type) \ | 46 #define DECL_ACCEPT(type) \ |
47 void type::Accept(Visitor* v) { \ | 47 void type::Accept(Visitor* v) { \ |
48 if (v->CheckStackOverflow()) return; \ | 48 if (v->CheckStackOverflow()) return; \ |
49 v->Visit##type(this); \ | 49 v->Visit##type(this); \ |
50 } | 50 } |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // to this code. Maybe this should be handled by introducing an | 173 // to this code. Maybe this should be handled by introducing an |
174 // undefined expression or literal? Revisit this code if this | 174 // undefined expression or literal? Revisit this code if this |
175 // changes | 175 // changes |
176 Expression* expression = expressions->at(i); | 176 Expression* expression = expressions->at(i); |
177 if (expression != NULL) Visit(expression); | 177 if (expression != NULL) Visit(expression); |
178 } | 178 } |
179 } | 179 } |
180 | 180 |
181 | 181 |
182 } } // namespace v8::internal | 182 } } // namespace v8::internal |
OLD | NEW |