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

Side by Side Diff: src/hydrogen.h

Issue 7170012: Crankshaft support for polymorphic array handling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comments; add implemention for ARM and x64 Created 9 years, 6 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/ast.cc ('k') | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 HValue* left, 891 HValue* left,
892 HValue* right); 892 HValue* right);
893 HInstruction* BuildIncrement(bool returns_original_input, 893 HInstruction* BuildIncrement(bool returns_original_input,
894 CountOperation* expr); 894 CountOperation* expr);
895 HLoadNamedField* BuildLoadNamedField(HValue* object, 895 HLoadNamedField* BuildLoadNamedField(HValue* object,
896 Property* expr, 896 Property* expr,
897 Handle<Map> type, 897 Handle<Map> type,
898 LookupResult* result, 898 LookupResult* result,
899 bool smi_and_map_check); 899 bool smi_and_map_check);
900 HInstruction* BuildLoadNamedGeneric(HValue* object, Property* expr); 900 HInstruction* BuildLoadNamedGeneric(HValue* object, Property* expr);
901 HInstruction* BuildLoadKeyedFastElement(HValue* object,
902 HValue* key,
903 Property* expr);
904 HInstruction* BuildLoadKeyedSpecializedArrayElement(HValue* object,
905 HValue* key,
906 Property* expr);
907 HInstruction* BuildLoadKeyedGeneric(HValue* object, 901 HInstruction* BuildLoadKeyedGeneric(HValue* object,
908 HValue* key); 902 HValue* key);
903 HInstruction* BuildExternalArrayElementAccess(
904 HValue* external_elements,
905 HValue* checked_key,
906 HValue* val,
907 JSObject::ElementsKind elements_kind,
908 bool is_store);
909 909
910 HInstruction* BuildLoadKeyed(HValue* obj, 910 HInstruction* BuildMonomorphicElementAccess(HValue* object,
911 HValue* key, 911 HValue* key,
912 Property* prop); 912 HValue* val,
913 Expression* expr,
914 bool is_store);
915 HValue* HandlePolymorphicElementAccess(HValue* object,
916 HValue* key,
917 HValue* val,
918 Expression* prop,
919 int ast_id,
920 int position,
921 bool is_store,
922 bool* has_side_effects);
923
924 HValue* HandleKeyedElementAccess(HValue* obj,
925 HValue* key,
926 HValue* val,
927 Expression* expr,
928 int ast_id,
929 int position,
930 bool is_store,
931 bool* has_side_effects);
913 932
914 HInstruction* BuildLoadNamed(HValue* object, 933 HInstruction* BuildLoadNamed(HValue* object,
915 Property* prop, 934 Property* prop,
916 Handle<Map> map, 935 Handle<Map> map,
917 Handle<String> name); 936 Handle<String> name);
918 HInstruction* BuildStoreNamed(HValue* object, 937 HInstruction* BuildStoreNamed(HValue* object,
919 HValue* value, 938 HValue* value,
920 Expression* expr); 939 Expression* expr);
921 HInstruction* BuildStoreNamedField(HValue* object, 940 HInstruction* BuildStoreNamedField(HValue* object,
922 Handle<String> name, 941 Handle<String> name,
923 HValue* value, 942 HValue* value,
924 Handle<Map> type, 943 Handle<Map> type,
925 LookupResult* lookup, 944 LookupResult* lookup,
926 bool smi_and_map_check); 945 bool smi_and_map_check);
927 HInstruction* BuildStoreNamedGeneric(HValue* object, 946 HInstruction* BuildStoreNamedGeneric(HValue* object,
928 Handle<String> name, 947 Handle<String> name,
929 HValue* value); 948 HValue* value);
930 HInstruction* BuildStoreKeyedGeneric(HValue* object, 949 HInstruction* BuildStoreKeyedGeneric(HValue* object,
931 HValue* key, 950 HValue* key,
932 HValue* value); 951 HValue* value);
933 952
934 HInstruction* BuildStoreKeyedFastElement(HValue* object,
935 HValue* key,
936 HValue* val,
937 Expression* expr);
938
939 HInstruction* BuildStoreKeyedSpecializedArrayElement(
940 HValue* object,
941 HValue* key,
942 HValue* val,
943 Expression* expr);
944
945 HInstruction* BuildStoreKeyed(HValue* object,
946 HValue* key,
947 HValue* value,
948 Expression* assignment);
949
950 HValue* BuildContextChainWalk(Variable* var); 953 HValue* BuildContextChainWalk(Variable* var);
951 954
952 void AddCheckConstantFunction(Call* expr, 955 void AddCheckConstantFunction(Call* expr,
953 HValue* receiver, 956 HValue* receiver,
954 Handle<Map> receiver_map, 957 Handle<Map> receiver_map,
955 bool smi_and_map_check); 958 bool smi_and_map_check);
956 959
957 Zone* zone() { return zone_; } 960 Zone* zone() { return zone_; }
958 961
959 // The translation state of the currently-being-translated function. 962 // The translation state of the currently-being-translated function.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 const char* filename_; 1200 const char* filename_;
1198 HeapStringAllocator string_allocator_; 1201 HeapStringAllocator string_allocator_;
1199 StringStream trace_; 1202 StringStream trace_;
1200 int indent_; 1203 int indent_;
1201 }; 1204 };
1202 1205
1203 1206
1204 } } // namespace v8::internal 1207 } } // namespace v8::internal
1205 1208
1206 #endif // V8_HYDROGEN_H_ 1209 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698