Use the correct version of CallRuntime in the arm code generator.

This fixes assertion failures in debug mode tests.
Review URL: http://codereview.chromium.org/126128

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2171 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ager@chromium.org 2009-06-15 14:27:57 +00:00
parent 622e13f573
commit 00107efb02

View File

@ -3419,10 +3419,10 @@ void CodeGenerator::GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args) {
LoadAndSpill(args->at(0)); LoadAndSpill(args->at(0));
switch (op) { switch (op) {
case SIN: case SIN:
__ CallRuntime(Runtime::kMath_sin, 1); frame_->CallRuntime(Runtime::kMath_sin, 1);
break; break;
case COS: case COS:
__ CallRuntime(Runtime::kMath_cos, 1); frame_->CallRuntime(Runtime::kMath_cos, 1);
break; break;
} }
frame_->EmitPush(r0); frame_->EmitPush(r0);