Added fast support for Math.pow. This simply calculates the result using the
authorricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 26 Feb 2010 10:24:58 +0000 (10:24 +0000)
committerricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 26 Feb 2010 10:24:58 +0000 (10:24 +0000)
commit496868722f8d3c9ea123be39d18e33093acf145c
treee8f957cc62cffd29486d2f91a12b65dfec5cdc4b
parent893637a05718ee561b7a87f9ec8ccfbd03b1fab3
Added fast support for Math.pow. This simply calculates the result using the
same method as the old powi version in runtime.cc and also checks if
the exponent is 0.5 or -0.5 in which case we calculate the square root or
reciprocal value of the square root.

Review URL: http://codereview.chromium.org/660072

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3964 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
14 files changed:
src/arm/codegen-arm.cc
src/arm/codegen-arm.h
src/codegen.cc
src/ia32/assembler-ia32.cc
src/ia32/assembler-ia32.h
src/ia32/codegen-ia32.cc
src/ia32/codegen-ia32.h
src/math.js
src/mips/codegen-mips.cc
src/mips/codegen-mips.h
src/runtime.cc
src/runtime.h
src/x64/codegen-x64.cc
src/x64/codegen-x64.h