|
6 | 6 | (type $4 (func)) |
7 | 7 | (type $5 (func (param i32 i32 i32) (result i32))) |
8 | 8 | (type $6 (func (param i32 i32 i32))) |
9 | | - (type $7 (func (param f32) (result i32))) |
10 | | - (type $8 (func (param f64) (result i32))) |
11 | | - (type $9 (func (param i32 i64 i32 i64 i32 i64 i32) (result i32))) |
12 | | - (type $10 (func (param i32 f64 i32) (result i32))) |
13 | | - (type $11 (func (param i32 i32 i32 i32))) |
14 | | - (type $12 (func (param i32 i32 i64) (result i32))) |
15 | | - (type $13 (func (result i32))) |
16 | | - (type $14 (func (param f32 i32) (result i32))) |
17 | | - (type $15 (func (param i32 i32 i32 i32 i32) (result i32))) |
18 | | - (type $16 (func (param f64 i32) (result i32))) |
19 | | - (type $17 (func (param i32 f32) (result i32))) |
20 | | - (type $18 (func (param i32 f64) (result i32))) |
| 9 | + (type $7 (func (param i32 i64 i32 i64 i32 i64 i32) (result i32))) |
| 10 | + (type $8 (func (param i32 f64 i32) (result i32))) |
| 11 | + (type $9 (func (param i32 i32 i32 i32))) |
| 12 | + (type $10 (func (param i32 i32 i64) (result i32))) |
| 13 | + (type $11 (func (result i32))) |
| 14 | + (type $12 (func (param f32 i32) (result i32))) |
| 15 | + (type $13 (func (param i32 i32 i32 i32 i32) (result i32))) |
| 16 | + (type $14 (func (param f64 i32) (result i32))) |
| 17 | + (type $15 (func (param i32 f32) (result i32))) |
| 18 | + (type $16 (func (param i32 f64) (result i32))) |
| 19 | + (type $17 (func (param f32) (result i32))) |
| 20 | + (type $18 (func (param f64) (result i32))) |
21 | 21 | (import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32))) |
22 | 22 | (global $~lib/util/number/_frc_plus (mut i64) (i64.const 0)) |
23 | 23 | (global $~lib/util/number/_frc_minus (mut i64) (i64.const 0)) |
|
3845 | 3845 | ) |
3846 | 3846 | (func $~lib/number/F32#toString (param $this f32) (param $radix i32) (result i32) |
3847 | 3847 | local.get $this |
3848 | | - call $~lib/util/number/dtoa32 |
| 3848 | + call $~lib/util/number/dtoa<f32> |
3849 | 3849 | return |
3850 | 3850 | ) |
3851 | 3851 | (func $~lib/rt/common/OBJECT#get:rtSize (param $this i32) (result i32) |
|
3967 | 3967 | ) |
3968 | 3968 | (func $~lib/number/F64#toString (param $this f64) (param $radix i32) (result i32) |
3969 | 3969 | local.get $this |
3970 | | - call $~lib/util/number/dtoa64 |
| 3970 | + call $~lib/util/number/dtoa<f64> |
3971 | 3971 | return |
3972 | 3972 | ) |
3973 | 3973 | (func $~lib/array/Array<f32>#get:dataStart (param $this i32) (result i32) |
|
5175 | 5175 | i32.add |
5176 | 5176 | global.set $~lib/memory/__stack_pointer |
5177 | 5177 | ) |
5178 | | - (func $~lib/util/number/dtoa32 (param $value f32) (result i32) |
5179 | | - (local $value|1 f64) |
5180 | | - (local $isSingle i32) |
5181 | | - (local $size i32) |
5182 | | - (local $result i32) |
5183 | | - (local $5 i32) |
5184 | | - global.get $~lib/memory/__stack_pointer |
5185 | | - i32.const 4 |
5186 | | - i32.sub |
5187 | | - global.set $~lib/memory/__stack_pointer |
5188 | | - call $~stack_check |
5189 | | - global.get $~lib/memory/__stack_pointer |
5190 | | - i32.const 0 |
5191 | | - i32.store |
5192 | | - block $~lib/util/number/dtoa_impl|inlined.0 (result i32) |
5193 | | - local.get $value |
5194 | | - f64.promote_f32 |
5195 | | - local.set $value|1 |
5196 | | - i32.const 1 |
5197 | | - local.set $isSingle |
5198 | | - local.get $value|1 |
5199 | | - f64.const 0 |
5200 | | - f64.eq |
5201 | | - if |
5202 | | - i32.const 32 |
5203 | | - br $~lib/util/number/dtoa_impl|inlined.0 |
5204 | | - end |
5205 | | - local.get $value|1 |
5206 | | - local.get $value|1 |
5207 | | - f64.sub |
5208 | | - f64.const 0 |
5209 | | - f64.eq |
5210 | | - i32.eqz |
5211 | | - if |
5212 | | - local.get $value|1 |
5213 | | - local.get $value|1 |
5214 | | - f64.ne |
5215 | | - if |
5216 | | - i32.const 64 |
5217 | | - br $~lib/util/number/dtoa_impl|inlined.0 |
5218 | | - end |
5219 | | - i32.const 96 |
5220 | | - i32.const 144 |
5221 | | - local.get $value|1 |
5222 | | - f64.const 0 |
5223 | | - f64.lt |
5224 | | - select |
5225 | | - br $~lib/util/number/dtoa_impl|inlined.0 |
5226 | | - end |
5227 | | - i32.const 176 |
5228 | | - local.get $value|1 |
5229 | | - local.get $isSingle |
5230 | | - call $~lib/util/number/dtoa_core |
5231 | | - i32.const 1 |
5232 | | - i32.shl |
5233 | | - local.set $size |
5234 | | - global.get $~lib/memory/__stack_pointer |
5235 | | - local.get $size |
5236 | | - i32.const 2 |
5237 | | - call $~lib/rt/itcms/__new |
5238 | | - local.tee $result |
5239 | | - i32.store |
5240 | | - local.get $result |
5241 | | - i32.const 176 |
5242 | | - local.get $size |
5243 | | - memory.copy |
5244 | | - local.get $result |
5245 | | - br $~lib/util/number/dtoa_impl|inlined.0 |
5246 | | - end |
5247 | | - local.set $5 |
5248 | | - global.get $~lib/memory/__stack_pointer |
5249 | | - i32.const 4 |
5250 | | - i32.add |
5251 | | - global.set $~lib/memory/__stack_pointer |
5252 | | - local.get $5 |
5253 | | - return |
5254 | | - ) |
5255 | | - (func $~lib/util/number/dtoa64 (param $value f64) (result i32) |
5256 | | - (local $value|1 f64) |
5257 | | - (local $isSingle i32) |
5258 | | - (local $size i32) |
5259 | | - (local $result i32) |
5260 | | - (local $5 i32) |
5261 | | - global.get $~lib/memory/__stack_pointer |
5262 | | - i32.const 4 |
5263 | | - i32.sub |
5264 | | - global.set $~lib/memory/__stack_pointer |
5265 | | - call $~stack_check |
5266 | | - global.get $~lib/memory/__stack_pointer |
5267 | | - i32.const 0 |
5268 | | - i32.store |
5269 | | - block $~lib/util/number/dtoa_impl|inlined.1 (result i32) |
5270 | | - local.get $value |
5271 | | - local.set $value|1 |
5272 | | - i32.const 0 |
5273 | | - local.set $isSingle |
5274 | | - local.get $value|1 |
5275 | | - f64.const 0 |
5276 | | - f64.eq |
5277 | | - if |
5278 | | - i32.const 32 |
5279 | | - br $~lib/util/number/dtoa_impl|inlined.1 |
5280 | | - end |
5281 | | - local.get $value|1 |
5282 | | - local.get $value|1 |
5283 | | - f64.sub |
5284 | | - f64.const 0 |
5285 | | - f64.eq |
5286 | | - i32.eqz |
5287 | | - if |
5288 | | - local.get $value|1 |
5289 | | - local.get $value|1 |
5290 | | - f64.ne |
5291 | | - if |
5292 | | - i32.const 64 |
5293 | | - br $~lib/util/number/dtoa_impl|inlined.1 |
5294 | | - end |
5295 | | - i32.const 96 |
5296 | | - i32.const 144 |
5297 | | - local.get $value|1 |
5298 | | - f64.const 0 |
5299 | | - f64.lt |
5300 | | - select |
5301 | | - br $~lib/util/number/dtoa_impl|inlined.1 |
5302 | | - end |
5303 | | - i32.const 176 |
5304 | | - local.get $value|1 |
5305 | | - local.get $isSingle |
5306 | | - call $~lib/util/number/dtoa_core |
5307 | | - i32.const 1 |
5308 | | - i32.shl |
5309 | | - local.set $size |
5310 | | - global.get $~lib/memory/__stack_pointer |
5311 | | - local.get $size |
5312 | | - i32.const 2 |
5313 | | - call $~lib/rt/itcms/__new |
5314 | | - local.tee $result |
5315 | | - i32.store |
5316 | | - local.get $result |
5317 | | - i32.const 176 |
5318 | | - local.get $size |
5319 | | - memory.copy |
5320 | | - local.get $result |
5321 | | - br $~lib/util/number/dtoa_impl|inlined.1 |
5322 | | - end |
5323 | | - local.set $5 |
5324 | | - global.get $~lib/memory/__stack_pointer |
5325 | | - i32.const 4 |
5326 | | - i32.add |
5327 | | - global.set $~lib/memory/__stack_pointer |
5328 | | - local.get $5 |
5329 | | - return |
5330 | | - ) |
5331 | 5178 | (func $~lib/util/number/dtoa<f32> (param $value f32) (result i32) |
5332 | 5179 | (local $value|1 f64) |
5333 | 5180 | (local $isSingle i32) |
|
5346 | 5193 | i32.const 4 |
5347 | 5194 | i32.eq |
5348 | 5195 | drop |
5349 | | - block $~lib/util/number/dtoa_impl|inlined.2 (result i32) |
| 5196 | + block $~lib/util/number/dtoa_impl|inlined.0 (result i32) |
5350 | 5197 | local.get $value |
5351 | 5198 | f64.promote_f32 |
5352 | 5199 | local.set $value|1 |
|
5357 | 5204 | f64.eq |
5358 | 5205 | if |
5359 | 5206 | i32.const 32 |
5360 | | - br $~lib/util/number/dtoa_impl|inlined.2 |
| 5207 | + br $~lib/util/number/dtoa_impl|inlined.0 |
5361 | 5208 | end |
5362 | 5209 | local.get $value|1 |
5363 | 5210 | local.get $value|1 |
|
5371 | 5218 | f64.ne |
5372 | 5219 | if |
5373 | 5220 | i32.const 64 |
5374 | | - br $~lib/util/number/dtoa_impl|inlined.2 |
| 5221 | + br $~lib/util/number/dtoa_impl|inlined.0 |
5375 | 5222 | end |
5376 | 5223 | i32.const 96 |
5377 | 5224 | i32.const 144 |
5378 | 5225 | local.get $value|1 |
5379 | 5226 | f64.const 0 |
5380 | 5227 | f64.lt |
5381 | 5228 | select |
5382 | | - br $~lib/util/number/dtoa_impl|inlined.2 |
| 5229 | + br $~lib/util/number/dtoa_impl|inlined.0 |
5383 | 5230 | end |
5384 | 5231 | i32.const 176 |
5385 | 5232 | local.get $value|1 |
|
5399 | 5246 | local.get $size |
5400 | 5247 | memory.copy |
5401 | 5248 | local.get $result |
5402 | | - br $~lib/util/number/dtoa_impl|inlined.2 |
| 5249 | + br $~lib/util/number/dtoa_impl|inlined.0 |
5403 | 5250 | end |
5404 | 5251 | local.set $5 |
5405 | 5252 | global.get $~lib/memory/__stack_pointer |
|
5427 | 5274 | i32.const 4 |
5428 | 5275 | i32.eq |
5429 | 5276 | drop |
5430 | | - block $~lib/util/number/dtoa_impl|inlined.3 (result i32) |
| 5277 | + block $~lib/util/number/dtoa_impl|inlined.1 (result i32) |
5431 | 5278 | local.get $value |
5432 | 5279 | local.set $value|1 |
5433 | 5280 | i32.const 0 |
|
5437 | 5284 | f64.eq |
5438 | 5285 | if |
5439 | 5286 | i32.const 32 |
5440 | | - br $~lib/util/number/dtoa_impl|inlined.3 |
| 5287 | + br $~lib/util/number/dtoa_impl|inlined.1 |
5441 | 5288 | end |
5442 | 5289 | local.get $value|1 |
5443 | 5290 | local.get $value|1 |
|
5451 | 5298 | f64.ne |
5452 | 5299 | if |
5453 | 5300 | i32.const 64 |
5454 | | - br $~lib/util/number/dtoa_impl|inlined.3 |
| 5301 | + br $~lib/util/number/dtoa_impl|inlined.1 |
5455 | 5302 | end |
5456 | 5303 | i32.const 96 |
5457 | 5304 | i32.const 144 |
5458 | 5305 | local.get $value|1 |
5459 | 5306 | f64.const 0 |
5460 | 5307 | f64.lt |
5461 | 5308 | select |
5462 | | - br $~lib/util/number/dtoa_impl|inlined.3 |
| 5309 | + br $~lib/util/number/dtoa_impl|inlined.1 |
5463 | 5310 | end |
5464 | 5311 | i32.const 176 |
5465 | 5312 | local.get $value|1 |
|
5479 | 5326 | local.get $size |
5480 | 5327 | memory.copy |
5481 | 5328 | local.get $result |
5482 | | - br $~lib/util/number/dtoa_impl|inlined.3 |
| 5329 | + br $~lib/util/number/dtoa_impl|inlined.1 |
5483 | 5330 | end |
5484 | 5331 | local.set $5 |
5485 | 5332 | global.get $~lib/memory/__stack_pointer |
|
0 commit comments