| Index: src/x64/codegen-x64.cc
|
| diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc
|
| index 28a522f344d0182ebdf0be05d80951ea4c683c73..e41888367a321e8673a7a78899607d1f41b26563 100644
|
| --- a/src/x64/codegen-x64.cc
|
| +++ b/src/x64/codegen-x64.cc
|
| @@ -4004,6 +4004,24 @@ void CodeGenerator::GenerateNumberToString(ZoneList<Expression*>* args) {
|
| }
|
|
|
|
|
| +void CodeGenerator::GenerateMathSin(ZoneList<Expression*>* args) {
|
| + ASSERT_EQ(args->length(), 1);
|
| + // Load the argument on the stack and jump to the runtime.
|
| + Load(args->at(0));
|
| + Result answer = frame_->CallRuntime(Runtime::kMath_sin, 1);
|
| + frame_->Push(&answer);
|
| +}
|
| +
|
| +
|
| +void CodeGenerator::GenerateMathCos(ZoneList<Expression*>* args) {
|
| + ASSERT_EQ(args->length(), 1);
|
| + // Load the argument on the stack and jump to the runtime.
|
| + Load(args->at(0));
|
| + Result answer = frame_->CallRuntime(Runtime::kMath_cos, 1);
|
| + frame_->Push(&answer);
|
| +}
|
| +
|
| +
|
| void CodeGenerator::GenerateStringAdd(ZoneList<Expression*>* args) {
|
| ASSERT_EQ(2, args->length());
|
|
|
|
|