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

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

Issue 173663002: A64: Tidy up register use in TaggedToI (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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/a64/lithium-codegen-a64.cc ('k') | src/a64/macro-assembler-a64.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
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 const CallWrapper& call_wrapper); 1172 const CallWrapper& call_wrapper);
1173 void InvokeFunction(Handle<JSFunction> function, 1173 void InvokeFunction(Handle<JSFunction> function,
1174 const ParameterCount& expected, 1174 const ParameterCount& expected,
1175 const ParameterCount& actual, 1175 const ParameterCount& actual,
1176 InvokeFlag flag, 1176 InvokeFlag flag,
1177 const CallWrapper& call_wrapper); 1177 const CallWrapper& call_wrapper);
1178 1178
1179 1179
1180 // ---- Floating point helpers ---- 1180 // ---- Floating point helpers ----
1181 1181
1182 1182 // Perform a conversion from a double to a signed int64. If the input fits in
1183 // Performs a truncating conversion of a floating point number as used by 1183 // range of the 64-bit result, execution branches to done. Otherwise,
1184 // the JS bitwise operations. See ECMA-262 9.5: ToInt32. Goes to 'done' if it 1184 // execution falls through, and the sign of the result can be used to
1185 // succeeds, otherwise falls through if result is saturated. On return 1185 // determine if overflow was towards positive or negative infinity.
1186 // 'result' either holds answer, or is clobbered on fall through. 1186 //
1187 // On successful conversion, the least significant 32 bits of the result are
1188 // equivalent to the ECMA-262 operation "ToInt32".
1187 // 1189 //
1188 // Only public for the test code in test-code-stubs-a64.cc. 1190 // Only public for the test code in test-code-stubs-a64.cc.
1189 void TryInlineTruncateDoubleToI(Register result, 1191 void TryConvertDoubleToInt64(Register result,
1190 DoubleRegister input, 1192 DoubleRegister input,
1191 Label* done); 1193 Label* done);
1192 1194
1193 // Performs a truncating conversion of a floating point number as used by 1195 // Performs a truncating conversion of a floating point number as used by
1194 // the JS bitwise operations. See ECMA-262 9.5: ToInt32. 1196 // the JS bitwise operations. See ECMA-262 9.5: ToInt32.
1195 // Exits with 'result' holding the answer. 1197 // Exits with 'result' holding the answer.
1196 void TruncateDoubleToI(Register result, DoubleRegister double_input); 1198 void TruncateDoubleToI(Register result, DoubleRegister double_input);
1197 1199
1198 // Performs a truncating conversion of a heap number as used by 1200 // Performs a truncating conversion of a heap number as used by
1199 // the JS bitwise operations. See ECMA-262 9.5: ToInt32. 'result' and 'input' 1201 // the JS bitwise operations. See ECMA-262 9.5: ToInt32. 'result' and 'input'
1200 // must be different registers. Exits with 'result' holding the answer. 1202 // must be different registers. Exits with 'result' holding the answer.
1201 void TruncateHeapNumberToI(Register result, Register object); 1203 void TruncateHeapNumberToI(Register result, Register object);
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
2323 #error "Unsupported option" 2325 #error "Unsupported option"
2324 #define CODE_COVERAGE_STRINGIFY(x) #x 2326 #define CODE_COVERAGE_STRINGIFY(x) #x
2325 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 2327 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
2326 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 2328 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
2327 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 2329 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
2328 #else 2330 #else
2329 #define ACCESS_MASM(masm) masm-> 2331 #define ACCESS_MASM(masm) masm->
2330 #endif 2332 #endif
2331 2333
2332 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ 2334 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_
OLDNEW
« no previous file with comments | « src/a64/lithium-codegen-a64.cc ('k') | src/a64/macro-assembler-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698