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

Side by Side Diff: src/assembler.cc

Issue 2166793002: [wasm] Use a C wrapper function to calculate F64Pow. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « src/assembler.h ('k') | src/compiler/wasm-compiler.h » ('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 (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 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 1149
1150 static void f64_asin_wrapper(double* param) { 1150 static void f64_asin_wrapper(double* param) {
1151 WriteDoubleValue(param, base::ieee754::asin(ReadDoubleValue(param))); 1151 WriteDoubleValue(param, base::ieee754::asin(ReadDoubleValue(param)));
1152 } 1152 }
1153 1153
1154 ExternalReference ExternalReference::f64_asin_wrapper_function( 1154 ExternalReference ExternalReference::f64_asin_wrapper_function(
1155 Isolate* isolate) { 1155 Isolate* isolate) {
1156 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_asin_wrapper))); 1156 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_asin_wrapper)));
1157 } 1157 }
1158 1158
1159 ExternalReference ExternalReference::wasm_float64_pow(Isolate* isolate) {
1160 return ExternalReference(
1161 Redirect(isolate, FUNCTION_ADDR(wasm::float64_pow_wrapper)));
1162 }
1163
1159 static void f64_mod_wrapper(double* param0, double* param1) { 1164 static void f64_mod_wrapper(double* param0, double* param1) {
1160 WriteDoubleValue(param0, 1165 WriteDoubleValue(param0,
1161 modulo(ReadDoubleValue(param0), ReadDoubleValue(param1))); 1166 modulo(ReadDoubleValue(param0), ReadDoubleValue(param1)));
1162 } 1167 }
1163 1168
1164 ExternalReference ExternalReference::f64_mod_wrapper_function( 1169 ExternalReference ExternalReference::f64_mod_wrapper_function(
1165 Isolate* isolate) { 1170 Isolate* isolate) {
1166 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_mod_wrapper))); 1171 return ExternalReference(Redirect(isolate, FUNCTION_ADDR(f64_mod_wrapper)));
1167 } 1172 }
1168 1173
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1893 1898
1894 1899
1895 void Assembler::DataAlign(int m) { 1900 void Assembler::DataAlign(int m) {
1896 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1901 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1897 while ((pc_offset() & (m - 1)) != 0) { 1902 while ((pc_offset() & (m - 1)) != 0) {
1898 db(0); 1903 db(0);
1899 } 1904 }
1900 } 1905 }
1901 } // namespace internal 1906 } // namespace internal
1902 } // namespace v8 1907 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/compiler/wasm-compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698