|
x86/x64 port of Math.floor(x/y) to use integer division for specific divisor.
Only handles when x is int32 and y is int32 constant.
BUG= v8:2038
Currently implemented by imul (not fpmul).
x86 and x64 algorithm differs a bit.
x86 implementation is kind of cumbersome, but I couldn't think of better ways.
Committed: https://code.google.com/p/v8/source/detail?r=11887
Total comments: 11
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+375 lines, -5 lines) |
Patch |
|
M |
src/hydrogen-instructions.h
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/hydrogen-instructions.cc
|
View
|
1
2
3
4
|
2 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
|
M |
src/ia32/disasm-ia32.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/ia32/lithium-codegen-ia32.cc
|
View
|
1
2
3
4
|
1 chunk |
+103 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ia32/lithium-ia32.h
|
View
|
1
2
3
4
|
3 chunks |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ia32/lithium-ia32.cc
|
View
|
1
2
3
4
|
1 chunk |
+47 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/x64/disasm-x64.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/x64/lithium-codegen-x64.cc
|
View
|
1
2
3
4
|
1 chunk |
+83 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/x64/lithium-x64.h
|
View
|
1
2
3
4
|
3 chunks |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/x64/lithium-x64.cc
|
View
|
1
2
3
4
|
1 chunk |
+45 lines, -2 lines |
0 comments
|
Download
|
|
A |
test/mjsunit/math-floor-of-div-minus-zero.js
|
View
|
1
2
3
4
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mjsunit.status
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|