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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 | 64 |
65 void SetAsLikelySmiIfUnknown() { | 65 void SetAsLikelySmiIfUnknown() { |
66 if (IsUnknown()) { | 66 if (IsUnknown()) { |
67 SetAsLikelySmi(); | 67 SetAsLikelySmi(); |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 private: | 71 private: |
72 Kind kind_; | 72 Kind kind_; |
73 | |
74 DISALLOW_COPY_AND_ASSIGN(StaticType); | |
75 }; | 73 }; |
76 | 74 |
77 | 75 |
78 // The AST refers to variables via VariableProxies - placeholders for the actual | 76 // The AST refers to variables via VariableProxies - placeholders for the actual |
79 // variables. Variables themselves are never directly referred to from the AST, | 77 // variables. Variables themselves are never directly referred to from the AST, |
80 // they are maintained by scopes, and referred to from VariableProxies and Slots | 78 // they are maintained by scopes, and referred to from VariableProxies and Slots |
81 // after binding and variable allocation. | 79 // after binding and variable allocation. |
82 | 80 |
83 class Variable: public ZoneObject { | 81 class Variable: public ZoneObject { |
84 public: | 82 public: |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 // rewrite_ is usually a Slot or a Property, but may be any expression. | 196 // rewrite_ is usually a Slot or a Property, but may be any expression. |
199 Expression* rewrite_; | 197 Expression* rewrite_; |
200 | 198 |
201 friend class Scope; // Has explicit access to rewrite_. | 199 friend class Scope; // Has explicit access to rewrite_. |
202 }; | 200 }; |
203 | 201 |
204 | 202 |
205 } } // namespace v8::internal | 203 } } // namespace v8::internal |
206 | 204 |
207 #endif // V8_VARIABLES_H_ | 205 #endif // V8_VARIABLES_H_ |
OLD | NEW |