| 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 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1232 HValue* map, | 1232 HValue* map, |
| 1233 ElementsKind from_kind, | 1233 ElementsKind from_kind, |
| 1234 ElementsKind to_kind, | 1234 ElementsKind to_kind, |
| 1235 bool is_jsarray); | 1235 bool is_jsarray); |
| 1236 | 1236 |
| 1237 // Do lookup in the number string cache. If the object is not found | 1237 // Do lookup in the number string cache. If the object is not found |
| 1238 // in the cache, the false branch of the continuation is taken; | 1238 // in the cache, the false branch of the continuation is taken; |
| 1239 // otherwise the true branch is taken and the returned value contains | 1239 // otherwise the true branch is taken and the returned value contains |
| 1240 // the cache value for the object. The returned value must NOT be used | 1240 // the cache value for the object. The returned value must NOT be used |
| 1241 // on the false branch. | 1241 // on the false branch. |
| 1242 enum ToStringMode { ALLOW_SIDE_EFFECTS, CHECK_NUMBER }; |
| 1242 HValue* BuildLookupNumberStringCache(HValue* object, | 1243 HValue* BuildLookupNumberStringCache(HValue* object, |
| 1244 ToStringMode mode, |
| 1243 HIfContinuation* continuation); | 1245 HIfContinuation* continuation); |
| 1244 HValue* BuildNumberToString(HValue* number); | 1246 HValue* BuildNumberToString(HValue* number, ToStringMode mode); |
| 1245 | 1247 |
| 1246 HInstruction* BuildUncheckedMonomorphicElementAccess( | 1248 HInstruction* BuildUncheckedMonomorphicElementAccess( |
| 1247 HValue* checked_object, | 1249 HValue* checked_object, |
| 1248 HValue* key, | 1250 HValue* key, |
| 1249 HValue* val, | 1251 HValue* val, |
| 1250 bool is_js_array, | 1252 bool is_js_array, |
| 1251 ElementsKind elements_kind, | 1253 ElementsKind elements_kind, |
| 1252 bool is_store, | 1254 bool is_store, |
| 1253 LoadKeyedHoleMode load_mode, | 1255 LoadKeyedHoleMode load_mode, |
| 1254 KeyedAccessStoreMode store_mode); | 1256 KeyedAccessStoreMode store_mode); |
| (...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2474 } | 2476 } |
| 2475 | 2477 |
| 2476 private: | 2478 private: |
| 2477 HGraphBuilder* builder_; | 2479 HGraphBuilder* builder_; |
| 2478 }; | 2480 }; |
| 2479 | 2481 |
| 2480 | 2482 |
| 2481 } } // namespace v8::internal | 2483 } } // namespace v8::internal |
| 2482 | 2484 |
| 2483 #endif // V8_HYDROGEN_H_ | 2485 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |