OLD | NEW |
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 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 HCheckMaps* mapcheck, | 1071 HCheckMaps* mapcheck, |
1072 bool is_js_array, | 1072 bool is_js_array, |
1073 ElementsKind elements_kind, | 1073 ElementsKind elements_kind, |
1074 bool is_store, | 1074 bool is_store, |
1075 LoadKeyedHoleMode load_mode, | 1075 LoadKeyedHoleMode load_mode, |
1076 KeyedAccessStoreMode store_mode); | 1076 KeyedAccessStoreMode store_mode); |
1077 | 1077 |
1078 HLoadNamedField* AddLoad( | 1078 HLoadNamedField* AddLoad( |
1079 HValue *object, | 1079 HValue *object, |
1080 HObjectAccess access, | 1080 HObjectAccess access, |
1081 HValue *typecheck = NULL, | 1081 HValue *typecheck = NULL); |
1082 Representation representation = Representation::Tagged()); | |
1083 | 1082 |
1084 HLoadNamedField* BuildLoadNamedField( | 1083 HLoadNamedField* BuildLoadNamedField( |
1085 HValue* object, | 1084 HValue* object, |
1086 HObjectAccess access, | 1085 HObjectAccess access, |
1087 Representation representation); | 1086 Representation representation); |
1088 | 1087 |
1089 HInstruction* AddExternalArrayElementAccess( | 1088 HInstruction* AddExternalArrayElementAccess( |
1090 HValue* external_elements, | 1089 HValue* external_elements, |
1091 HValue* checked_key, | 1090 HValue* checked_key, |
1092 HValue* val, | 1091 HValue* val, |
1093 HValue* dependency, | 1092 HValue* dependency, |
1094 ElementsKind elements_kind, | 1093 ElementsKind elements_kind, |
1095 bool is_store); | 1094 bool is_store); |
1096 | 1095 |
1097 HInstruction* AddFastElementAccess( | 1096 HInstruction* AddFastElementAccess( |
1098 HValue* elements, | 1097 HValue* elements, |
1099 HValue* checked_key, | 1098 HValue* checked_key, |
1100 HValue* val, | 1099 HValue* val, |
1101 HValue* dependency, | 1100 HValue* dependency, |
1102 ElementsKind elements_kind, | 1101 ElementsKind elements_kind, |
1103 bool is_store, | 1102 bool is_store, |
1104 LoadKeyedHoleMode load_mode, | 1103 LoadKeyedHoleMode load_mode, |
1105 KeyedAccessStoreMode store_mode); | 1104 KeyedAccessStoreMode store_mode); |
1106 | 1105 |
1107 HStoreNamedField* AddStore( | 1106 HLoadNamedField* BuildLoadNamedField(HValue* object, HObjectAccess access); |
1108 HValue *object, | 1107 HStoreNamedField* AddStore(HValue *object, HObjectAccess access, HValue *val); |
1109 HObjectAccess access, | |
1110 HValue *val, | |
1111 Representation representation = Representation::Tagged()); | |
1112 | |
1113 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>); | 1108 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>); |
1114 | |
1115 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL); | 1109 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL); |
1116 | |
1117 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); | 1110 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); |
1118 | 1111 |
1119 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin, HValue* context); | 1112 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin, HValue* context); |
1120 | 1113 |
1121 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected); | 1114 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected); |
1122 | 1115 |
1123 void PushAndAdd(HInstruction* instr); | 1116 void PushAndAdd(HInstruction* instr); |
1124 | 1117 |
1125 enum SoftDeoptimizeMode { | 1118 enum SoftDeoptimizeMode { |
1126 MUST_EMIT_SOFT_DEOPT, | 1119 MUST_EMIT_SOFT_DEOPT, |
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2097 EmbeddedVector<char, 64> filename_; | 2090 EmbeddedVector<char, 64> filename_; |
2098 HeapStringAllocator string_allocator_; | 2091 HeapStringAllocator string_allocator_; |
2099 StringStream trace_; | 2092 StringStream trace_; |
2100 int indent_; | 2093 int indent_; |
2101 }; | 2094 }; |
2102 | 2095 |
2103 | 2096 |
2104 } } // namespace v8::internal | 2097 } } // namespace v8::internal |
2105 | 2098 |
2106 #endif // V8_HYDROGEN_H_ | 2099 #endif // V8_HYDROGEN_H_ |
OLD | NEW |