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 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 Label* gc_required); | 914 Label* gc_required); |
915 void AllocateAsciiString(Register result, | 915 void AllocateAsciiString(Register result, |
916 Register length, | 916 Register length, |
917 Register scratch1, | 917 Register scratch1, |
918 Register scratch2, | 918 Register scratch2, |
919 Register scratch3, | 919 Register scratch3, |
920 Label* gc_required); | 920 Label* gc_required); |
921 | 921 |
922 // Allocate a raw cons string object. Only the map field of the result is | 922 // Allocate a raw cons string object. Only the map field of the result is |
923 // initialized. | 923 // initialized. |
924 void AllocateConsString(Register result, | 924 void AllocateTwoByteConsString(Register result, |
925 Register scratch1, | 925 Register scratch1, |
926 Register scratch2, | 926 Register scratch2, |
927 Label* gc_required); | 927 Label* gc_required); |
928 void AllocateAsciiConsString(Register result, | 928 void AllocateAsciiConsString(Register result, |
929 Register scratch1, | 929 Register scratch1, |
930 Register scratch2, | 930 Register scratch2, |
931 Label* gc_required); | 931 Label* gc_required); |
932 | 932 |
| 933 // Allocate a raw sliced string object. Only the map field of the result is |
| 934 // initialized. |
| 935 void AllocateTwoByteSlicedString(Register result, |
| 936 Register scratch1, |
| 937 Register scratch2, |
| 938 Label* gc_required); |
| 939 void AllocateAsciiSlicedString(Register result, |
| 940 Register scratch1, |
| 941 Register scratch2, |
| 942 Label* gc_required); |
| 943 |
933 // --------------------------------------------------------------------------- | 944 // --------------------------------------------------------------------------- |
934 // Support functions. | 945 // Support functions. |
935 | 946 |
936 // Check if result is zero and op is negative. | 947 // Check if result is zero and op is negative. |
937 void NegativeZeroTest(Register result, Register op, Label* then_label); | 948 void NegativeZeroTest(Register result, Register op, Label* then_label); |
938 | 949 |
939 // Check if result is zero and op is negative in code using jump targets. | 950 // Check if result is zero and op is negative in code using jump targets. |
940 void NegativeZeroTest(CodeGenerator* cgen, | 951 void NegativeZeroTest(CodeGenerator* cgen, |
941 Register result, | 952 Register result, |
942 Register op, | 953 Register op, |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1297 masm->popfd(); \ | 1308 masm->popfd(); \ |
1298 } \ | 1309 } \ |
1299 masm-> | 1310 masm-> |
1300 #else | 1311 #else |
1301 #define ACCESS_MASM(masm) masm-> | 1312 #define ACCESS_MASM(masm) masm-> |
1302 #endif | 1313 #endif |
1303 | 1314 |
1304 } } // namespace v8::internal | 1315 } } // namespace v8::internal |
1305 | 1316 |
1306 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1317 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |