| 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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 // Check to see if maybe_number can be stored as a double in | 882 // Check to see if maybe_number can be stored as a double in |
| 883 // FastDoubleElements. If it can, store it at the index specified by index in | 883 // FastDoubleElements. If it can, store it at the index specified by index in |
| 884 // the FastDoubleElements array elements, otherwise jump to fail. Note that | 884 // the FastDoubleElements array elements, otherwise jump to fail. Note that |
| 885 // index must not be smi-tagged. | 885 // index must not be smi-tagged. |
| 886 void StoreNumberToDoubleElements(Register maybe_number, | 886 void StoreNumberToDoubleElements(Register maybe_number, |
| 887 Register elements, | 887 Register elements, |
| 888 Register index, | 888 Register index, |
| 889 XMMRegister xmm_scratch, | 889 XMMRegister xmm_scratch, |
| 890 Label* fail); | 890 Label* fail); |
| 891 | 891 |
| 892 // Compare an object's map with the specified map and its transitioned | 892 // Check if the map of an object is equal to a specified map and |
| 893 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. FLAGS are set with | 893 // branch to label if not. Skip the smi check if not required |
| 894 // result of map compare. If multiple map compares are required, the compare | 894 // (object is known to be a heap object) |
| 895 // sequences branches to early_success. | |
| 896 void CompareMap(Register obj, | |
| 897 Handle<Map> map, | |
| 898 Label* early_success, | |
| 899 CompareMapMode mode = REQUIRE_EXACT_MAP); | |
| 900 | |
| 901 // Check if the map of an object is equal to a specified map and branch to | |
| 902 // label if not. Skip the smi check if not required (object is known to be a | |
| 903 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match | |
| 904 // against maps that are ElementsKind transition maps of the specificed map. | |
| 905 void CheckMap(Register obj, | 895 void CheckMap(Register obj, |
| 906 Handle<Map> map, | 896 Handle<Map> map, |
| 907 Label* fail, | 897 Label* fail, |
| 908 SmiCheckType smi_check_type, | 898 SmiCheckType smi_check_type); |
| 909 CompareMapMode mode = REQUIRE_EXACT_MAP); | |
| 910 | 899 |
| 911 // Check if the map of an object is equal to a specified map and branch to a | 900 // Check if the map of an object is equal to a specified map and branch to a |
| 912 // specified target if equal. Skip the smi check if not required (object is | 901 // specified target if equal. Skip the smi check if not required (object is |
| 913 // known to be a heap object) | 902 // known to be a heap object) |
| 914 void DispatchMap(Register obj, | 903 void DispatchMap(Register obj, |
| 915 Handle<Map> map, | 904 Handle<Map> map, |
| 916 Handle<Code> success, | 905 Handle<Code> success, |
| 917 SmiCheckType smi_check_type); | 906 SmiCheckType smi_check_type); |
| 918 | 907 |
| 919 // Check if the object in register heap_object is a string. Afterwards the | 908 // Check if the object in register heap_object is a string. Afterwards the |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1447 masm->popfd(); \ | 1436 masm->popfd(); \ |
| 1448 } \ | 1437 } \ |
| 1449 masm-> | 1438 masm-> |
| 1450 #else | 1439 #else |
| 1451 #define ACCESS_MASM(masm) masm-> | 1440 #define ACCESS_MASM(masm) masm-> |
| 1452 #endif | 1441 #endif |
| 1453 | 1442 |
| 1454 } } // namespace v8::internal | 1443 } } // namespace v8::internal |
| 1455 | 1444 |
| 1456 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1445 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |