| Index: src/ia32/codegen-ia32.cc
|
| diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc
|
| index a51edb37cede965c734112deb0ba4d6ec04d9378..4d6cb31208485daa83afa9a345b06fa5e2a76f83 100644
|
| --- a/src/ia32/codegen-ia32.cc
|
| +++ b/src/ia32/codegen-ia32.cc
|
| @@ -6522,6 +6522,22 @@ void CodeGenerator::GenerateNumberToString(ZoneList<Expression*>* args) {
|
| }
|
|
|
|
|
| +void CodeGenerator::GenerateCallFunction(ZoneList<Expression*>* args) {
|
| + Comment cmnt(masm_, "[ GenerateCallFunction");
|
| +
|
| + ASSERT(args->length() >= 2);
|
| +
|
| + int n_args = args->length() - 2; // for receiver and function.
|
| + Load(args->at(0)); // receiver
|
| + for (int i = 0; i < n_args; i++) {
|
| + Load(args->at(i + 1));
|
| + }
|
| + Load(args->at(n_args + 1)); // function
|
| + Result result = frame_->CallJSFunction(n_args);
|
| + frame_->Push(&result);
|
| +}
|
| +
|
| +
|
| // Generates the Math.pow method - only handles special cases and branches to
|
| // the runtime system if not.Please note - this function assumes that
|
| // the callsite has executed ToNumber on both arguments and that the
|
|
|