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

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

Issue 207823003: Rename A64 port to ARM64 port (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: retry Created 6 years, 9 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/arm64/lithium-gap-resolver-arm64.cc ('k') | src/arm64/macro-assembler-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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
11 // with the distribution. 11 // with the distribution.
12 // * Neither the name of Google Inc. nor the names of its 12 // * Neither the name of Google Inc. nor the names of its
13 // contributors may be used to endorse or promote products derived 13 // contributors may be used to endorse or promote products derived
14 // from this software without specific prior written permission. 14 // from this software without specific prior written permission.
15 // 15 //
16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_A64_MACRO_ASSEMBLER_A64_H_ 28 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_
29 #define V8_A64_MACRO_ASSEMBLER_A64_H_ 29 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_
30 30
31 #include <vector> 31 #include <vector>
32 32
33 #include "v8globals.h" 33 #include "v8globals.h"
34 #include "globals.h" 34 #include "globals.h"
35 35
36 #include "a64/assembler-a64-inl.h" 36 #include "arm64/assembler-arm64-inl.h"
37 37
38 namespace v8 { 38 namespace v8 {
39 namespace internal { 39 namespace internal {
40 40
41 #define LS_MACRO_LIST(V) \ 41 #define LS_MACRO_LIST(V) \
42 V(Ldrb, Register&, rt, LDRB_w) \ 42 V(Ldrb, Register&, rt, LDRB_w) \
43 V(Strb, Register&, rt, STRB_w) \ 43 V(Strb, Register&, rt, STRB_w) \
44 V(Ldrsb, Register&, rt, rt.Is64Bits() ? LDRSB_x : LDRSB_w) \ 44 V(Ldrsb, Register&, rt, rt.Is64Bits() ? LDRSB_x : LDRSB_w) \
45 V(Ldrh, Register&, rt, LDRH_w) \ 45 V(Ldrh, Register&, rt, LDRH_w) \
46 V(Strh, Register&, rt, STRH_w) \ 46 V(Strh, Register&, rt, STRH_w) \
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 // ---- Floating point helpers ---- 1205 // ---- Floating point helpers ----
1206 1206
1207 // Perform a conversion from a double to a signed int64. If the input fits in 1207 // Perform a conversion from a double to a signed int64. If the input fits in
1208 // range of the 64-bit result, execution branches to done. Otherwise, 1208 // range of the 64-bit result, execution branches to done. Otherwise,
1209 // execution falls through, and the sign of the result can be used to 1209 // execution falls through, and the sign of the result can be used to
1210 // determine if overflow was towards positive or negative infinity. 1210 // determine if overflow was towards positive or negative infinity.
1211 // 1211 //
1212 // On successful conversion, the least significant 32 bits of the result are 1212 // On successful conversion, the least significant 32 bits of the result are
1213 // equivalent to the ECMA-262 operation "ToInt32". 1213 // equivalent to the ECMA-262 operation "ToInt32".
1214 // 1214 //
1215 // Only public for the test code in test-code-stubs-a64.cc. 1215 // Only public for the test code in test-code-stubs-arm64.cc.
1216 void TryConvertDoubleToInt64(Register result, 1216 void TryConvertDoubleToInt64(Register result,
1217 DoubleRegister input, 1217 DoubleRegister input,
1218 Label* done); 1218 Label* done);
1219 1219
1220 // Performs a truncating conversion of a floating point number as used by 1220 // Performs a truncating conversion of a floating point number as used by
1221 // the JS bitwise operations. See ECMA-262 9.5: ToInt32. 1221 // the JS bitwise operations. See ECMA-262 9.5: ToInt32.
1222 // Exits with 'result' holding the answer. 1222 // Exits with 'result' holding the answer.
1223 void TruncateDoubleToI(Register result, DoubleRegister double_input); 1223 void TruncateDoubleToI(Register result, DoubleRegister double_input);
1224 1224
1225 // Performs a truncating conversion of a heap number as used by 1225 // Performs a truncating conversion of a heap number as used by
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
1956 // 1956 //
1957 // The return code from the system printf call will be returned in x0. 1957 // The return code from the system printf call will be returned in x0.
1958 void PrintfNoPreserve(const char * format, 1958 void PrintfNoPreserve(const char * format,
1959 const CPURegister& arg0 = NoCPUReg, 1959 const CPURegister& arg0 = NoCPUReg,
1960 const CPURegister& arg1 = NoCPUReg, 1960 const CPURegister& arg1 = NoCPUReg,
1961 const CPURegister& arg2 = NoCPUReg, 1961 const CPURegister& arg2 = NoCPUReg,
1962 const CPURegister& arg3 = NoCPUReg); 1962 const CPURegister& arg3 = NoCPUReg);
1963 1963
1964 // Code ageing support functions. 1964 // Code ageing support functions.
1965 1965
1966 // Code ageing on A64 works similarly to on ARM. When V8 wants to mark a 1966 // Code ageing on ARM64 works similarly to on ARM. When V8 wants to mark a
1967 // function as old, it replaces some of the function prologue (generated by 1967 // function as old, it replaces some of the function prologue (generated by
1968 // FullCodeGenerator::Generate) with a call to a special stub (ultimately 1968 // FullCodeGenerator::Generate) with a call to a special stub (ultimately
1969 // generated by GenerateMakeCodeYoungAgainCommon). The stub restores the 1969 // generated by GenerateMakeCodeYoungAgainCommon). The stub restores the
1970 // function prologue to its initial young state (indicating that it has been 1970 // function prologue to its initial young state (indicating that it has been
1971 // recently run) and continues. A young function is therefore one which has a 1971 // recently run) and continues. A young function is therefore one which has a
1972 // normal frame setup sequence, and an old function has a code age sequence 1972 // normal frame setup sequence, and an old function has a code age sequence
1973 // which calls a code ageing stub. 1973 // which calls a code ageing stub.
1974 1974
1975 // Set up a basic stack frame for young code (or code exempt from ageing) with 1975 // Set up a basic stack frame for young code (or code exempt from ageing) with
1976 // type FUNCTION. It may be patched later for code ageing support. This is 1976 // type FUNCTION. It may be patched later for code ageing support. This is
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
2293 #ifdef GENERATED_CODE_COVERAGE 2293 #ifdef GENERATED_CODE_COVERAGE
2294 #error "Unsupported option" 2294 #error "Unsupported option"
2295 #define CODE_COVERAGE_STRINGIFY(x) #x 2295 #define CODE_COVERAGE_STRINGIFY(x) #x
2296 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 2296 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
2297 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 2297 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
2298 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 2298 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
2299 #else 2299 #else
2300 #define ACCESS_MASM(masm) masm-> 2300 #define ACCESS_MASM(masm) masm->
2301 #endif 2301 #endif
2302 2302
2303 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ 2303 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm64/lithium-gap-resolver-arm64.cc ('k') | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698