Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 7795018: Generated code for substring slices in x64 and arm. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Applied Bill's suggestions. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698