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

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

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 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 | « test/mjsunit/deopt-with-fp-regs.js ('k') | test/mjsunit/function-arguments-duplicate.js » ('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 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
130 // Due to a bug in fmod(), modulos involving denormals
131 // return the wrong result for glibc <= 2.16.
132 // Details: http://sourceware.org/bugzilla/show_bug.cgi?id=14048
133
134 Number.MIN_VALUE, 129 Number.MIN_VALUE,
135 3 * Number.MIN_VALUE, 130 3 * Number.MIN_VALUE,
136 max_denormal, 131 max_denormal,
137
138 min_normal, 132 min_normal,
139 repeating_decimal, 133 repeating_decimal,
140 finite_decimal, 134 finite_decimal,
141 smi, 135 smi,
142 power_of_two, 136 power_of_two,
143 small_non_smi, 137 small_non_smi,
144 large_non_smi, 138 large_non_smi,
145 Number.MAX_VALUE, 139 Number.MAX_VALUE,
146 Infinity 140 Infinity
147 ]; 141 ];
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 assertEquals(-results_powers_of_two[i][28], -left_operands[i] % -(2 << 28)); 295 assertEquals(-results_powers_of_two[i][28], -left_operands[i] % -(2 << 28));
302 assertEquals(-results_powers_of_two[i][29], -left_operands[i] % (2 << 29)); 296 assertEquals(-results_powers_of_two[i][29], -left_operands[i] % (2 << 29));
303 assertEquals(-results_powers_of_two[i][30], -left_operands[i] % -(2 << 30)); 297 assertEquals(-results_powers_of_two[i][30], -left_operands[i] % -(2 << 30));
304 } 298 }
305 299
306 } 300 }
307 301
308 lithium_integer_mod(); 302 lithium_integer_mod();
309 %OptimizeFunctionOnNextCall(lithium_integer_mod) 303 %OptimizeFunctionOnNextCall(lithium_integer_mod)
310 lithium_integer_mod(); 304 lithium_integer_mod();
OLDNEW
« no previous file with comments | « test/mjsunit/deopt-with-fp-regs.js ('k') | test/mjsunit/function-arguments-duplicate.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698