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

Side by Side Diff: src/hydrogen.h

Issue 21499002: Get rid of HStringLength. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 HValue* object, 1230 HValue* object,
1231 HValue* key, 1231 HValue* key,
1232 HValue* val, 1232 HValue* val,
1233 HCheckMaps* mapcheck, 1233 HCheckMaps* mapcheck,
1234 bool is_js_array, 1234 bool is_js_array,
1235 ElementsKind elements_kind, 1235 ElementsKind elements_kind,
1236 bool is_store, 1236 bool is_store,
1237 LoadKeyedHoleMode load_mode, 1237 LoadKeyedHoleMode load_mode,
1238 KeyedAccessStoreMode store_mode); 1238 KeyedAccessStoreMode store_mode);
1239 1239
1240 HLoadNamedField* BuildLoadNamedField(
1241 HValue* object,
1242 HObjectAccess access);
1243
1244 HInstruction* AddExternalArrayElementAccess( 1240 HInstruction* AddExternalArrayElementAccess(
1245 HValue* external_elements, 1241 HValue* external_elements,
1246 HValue* checked_key, 1242 HValue* checked_key,
1247 HValue* val, 1243 HValue* val,
1248 HValue* dependency, 1244 HValue* dependency,
1249 ElementsKind elements_kind, 1245 ElementsKind elements_kind,
1250 bool is_store); 1246 bool is_store);
1251 1247
1252 HInstruction* AddFastElementAccess( 1248 HInstruction* AddFastElementAccess(
1253 HValue* elements, 1249 HValue* elements,
1254 HValue* checked_key, 1250 HValue* checked_key,
1255 HValue* val, 1251 HValue* val,
1256 HValue* dependency, 1252 HValue* dependency,
1257 ElementsKind elements_kind, 1253 ElementsKind elements_kind,
1258 bool is_store, 1254 bool is_store,
1259 LoadKeyedHoleMode load_mode, 1255 LoadKeyedHoleMode load_mode,
1260 KeyedAccessStoreMode store_mode); 1256 KeyedAccessStoreMode store_mode);
1261 1257
1258 HLoadNamedField* BuildLoadNamedField(
1259 HValue* object,
1260 HObjectAccess access,
1261 HValue* typecheck = NULL);
1262 HInstruction* BuildLoadStringLength(HValue* object, HValue* typecheck = NULL);
1262 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>); 1263 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>);
1263 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL); 1264 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL);
1264 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); 1265 HLoadNamedField* AddLoadFixedArrayLength(HValue *object);
1265 1266
1266 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); 1267 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin);
1267 1268
1268 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected); 1269 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected);
1269 1270
1270 void PushAndAdd(HInstruction* instr); 1271 void PushAndAdd(HInstruction* instr);
1271 1272
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
2325 EmbeddedVector<char, 64> filename_; 2326 EmbeddedVector<char, 64> filename_;
2326 HeapStringAllocator string_allocator_; 2327 HeapStringAllocator string_allocator_;
2327 StringStream trace_; 2328 StringStream trace_;
2328 int indent_; 2329 int indent_;
2329 }; 2330 };
2330 2331
2331 2332
2332 } } // namespace v8::internal 2333 } } // namespace v8::internal
2333 2334
2334 #endif // V8_HYDROGEN_H_ 2335 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698