| OLD | NEW |
| 1 // Copyright 2012 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 // FastDoubleElements. If it can, store it at the index specified by key in | 349 // FastDoubleElements. If it can, store it at the index specified by key in |
| 350 // the FastDoubleElements array elements, otherwise jump to fail. | 350 // the FastDoubleElements array elements, otherwise jump to fail. |
| 351 void StoreNumberToDoubleElements(Register maybe_number, | 351 void StoreNumberToDoubleElements(Register maybe_number, |
| 352 Register elements, | 352 Register elements, |
| 353 Register key, | 353 Register key, |
| 354 Register scratch1, | 354 Register scratch1, |
| 355 XMMRegister scratch2, | 355 XMMRegister scratch2, |
| 356 Label* fail, | 356 Label* fail, |
| 357 bool specialize_for_processor); | 357 bool specialize_for_processor); |
| 358 | 358 |
| 359 // Compare an object's map with the specified map and its transitioned | |
| 360 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. FLAGS are set with | |
| 361 // result of map compare. If multiple map compares are required, the compare | |
| 362 // sequences branches to early_success. | |
| 363 void CompareMap(Register obj, | |
| 364 Handle<Map> map, | |
| 365 Label* early_success, | |
| 366 CompareMapMode mode = REQUIRE_EXACT_MAP); | |
| 367 | |
| 368 // Check if the map of an object is equal to a specified map and branch to | 359 // Check if the map of an object is equal to a specified map and branch to |
| 369 // label if not. Skip the smi check if not required (object is known to be a | 360 // label if not. Skip the smi check if not required (object is known to be a |
| 370 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match | 361 // heap object) |
| 371 // against maps that are ElementsKind transition maps of the specificed map. | |
| 372 void CheckMap(Register obj, | 362 void CheckMap(Register obj, |
| 373 Handle<Map> map, | 363 Handle<Map> map, |
| 374 Label* fail, | 364 Label* fail, |
| 375 SmiCheckType smi_check_type, | 365 SmiCheckType smi_check_type); |
| 376 CompareMapMode mode = REQUIRE_EXACT_MAP); | |
| 377 | 366 |
| 378 // Check if the map of an object is equal to a specified map and branch to a | 367 // Check if the map of an object is equal to a specified map and branch to a |
| 379 // specified target if equal. Skip the smi check if not required (object is | 368 // specified target if equal. Skip the smi check if not required (object is |
| 380 // known to be a heap object) | 369 // known to be a heap object) |
| 381 void DispatchMap(Register obj, | 370 void DispatchMap(Register obj, |
| 382 Handle<Map> map, | 371 Handle<Map> map, |
| 383 Handle<Code> success, | 372 Handle<Code> success, |
| 384 SmiCheckType smi_check_type); | 373 SmiCheckType smi_check_type); |
| 385 | 374 |
| 386 // Check if the object in register heap_object is a string. Afterwards the | 375 // Check if the object in register heap_object is a string. Afterwards the |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 } \ | 937 } \ |
| 949 masm-> | 938 masm-> |
| 950 #else | 939 #else |
| 951 #define ACCESS_MASM(masm) masm-> | 940 #define ACCESS_MASM(masm) masm-> |
| 952 #endif | 941 #endif |
| 953 | 942 |
| 954 | 943 |
| 955 } } // namespace v8::internal | 944 } } // namespace v8::internal |
| 956 | 945 |
| 957 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 946 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |