OLD | NEW |
1 // Copyright 2011 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 |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 void CheckFastObjectElements(Register map, | 852 void CheckFastObjectElements(Register map, |
853 Label* fail, | 853 Label* fail, |
854 Label::Distance distance = Label::kFar); | 854 Label::Distance distance = Label::kFar); |
855 | 855 |
856 // Check if a map for a JSObject indicates that the object has fast smi only | 856 // Check if a map for a JSObject indicates that the object has fast smi only |
857 // elements. Jump to the specified label if it does not. | 857 // elements. Jump to the specified label if it does not. |
858 void CheckFastSmiOnlyElements(Register map, | 858 void CheckFastSmiOnlyElements(Register map, |
859 Label* fail, | 859 Label* fail, |
860 Label::Distance distance = Label::kFar); | 860 Label::Distance distance = Label::kFar); |
861 | 861 |
| 862 // Check to see if maybe_number can be stored as a double in |
| 863 // FastDoubleElements. If it can, store it at the index specified by key in |
| 864 // the FastDoubleElements array elements, otherwise jump to fail. |
| 865 // Note that key must not be smi-tagged. |
| 866 void StoreNumberToDoubleElements(Register maybe_number, |
| 867 Register elements, |
| 868 Register key, |
| 869 XMMRegister xmm_scratch, |
| 870 Label* fail); |
| 871 |
862 // Check if the map of an object is equal to a specified map and | 872 // Check if the map of an object is equal to a specified map and |
863 // branch to label if not. Skip the smi check if not required | 873 // branch to label if not. Skip the smi check if not required |
864 // (object is known to be a heap object) | 874 // (object is known to be a heap object) |
865 void CheckMap(Register obj, | 875 void CheckMap(Register obj, |
866 Handle<Map> map, | 876 Handle<Map> map, |
867 Label* fail, | 877 Label* fail, |
868 SmiCheckType smi_check_type); | 878 SmiCheckType smi_check_type); |
869 | 879 |
870 // Check if the map of an object is equal to a specified map and branch to a | 880 // Check if the map of an object is equal to a specified map and branch to a |
871 // specified target if equal. Skip the smi check if not required (object is | 881 // specified target if equal. Skip the smi check if not required (object is |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1432 masm->popfd(); \ | 1442 masm->popfd(); \ |
1433 } \ | 1443 } \ |
1434 masm-> | 1444 masm-> |
1435 #else | 1445 #else |
1436 #define ACCESS_MASM(masm) masm-> | 1446 #define ACCESS_MASM(masm) masm-> |
1437 #endif | 1447 #endif |
1438 | 1448 |
1439 } } // namespace v8::internal | 1449 } } // namespace v8::internal |
1440 | 1450 |
1441 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1451 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |