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

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

Issue 185653004: Experimental parser: merge to r19637 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
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/elements-kind.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
129 Number.MIN_VALUE, 134 Number.MIN_VALUE,
130 3 * Number.MIN_VALUE, 135 3 * Number.MIN_VALUE,
131 max_denormal, 136 max_denormal,
137
132 min_normal, 138 min_normal,
133 repeating_decimal, 139 repeating_decimal,
134 finite_decimal, 140 finite_decimal,
135 smi, 141 smi,
136 power_of_two, 142 power_of_two,
137 small_non_smi, 143 small_non_smi,
138 large_non_smi, 144 large_non_smi,
139 Number.MAX_VALUE, 145 Number.MAX_VALUE,
140 Infinity 146 Infinity
141 ]; 147 ];
(...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)); 301 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)); 302 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)); 303 assertEquals(-results_powers_of_two[i][30], -left_operands[i] % -(2 << 30));
298 } 304 }
299 305
300 } 306 }
301 307
302 lithium_integer_mod(); 308 lithium_integer_mod();
303 %OptimizeFunctionOnNextCall(lithium_integer_mod) 309 %OptimizeFunctionOnNextCall(lithium_integer_mod)
304 lithium_integer_mod(); 310 lithium_integer_mod();
OLDNEW
« no previous file with comments | « test/mjsunit/deopt-with-fp-regs.js ('k') | test/mjsunit/elements-kind.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698