Implement truncated d-to-i as a stub on x86
authordanno@chromium.org <danno@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 12 Jul 2013 12:28:32 +0000 (12:28 +0000)
committerdanno@chromium.org <danno@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 12 Jul 2013 12:28:32 +0000 (12:28 +0000)
commit48b65f8cd51a96d562bd028c9c338d26c89a768d
tree4350eef8a1c67f456eb1c723f68f43e75686c580
parent4780c99790feeb72513380821690a3d61b565226
Implement truncated d-to-i as a stub on x86

- Added a general DoubleToIStub so that it's possible to extend to other platforms and non-truncating case.
- This version handles all cases of truncation (previous code deopted in some cases) and all source/destination register combinations without clobbering any temps.

R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/18612005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15645 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/code-stubs.h
src/ia32/code-stubs-ia32.cc
src/ia32/lithium-codegen-ia32.cc
test/cctest/cctest.gyp
test/cctest/test-code-stubs-ia32.cc [new file with mode: 0644]
test/mjsunit/double-truncation.js [new file with mode: 0644]