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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // Get the value as a compile time value. | 181 // Get the value as a compile time value. |
182 static Handle<FixedArray> GetValue(Expression* expression); | 182 static Handle<FixedArray> GetValue(Expression* expression); |
183 | 183 |
184 // Get the type of a compile time value returned by GetValue(). | 184 // Get the type of a compile time value returned by GetValue(). |
185 static Type GetType(Handle<FixedArray> value); | 185 static Type GetType(Handle<FixedArray> value); |
186 | 186 |
187 // Get the elements array of a compile time value returned by GetValue(). | 187 // Get the elements array of a compile time value returned by GetValue(). |
188 static Handle<FixedArray> GetElements(Handle<FixedArray> value); | 188 static Handle<FixedArray> GetElements(Handle<FixedArray> value); |
189 | 189 |
190 private: | 190 private: |
191 static const int kTypeSlot = 0; | 191 static const int kTypeSlot = 0; |
192 static const int kElementsSlot = 1; | 192 static const int kElementsSlot = 1; |
193 | 193 |
194 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 194 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
195 }; | 195 }; |
196 | 196 |
197 | 197 |
198 } } // namespace v8::internal | 198 } } // namespace v8::internal |
199 | 199 |
200 #endif // V8_PARSER_H_ | 200 #endif // V8_PARSER_H_ |
OLD | NEW |