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

Side by Side Diff: src/ast.h

Issue 6682025: Crankshaft support for StringCharFromCode. (Closed)
Patch Set: Ports Created 9 years, 9 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
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ast.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 enum Type { NORMAL, SYNTHETIC }; 1207 enum Type { NORMAL, SYNTHETIC };
1208 Property(Expression* obj, Expression* key, int pos, Type type = NORMAL) 1208 Property(Expression* obj, Expression* key, int pos, Type type = NORMAL)
1209 : obj_(obj), 1209 : obj_(obj),
1210 key_(key), 1210 key_(key),
1211 pos_(pos), 1211 pos_(pos),
1212 type_(type), 1212 type_(type),
1213 receiver_types_(NULL), 1213 receiver_types_(NULL),
1214 is_monomorphic_(false), 1214 is_monomorphic_(false),
1215 is_array_length_(false), 1215 is_array_length_(false),
1216 is_string_length_(false), 1216 is_string_length_(false),
1217 is_string_access_(false),
1217 is_function_prototype_(false), 1218 is_function_prototype_(false),
1218 is_arguments_access_(false) { } 1219 is_arguments_access_(false) { }
1219 1220
1220 DECLARE_NODE_TYPE(Property) 1221 DECLARE_NODE_TYPE(Property)
1221 1222
1222 virtual bool IsValidLeftHandSide() { return true; } 1223 virtual bool IsValidLeftHandSide() { return true; }
1223 virtual bool IsInlineable() const; 1224 virtual bool IsInlineable() const;
1224 1225
1225 Expression* obj() const { return obj_; } 1226 Expression* obj() const { return obj_; }
1226 Expression* key() const { return key_; } 1227 Expression* key() const { return key_; }
1227 int position() const { return pos_; } 1228 int position() const { return pos_; }
1228 bool is_synthetic() const { return type_ == SYNTHETIC; } 1229 bool is_synthetic() const { return type_ == SYNTHETIC; }
1229 1230
1230 bool IsStringLength() const { return is_string_length_; } 1231 bool IsStringLength() const { return is_string_length_; }
1232 bool IsStringAccess() const { return is_string_access_; }
1231 bool IsFunctionPrototype() const { return is_function_prototype_; } 1233 bool IsFunctionPrototype() const { return is_function_prototype_; }
1232 1234
1233 // Marks that this is actually an argument rewritten to a keyed property 1235 // Marks that this is actually an argument rewritten to a keyed property
1234 // accessing the argument through the arguments shadow object. 1236 // accessing the argument through the arguments shadow object.
1235 void set_is_arguments_access(bool is_arguments_access) { 1237 void set_is_arguments_access(bool is_arguments_access) {
1236 is_arguments_access_ = is_arguments_access; 1238 is_arguments_access_ = is_arguments_access;
1237 } 1239 }
1238 bool is_arguments_access() const { return is_arguments_access_; } 1240 bool is_arguments_access() const { return is_arguments_access_; }
1239 1241
1240 ExternalArrayType GetExternalArrayType() const { return array_type_; } 1242 ExternalArrayType GetExternalArrayType() const { return array_type_; }
(...skipping 17 matching lines...) Expand all
1258 private: 1260 private:
1259 Expression* obj_; 1261 Expression* obj_;
1260 Expression* key_; 1262 Expression* key_;
1261 int pos_; 1263 int pos_;
1262 Type type_; 1264 Type type_;
1263 1265
1264 ZoneMapList* receiver_types_; 1266 ZoneMapList* receiver_types_;
1265 bool is_monomorphic_ : 1; 1267 bool is_monomorphic_ : 1;
1266 bool is_array_length_ : 1; 1268 bool is_array_length_ : 1;
1267 bool is_string_length_ : 1; 1269 bool is_string_length_ : 1;
1270 bool is_string_access_ : 1;
1268 bool is_function_prototype_ : 1; 1271 bool is_function_prototype_ : 1;
1269 bool is_arguments_access_ : 1; 1272 bool is_arguments_access_ : 1;
1270 Handle<Map> monomorphic_receiver_type_; 1273 Handle<Map> monomorphic_receiver_type_;
1271 ExternalArrayType array_type_; 1274 ExternalArrayType array_type_;
1272 1275
1273 // Dummy property used during preparsing. 1276 // Dummy property used during preparsing.
1274 static Property this_property_; 1277 static Property this_property_;
1275 }; 1278 };
1276 1279
1277 1280
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
2182 AST_NODE_LIST(DEF_VISIT) 2185 AST_NODE_LIST(DEF_VISIT)
2183 #undef DEF_VISIT 2186 #undef DEF_VISIT
2184 2187
2185 private: 2188 private:
2186 bool stack_overflow_; 2189 bool stack_overflow_;
2187 }; 2190 };
2188 2191
2189 } } // namespace v8::internal 2192 } } // namespace v8::internal
2190 2193
2191 #endif // V8_AST_H_ 2194 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698