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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 Label::Distance distance = Label::kFar); | 870 Label::Distance distance = Label::kFar); |
871 | 871 |
872 // Check if a map for a JSObject indicates that the object can have both smi | 872 // Check if a map for a JSObject indicates that the object can have both smi |
873 // and HeapObject elements. Jump to the specified label if it does not. | 873 // and HeapObject elements. Jump to the specified label if it does not. |
874 void CheckFastObjectElements(Register map, | 874 void CheckFastObjectElements(Register map, |
875 Label* fail, | 875 Label* fail, |
876 Label::Distance distance = Label::kFar); | 876 Label::Distance distance = Label::kFar); |
877 | 877 |
878 // Check if a map for a JSObject indicates that the object has fast smi only | 878 // Check if a map for a JSObject indicates that the object has fast smi only |
879 // elements. Jump to the specified label if it does not. | 879 // elements. Jump to the specified label if it does not. |
880 void CheckFastSmiElements(Register map, | 880 void CheckFastSmiOnlyElements(Register map, |
881 Label* fail, | 881 Label* fail, |
882 Label::Distance distance = Label::kFar); | 882 Label::Distance distance = Label::kFar); |
883 | 883 |
884 // Check to see if maybe_number can be stored as a double in | 884 // Check to see if maybe_number can be stored as a double in |
885 // FastDoubleElements. If it can, store it at the index specified by index in | 885 // FastDoubleElements. If it can, store it at the index specified by index in |
886 // the FastDoubleElements array elements, otherwise jump to fail. Note that | 886 // the FastDoubleElements array elements, otherwise jump to fail. Note that |
887 // index must not be smi-tagged. | 887 // index must not be smi-tagged. |
888 void StoreNumberToDoubleElements(Register maybe_number, | 888 void StoreNumberToDoubleElements(Register maybe_number, |
889 Register elements, | 889 Register elements, |
890 Register index, | 890 Register index, |
891 XMMRegister xmm_scratch, | 891 XMMRegister xmm_scratch, |
892 Label* fail); | 892 Label* fail); |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 void LoadTransitionedArrayMapConditional( | 1134 void LoadTransitionedArrayMapConditional( |
1135 ElementsKind expected_kind, | 1135 ElementsKind expected_kind, |
1136 ElementsKind transitioned_kind, | 1136 ElementsKind transitioned_kind, |
1137 Register map_in_out, | 1137 Register map_in_out, |
1138 Register scratch, | 1138 Register scratch, |
1139 Label* no_map_match); | 1139 Label* no_map_match); |
1140 | 1140 |
1141 // Load the initial map for new Arrays from a JSFunction. | 1141 // Load the initial map for new Arrays from a JSFunction. |
1142 void LoadInitialArrayMap(Register function_in, | 1142 void LoadInitialArrayMap(Register function_in, |
1143 Register scratch, | 1143 Register scratch, |
1144 Register map_out, | 1144 Register map_out); |
1145 bool can_have_holes); | |
1146 | 1145 |
1147 // Load the global function with the given index. | 1146 // Load the global function with the given index. |
1148 void LoadGlobalFunction(int index, Register function); | 1147 void LoadGlobalFunction(int index, Register function); |
1149 | 1148 |
1150 // Load the initial map from the global function. The registers | 1149 // Load the initial map from the global function. The registers |
1151 // function and map can be the same. | 1150 // function and map can be the same. |
1152 void LoadGlobalFunctionInitialMap(Register function, Register map); | 1151 void LoadGlobalFunctionInitialMap(Register function, Register map); |
1153 | 1152 |
1154 // --------------------------------------------------------------------------- | 1153 // --------------------------------------------------------------------------- |
1155 // Runtime calls | 1154 // Runtime calls |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1475 masm->popfd(); \ | 1474 masm->popfd(); \ |
1476 } \ | 1475 } \ |
1477 masm-> | 1476 masm-> |
1478 #else | 1477 #else |
1479 #define ACCESS_MASM(masm) masm-> | 1478 #define ACCESS_MASM(masm) masm-> |
1480 #endif | 1479 #endif |
1481 | 1480 |
1482 } } // namespace v8::internal | 1481 } } // namespace v8::internal |
1483 | 1482 |
1484 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1483 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |