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

Side by Side Diff: src/hydrogen.h

Issue 10801013: Preparatory refactoring-only steps for inlining accessors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 8 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/ast.h ('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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 bool TryInline(CallKind call_kind, 1033 bool TryInline(CallKind call_kind,
1034 Handle<JSFunction> target, 1034 Handle<JSFunction> target,
1035 int arguments_count, 1035 int arguments_count,
1036 HValue* receiver, 1036 HValue* receiver,
1037 int ast_id, 1037 int ast_id,
1038 int return_id, 1038 int return_id,
1039 ReturnHandlingFlag return_handling); 1039 ReturnHandlingFlag return_handling);
1040 1040
1041 bool TryInlineCall(Call* expr, bool drop_extra = false); 1041 bool TryInlineCall(Call* expr, bool drop_extra = false);
1042 bool TryInlineConstruct(CallNew* expr, HValue* receiver); 1042 bool TryInlineConstruct(CallNew* expr, HValue* receiver);
1043 bool TryInlineGetter(Handle<JSFunction> getter,
1044 int ast_id,
1045 int return_id);
1046 bool TryInlineSetter(Handle<JSFunction> setter,
1047 int ast_id,
1048 int return_id);
1043 bool TryInlineBuiltinMethodCall(Call* expr, 1049 bool TryInlineBuiltinMethodCall(Call* expr,
1044 HValue* receiver, 1050 HValue* receiver,
1045 Handle<Map> receiver_map, 1051 Handle<Map> receiver_map,
1046 CheckType check_type); 1052 CheckType check_type);
1047 bool TryInlineBuiltinFunctionCall(Call* expr, bool drop_extra); 1053 bool TryInlineBuiltinFunctionCall(Call* expr, bool drop_extra);
1048 1054
1049 // If --trace-inlining, print a line of the inlining trace. Inlining 1055 // If --trace-inlining, print a line of the inlining trace. Inlining
1050 // succeeded if the reason string is NULL and failed if there is a 1056 // succeeded if the reason string is NULL and failed if there is a
1051 // non-NULL reason string. 1057 // non-NULL reason string.
1052 void TraceInline(Handle<JSFunction> target, 1058 void TraceInline(Handle<JSFunction> target,
(...skipping 29 matching lines...) Expand all
1082 1088
1083 HStringCharCodeAt* BuildStringCharCodeAt(HValue* context, 1089 HStringCharCodeAt* BuildStringCharCodeAt(HValue* context,
1084 HValue* string, 1090 HValue* string,
1085 HValue* index); 1091 HValue* index);
1086 HInstruction* BuildBinaryOperation(BinaryOperation* expr, 1092 HInstruction* BuildBinaryOperation(BinaryOperation* expr,
1087 HValue* left, 1093 HValue* left,
1088 HValue* right); 1094 HValue* right);
1089 HInstruction* BuildIncrement(bool returns_original_input, 1095 HInstruction* BuildIncrement(bool returns_original_input,
1090 CountOperation* expr); 1096 CountOperation* expr);
1091 HLoadNamedField* BuildLoadNamedField(HValue* object, 1097 HLoadNamedField* BuildLoadNamedField(HValue* object,
1092 Property* expr, 1098 Handle<Map> map,
1093 Handle<Map> type,
1094 LookupResult* result, 1099 LookupResult* result,
1095 bool smi_and_map_check); 1100 bool smi_and_map_check);
1096 HInstruction* BuildLoadNamedGeneric(HValue* object, Property* expr); 1101 HInstruction* BuildLoadNamedGeneric(HValue* object,
1097 HInstruction* BuildLoadKeyedGeneric(HValue* object, 1102 Handle<String> name,
1098 HValue* key); 1103 Property* expr);
1104 HInstruction* BuildLoadKeyedGeneric(HValue* object, HValue* key);
1099 HInstruction* BuildExternalArrayElementAccess( 1105 HInstruction* BuildExternalArrayElementAccess(
1100 HValue* external_elements, 1106 HValue* external_elements,
1101 HValue* checked_key, 1107 HValue* checked_key,
1102 HValue* val, 1108 HValue* val,
1103 HValue* dependency, 1109 HValue* dependency,
1104 ElementsKind elements_kind, 1110 ElementsKind elements_kind,
1105 bool is_store); 1111 bool is_store);
1106 HInstruction* BuildFastElementAccess(HValue* elements, 1112 HInstruction* BuildFastElementAccess(HValue* elements,
1107 HValue* checked_key, 1113 HValue* checked_key,
1108 HValue* val, 1114 HValue* val,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 HValue* HandleKeyedElementAccess(HValue* obj, 1147 HValue* HandleKeyedElementAccess(HValue* obj,
1142 HValue* key, 1148 HValue* key,
1143 HValue* val, 1149 HValue* val,
1144 Expression* expr, 1150 Expression* expr,
1145 int ast_id, 1151 int ast_id,
1146 int position, 1152 int position,
1147 bool is_store, 1153 bool is_store,
1148 bool* has_side_effects); 1154 bool* has_side_effects);
1149 1155
1150 HInstruction* BuildCallGetter(HValue* obj, 1156 HInstruction* BuildCallGetter(HValue* obj,
1151 Property* expr,
1152 Handle<Map> map, 1157 Handle<Map> map,
1153 Handle<Object> callback, 1158 Handle<AccessorPair> accessors,
1154 Handle<JSObject> holder); 1159 Handle<JSObject> holder);
1160 bool LookupAccessorPair(Handle<Map> map,
1161 Handle<String> name,
1162 Handle<AccessorPair>* accessors,
1163 Handle<JSObject>* holder);
1155 HInstruction* BuildLoadNamed(HValue* object, 1164 HInstruction* BuildLoadNamed(HValue* object,
1156 Property* prop, 1165 Handle<String> name,
1157 Handle<Map> map, 1166 Property* expr,
1158 Handle<String> name); 1167 Handle<Map> map);
1159 HInstruction* BuildCallSetter(HValue* object, 1168 HInstruction* BuildCallSetter(HValue* object,
1169 HValue* value,
1170 Handle<Map> map,
1171 Handle<AccessorPair> accessors,
1172 Handle<JSObject> holder);
1173 HInstruction* BuildStoreNamed(HValue* object,
1160 Handle<String> name, 1174 Handle<String> name,
1161 HValue* value, 1175 HValue* value,
1162 Handle<Map> map, 1176 Handle<Map> map);
1163 Handle<Object> callback,
1164 Handle<JSObject> holder);
1165 HInstruction* BuildStoreNamed(HValue* object,
1166 HValue* value,
1167 Handle<Map> type,
1168 Expression* key);
1169 HInstruction* BuildStoreNamedField(HValue* object, 1177 HInstruction* BuildStoreNamedField(HValue* object,
1170 Handle<String> name, 1178 Handle<String> name,
1171 HValue* value, 1179 HValue* value,
1172 Handle<Map> type, 1180 Handle<Map> map,
1173 LookupResult* lookup, 1181 LookupResult* lookup,
1174 bool smi_and_map_check); 1182 bool smi_and_map_check);
1175 HInstruction* BuildStoreNamedGeneric(HValue* object, 1183 HInstruction* BuildStoreNamedGeneric(HValue* object,
1176 Handle<String> name, 1184 Handle<String> name,
1177 HValue* value); 1185 HValue* value);
1178 HInstruction* BuildStoreKeyedGeneric(HValue* object, 1186 HInstruction* BuildStoreKeyedGeneric(HValue* object,
1179 HValue* key, 1187 HValue* key,
1180 HValue* value); 1188 HValue* value);
1181 1189
1182 HValue* BuildContextChainWalk(Variable* var); 1190 HValue* BuildContextChainWalk(Variable* var);
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1458 const char* filename_; 1466 const char* filename_;
1459 HeapStringAllocator string_allocator_; 1467 HeapStringAllocator string_allocator_;
1460 StringStream trace_; 1468 StringStream trace_;
1461 int indent_; 1469 int indent_;
1462 }; 1470 };
1463 1471
1464 1472
1465 } } // namespace v8::internal 1473 } } // namespace v8::internal
1466 1474
1467 #endif // V8_HYDROGEN_H_ 1475 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698