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