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

Side by Side Diff: src/hydrogen.h

Issue 10692043: Consolidate similar KeyedLoads to worst case instead of transitioning elements (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Whitespace and comment tweaks Created 8 years, 5 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 | « no previous file | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')
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 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 HValue* checked_key, 1094 HValue* checked_key,
1095 HValue* val, 1095 HValue* val,
1096 ElementsKind elements_kind, 1096 ElementsKind elements_kind,
1097 bool is_store); 1097 bool is_store);
1098 HInstruction* BuildFastElementAccess(HValue* elements, 1098 HInstruction* BuildFastElementAccess(HValue* elements,
1099 HValue* checked_key, 1099 HValue* checked_key,
1100 HValue* val, 1100 HValue* val,
1101 ElementsKind elements_kind, 1101 ElementsKind elements_kind,
1102 bool is_store); 1102 bool is_store);
1103 1103
1104 HInstruction* TryBuildConsolidatedElementLoad(HValue* object,
1105 HValue* key,
1106 HValue* val,
1107 SmallMapList* maps);
1108
1109 HInstruction* BuildUncheckedMonomorphicElementAccess(HValue* object,
1110 HValue* key,
1111 HValue* val,
1112 HCheckMaps* mapcheck,
1113 Handle<Map> map,
1114 bool is_store);
1115
1104 HInstruction* BuildMonomorphicElementAccess(HValue* object, 1116 HInstruction* BuildMonomorphicElementAccess(HValue* object,
1105 HValue* key, 1117 HValue* key,
1106 HValue* val, 1118 HValue* val,
1107 HValue* dependency, 1119 HValue* dependency,
1108 Handle<Map> map, 1120 Handle<Map> map,
1109 bool is_store); 1121 bool is_store);
1122
1110 HValue* HandlePolymorphicElementAccess(HValue* object, 1123 HValue* HandlePolymorphicElementAccess(HValue* object,
1111 HValue* key, 1124 HValue* key,
1112 HValue* val, 1125 HValue* val,
1113 Expression* prop, 1126 Expression* prop,
1114 int ast_id, 1127 int ast_id,
1115 int position, 1128 int position,
1116 bool is_store, 1129 bool is_store,
1117 bool* has_side_effects); 1130 bool* has_side_effects);
1118 1131
1119 HValue* HandleKeyedElementAccess(HValue* obj, 1132 HValue* HandleKeyedElementAccess(HValue* obj,
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 const char* filename_; 1440 const char* filename_;
1428 HeapStringAllocator string_allocator_; 1441 HeapStringAllocator string_allocator_;
1429 StringStream trace_; 1442 StringStream trace_;
1430 int indent_; 1443 int indent_;
1431 }; 1444 };
1432 1445
1433 1446
1434 } } // namespace v8::internal 1447 } } // namespace v8::internal
1435 1448
1436 #endif // V8_HYDROGEN_H_ 1449 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698