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

Side by Side Diff: test/mjsunit/div-mod.js

Issue 131383004: [not for landing] Diff between a64 and r19234 for no-a64 files. (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
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 var finite_decimal = 0.5; 119 var finite_decimal = 0.5;
120 var smi = 43; 120 var smi = 43;
121 var power_of_two = 64; 121 var power_of_two = 64;
122 var min_normal = Number.MIN_VALUE * Math.pow(2, 52); 122 var min_normal = Number.MIN_VALUE * Math.pow(2, 52);
123 var max_denormal = Number.MIN_VALUE * (Math.pow(2, 52) - 1); 123 var max_denormal = Number.MIN_VALUE * (Math.pow(2, 52) - 1);
124 124
125 // All combinations of NaN, Infinity, normal, denormal and zero. 125 // All combinations of NaN, Infinity, normal, denormal and zero.
126 var example_numbers = [ 126 var example_numbers = [
127 NaN, 127 NaN,
128 0, 128 0,
129 Number.MIN_VALUE, 129
130 3 * Number.MIN_VALUE, 130 // TODO(all): due to a bug in fmod(), modulos involving denormals
ulan 2014/02/11 17:24:26 Remove before merge?
Rodolph Perfetta 2014/02/11 17:58:29 Yes but maybe leave a comment that those tests may
131 max_denormal, 131 // return the wrong result for glibc <= 2.16. Restore these cases when
132 // development machines have been upgraded.
133 // Details: http://sourceware.org/bugzilla/show_bug.cgi?id=14048
134
135 // Number.MIN_VALUE,
136 // 3 * Number.MIN_VALUE,
137 // max_denormal,
138
132 min_normal, 139 min_normal,
133 repeating_decimal, 140 repeating_decimal,
134 finite_decimal, 141 finite_decimal,
135 smi, 142 smi,
136 power_of_two, 143 power_of_two,
137 small_non_smi, 144 small_non_smi,
138 large_non_smi, 145 large_non_smi,
139 Number.MAX_VALUE, 146 Number.MAX_VALUE,
140 Infinity 147 Infinity
141 ]; 148 ];
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 assertEquals(-results_powers_of_two[i][28], -left_operands[i] % -(2 << 28)); 302 assertEquals(-results_powers_of_two[i][28], -left_operands[i] % -(2 << 28));
296 assertEquals(-results_powers_of_two[i][29], -left_operands[i] % (2 << 29)); 303 assertEquals(-results_powers_of_two[i][29], -left_operands[i] % (2 << 29));
297 assertEquals(-results_powers_of_two[i][30], -left_operands[i] % -(2 << 30)); 304 assertEquals(-results_powers_of_two[i][30], -left_operands[i] % -(2 << 30));
298 } 305 }
299 306
300 } 307 }
301 308
302 lithium_integer_mod(); 309 lithium_integer_mod();
303 %OptimizeFunctionOnNextCall(lithium_integer_mod) 310 %OptimizeFunctionOnNextCall(lithium_integer_mod)
304 lithium_integer_mod(); 311 lithium_integer_mod();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698