OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 ExternalReference ExternalReference::wasm_int64_to_float64(Isolate* isolate) { | 1202 ExternalReference ExternalReference::wasm_int64_to_float64(Isolate* isolate) { |
1203 return ExternalReference( | 1203 return ExternalReference( |
1204 Redirect(isolate, FUNCTION_ADDR(wasm::int64_to_float64_wrapper))); | 1204 Redirect(isolate, FUNCTION_ADDR(wasm::int64_to_float64_wrapper))); |
1205 } | 1205 } |
1206 | 1206 |
1207 ExternalReference ExternalReference::wasm_uint64_to_float64(Isolate* isolate) { | 1207 ExternalReference ExternalReference::wasm_uint64_to_float64(Isolate* isolate) { |
1208 return ExternalReference( | 1208 return ExternalReference( |
1209 Redirect(isolate, FUNCTION_ADDR(wasm::uint64_to_float64_wrapper))); | 1209 Redirect(isolate, FUNCTION_ADDR(wasm::uint64_to_float64_wrapper))); |
1210 } | 1210 } |
1211 | 1211 |
| 1212 ExternalReference ExternalReference::wasm_float32_to_int64(Isolate* isolate) { |
| 1213 return ExternalReference( |
| 1214 Redirect(isolate, FUNCTION_ADDR(wasm::float32_to_int64_wrapper))); |
| 1215 } |
| 1216 |
| 1217 ExternalReference ExternalReference::wasm_float32_to_uint64(Isolate* isolate) { |
| 1218 return ExternalReference( |
| 1219 Redirect(isolate, FUNCTION_ADDR(wasm::float32_to_uint64_wrapper))); |
| 1220 } |
| 1221 |
| 1222 ExternalReference ExternalReference::wasm_float64_to_int64(Isolate* isolate) { |
| 1223 return ExternalReference( |
| 1224 Redirect(isolate, FUNCTION_ADDR(wasm::float64_to_int64_wrapper))); |
| 1225 } |
| 1226 |
| 1227 ExternalReference ExternalReference::wasm_float64_to_uint64(Isolate* isolate) { |
| 1228 return ExternalReference( |
| 1229 Redirect(isolate, FUNCTION_ADDR(wasm::float64_to_uint64_wrapper))); |
| 1230 } |
| 1231 |
1212 static void f64_acos_wrapper(double* param) { *param = std::acos(*param); } | 1232 static void f64_acos_wrapper(double* param) { *param = std::acos(*param); } |
1213 | 1233 |
1214 ExternalReference ExternalReference::f64_acos_wrapper_function( | 1234 ExternalReference ExternalReference::f64_acos_wrapper_function( |
1215 Isolate* isolate) { | 1235 Isolate* isolate) { |
1216 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_acos_wrapper))); | 1236 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_acos_wrapper))); |
1217 } | 1237 } |
1218 | 1238 |
1219 static void f64_asin_wrapper(double* param) { *param = std::asin(*param); } | 1239 static void f64_asin_wrapper(double* param) { *param = std::asin(*param); } |
1220 | 1240 |
1221 ExternalReference ExternalReference::f64_asin_wrapper_function( | 1241 ExternalReference ExternalReference::f64_asin_wrapper_function( |
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2033 | 2053 |
2034 | 2054 |
2035 void Assembler::DataAlign(int m) { | 2055 void Assembler::DataAlign(int m) { |
2036 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 2056 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
2037 while ((pc_offset() & (m - 1)) != 0) { | 2057 while ((pc_offset() & (m - 1)) != 0) { |
2038 db(0); | 2058 db(0); |
2039 } | 2059 } |
2040 } | 2060 } |
2041 } // namespace internal | 2061 } // namespace internal |
2042 } // namespace v8 | 2062 } // namespace v8 |
OLD | NEW |