| 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 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1253 HValue* dependency, | 1253 HValue* dependency, |
| 1254 ElementsKind elements_kind, | 1254 ElementsKind elements_kind, |
| 1255 bool is_store, | 1255 bool is_store, |
| 1256 LoadKeyedHoleMode load_mode, | 1256 LoadKeyedHoleMode load_mode, |
| 1257 KeyedAccessStoreMode store_mode); | 1257 KeyedAccessStoreMode store_mode); |
| 1258 | 1258 |
| 1259 HLoadNamedField* BuildLoadNamedField(HValue* object, HObjectAccess access); | 1259 HLoadNamedField* BuildLoadNamedField(HValue* object, HObjectAccess access); |
| 1260 HInstruction* BuildLoadStringLength(HValue* object, HValue* checked_value); | 1260 HInstruction* BuildLoadStringLength(HValue* object, HValue* checked_value); |
| 1261 HStoreNamedField* AddStoreMapConstant(HValue* object, Handle<Map>); | 1261 HStoreNamedField* AddStoreMapConstant(HValue* object, Handle<Map>); |
| 1262 HLoadNamedField* AddLoadElements(HValue* object); | 1262 HLoadNamedField* AddLoadElements(HValue* object); |
| 1263 |
| 1264 bool MatchRotateRight(HValue* left, |
| 1265 HValue* right, |
| 1266 HValue** operand, |
| 1267 HValue** shift_amount); |
| 1268 |
| 1269 HInstruction* BuildBinaryOperation(Token::Value op, |
| 1270 HValue* left, |
| 1271 HValue* right, |
| 1272 Handle<Type> left_type, |
| 1273 Handle<Type> right_type, |
| 1274 Handle<Type> result_type, |
| 1275 Maybe<int> fixed_right_arg, |
| 1276 HValue* context); |
| 1277 |
| 1263 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); | 1278 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); |
| 1264 | 1279 |
| 1265 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); | 1280 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); |
| 1266 | 1281 |
| 1282 HValue* EnforceNumberType(HValue* number, Handle<Type> expected); |
| 1267 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected); | 1283 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected); |
| 1268 | 1284 |
| 1269 void PushAndAdd(HInstruction* instr); | 1285 void PushAndAdd(HInstruction* instr); |
| 1270 | 1286 |
| 1271 void FinishExitWithHardDeoptimization(const char* reason, | 1287 void FinishExitWithHardDeoptimization(const char* reason, |
| 1272 HBasicBlock* continuation); | 1288 HBasicBlock* continuation); |
| 1273 | 1289 |
| 1274 void AddIncrementCounter(StatsCounter* counter, | 1290 void AddIncrementCounter(StatsCounter* counter, |
| 1275 HValue* context); | 1291 HValue* context); |
| 1276 | 1292 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1299 return compare; | 1315 return compare; |
| 1300 } | 1316 } |
| 1301 | 1317 |
| 1302 template<class Condition, class P2, class P3> | 1318 template<class Condition, class P2, class P3> |
| 1303 HInstruction* If(HValue* p1, P2 p2, P3 p3) { | 1319 HInstruction* If(HValue* p1, P2 p2, P3 p3) { |
| 1304 HControlInstruction* compare = new(zone()) Condition(p1, p2, p3); | 1320 HControlInstruction* compare = new(zone()) Condition(p1, p2, p3); |
| 1305 AddCompare(compare); | 1321 AddCompare(compare); |
| 1306 return compare; | 1322 return compare; |
| 1307 } | 1323 } |
| 1308 | 1324 |
| 1325 template<class Condition> |
| 1326 HInstruction* IfNot(HValue* p1) { |
| 1327 HControlInstruction* compare = new(zone()) Condition(p1); |
| 1328 AddCompare(compare); |
| 1329 HBasicBlock* block0 = compare->SuccessorAt(0); |
| 1330 HBasicBlock* block1 = compare->SuccessorAt(1); |
| 1331 compare->SetSuccessorAt(0, block1); |
| 1332 compare->SetSuccessorAt(1, block0); |
| 1333 return compare; |
| 1334 } |
| 1335 |
| 1309 template<class Condition, class P2> | 1336 template<class Condition, class P2> |
| 1310 HInstruction* IfNot(HValue* p1, P2 p2) { | 1337 HInstruction* IfNot(HValue* p1, P2 p2) { |
| 1311 HControlInstruction* compare = new(zone()) Condition(p1, p2); | 1338 HControlInstruction* compare = new(zone()) Condition(p1, p2); |
| 1312 AddCompare(compare); | 1339 AddCompare(compare); |
| 1313 HBasicBlock* block0 = compare->SuccessorAt(0); | 1340 HBasicBlock* block0 = compare->SuccessorAt(0); |
| 1314 HBasicBlock* block1 = compare->SuccessorAt(1); | 1341 HBasicBlock* block1 = compare->SuccessorAt(1); |
| 1315 compare->SetSuccessorAt(0, block1); | 1342 compare->SetSuccessorAt(0, block1); |
| 1316 compare->SetSuccessorAt(1, block0); | 1343 compare->SetSuccessorAt(1, block0); |
| 1317 return compare; | 1344 return compare; |
| 1318 } | 1345 } |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2105 ElementsKind kind, | 2132 ElementsKind kind, |
| 2106 HValue* object_elements); | 2133 HValue* object_elements); |
| 2107 | 2134 |
| 2108 void AddCheckPrototypeMaps(Handle<JSObject> holder, | 2135 void AddCheckPrototypeMaps(Handle<JSObject> holder, |
| 2109 Handle<Map> receiver_map); | 2136 Handle<Map> receiver_map); |
| 2110 | 2137 |
| 2111 void AddCheckConstantFunction(Handle<JSObject> holder, | 2138 void AddCheckConstantFunction(Handle<JSObject> holder, |
| 2112 HValue* receiver, | 2139 HValue* receiver, |
| 2113 Handle<Map> receiver_map); | 2140 Handle<Map> receiver_map); |
| 2114 | 2141 |
| 2115 bool MatchRotateRight(HValue* left, | |
| 2116 HValue* right, | |
| 2117 HValue** operand, | |
| 2118 HValue** shift_amount); | |
| 2119 | |
| 2120 // The translation state of the currently-being-translated function. | 2142 // The translation state of the currently-being-translated function. |
| 2121 FunctionState* function_state_; | 2143 FunctionState* function_state_; |
| 2122 | 2144 |
| 2123 // The base of the function state stack. | 2145 // The base of the function state stack. |
| 2124 FunctionState initial_function_state_; | 2146 FunctionState initial_function_state_; |
| 2125 | 2147 |
| 2126 // Expression context of the currently visited subexpression. NULL when | 2148 // Expression context of the currently visited subexpression. NULL when |
| 2127 // visiting statements. | 2149 // visiting statements. |
| 2128 AstContext* ast_context_; | 2150 AstContext* ast_context_; |
| 2129 | 2151 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2301 } | 2323 } |
| 2302 | 2324 |
| 2303 private: | 2325 private: |
| 2304 HGraphBuilder* builder_; | 2326 HGraphBuilder* builder_; |
| 2305 }; | 2327 }; |
| 2306 | 2328 |
| 2307 | 2329 |
| 2308 } } // namespace v8::internal | 2330 } } // namespace v8::internal |
| 2309 | 2331 |
| 2310 #endif // V8_HYDROGEN_H_ | 2332 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |