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

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

Issue 136613003: Demystified floating point ABI function names. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 void PrepareCallCFunction(int num_reg_arguments, 1118 void PrepareCallCFunction(int num_reg_arguments,
1119 int num_double_registers, 1119 int num_double_registers,
1120 Register scratch); 1120 Register scratch);
1121 void PrepareCallCFunction(int num_reg_arguments, 1121 void PrepareCallCFunction(int num_reg_arguments,
1122 Register scratch); 1122 Register scratch);
1123 1123
1124 // There are two ways of passing double arguments on ARM, depending on 1124 // There are two ways of passing double arguments on ARM, depending on
1125 // whether soft or hard floating point ABI is used. These functions 1125 // whether soft or hard floating point ABI is used. These functions
1126 // abstract parameter passing for the three different ways we call 1126 // abstract parameter passing for the three different ways we call
1127 // C functions from generated code. 1127 // C functions from generated code.
1128 void SetCallCDoubleArguments(DwVfpRegister dreg); 1128 void MovToFloatParameter(DwVfpRegister src);
1129 void SetCallCDoubleArguments(DwVfpRegister dreg1, DwVfpRegister dreg2); 1129 void MovToFloatParameters(DwVfpRegister src1, DwVfpRegister src2);
1130 void SetCallCDoubleArguments(DwVfpRegister dreg, Register reg); 1130 void MovToFloatResult(DwVfpRegister src);
1131 1131
1132 // Calls a C function and cleans up the space for arguments allocated 1132 // Calls a C function and cleans up the space for arguments allocated
1133 // by PrepareCallCFunction. The called function is not allowed to trigger a 1133 // by PrepareCallCFunction. The called function is not allowed to trigger a
1134 // garbage collection, since that might move the code and invalidate the 1134 // garbage collection, since that might move the code and invalidate the
1135 // return address (unless this is somehow accounted for by the called 1135 // return address (unless this is somehow accounted for by the called
1136 // function). 1136 // function).
1137 void CallCFunction(ExternalReference function, int num_arguments); 1137 void CallCFunction(ExternalReference function, int num_arguments);
1138 void CallCFunction(Register function, int num_arguments); 1138 void CallCFunction(Register function, int num_arguments);
1139 void CallCFunction(ExternalReference function, 1139 void CallCFunction(ExternalReference function,
1140 int num_reg_arguments, 1140 int num_reg_arguments,
1141 int num_double_arguments); 1141 int num_double_arguments);
1142 void CallCFunction(Register function, 1142 void CallCFunction(Register function,
1143 int num_reg_arguments, 1143 int num_reg_arguments,
1144 int num_double_arguments); 1144 int num_double_arguments);
1145 1145
1146 void GetCFunctionDoubleResult(const DwVfpRegister dst); 1146 void MovFromFloatParameter(DwVfpRegister dst);
1147 void MovFromFloatResult(DwVfpRegister dst);
1147 1148
1148 // Calls an API function. Allocates HandleScope, extracts returned value 1149 // Calls an API function. Allocates HandleScope, extracts returned value
1149 // from handle and propagates exceptions. Restores context. stack_space 1150 // from handle and propagates exceptions. Restores context. stack_space
1150 // - space to be unwound on exit (includes the call JS arguments space and 1151 // - space to be unwound on exit (includes the call JS arguments space and
1151 // the additional space allocated for the fast call). 1152 // the additional space allocated for the fast call).
1152 void CallApiFunctionAndReturn(ExternalReference function, 1153 void CallApiFunctionAndReturn(ExternalReference function,
1153 Address function_address, 1154 Address function_address,
1154 ExternalReference thunk_ref, 1155 ExternalReference thunk_ref,
1155 Register thunk_last_arg, 1156 Register thunk_last_arg,
1156 int stack_space, 1157 int stack_space,
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1553 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1554 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1554 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1555 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1555 #else 1556 #else
1556 #define ACCESS_MASM(masm) masm-> 1557 #define ACCESS_MASM(masm) masm->
1557 #endif 1558 #endif
1558 1559
1559 1560
1560 } } // namespace v8::internal 1561 } } // namespace v8::internal
1561 1562
1562 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1563 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698