| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 4047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4058 | 4058 |
| 4059 void CodeGenerator::GenerateMathCos(ZoneList<Expression*>* args) { | 4059 void CodeGenerator::GenerateMathCos(ZoneList<Expression*>* args) { |
| 4060 ASSERT_EQ(args->length(), 1); | 4060 ASSERT_EQ(args->length(), 1); |
| 4061 // Load the argument on the stack and jump to the runtime. | 4061 // Load the argument on the stack and jump to the runtime. |
| 4062 Load(args->at(0)); | 4062 Load(args->at(0)); |
| 4063 Result answer = frame_->CallRuntime(Runtime::kMath_cos, 1); | 4063 Result answer = frame_->CallRuntime(Runtime::kMath_cos, 1); |
| 4064 frame_->Push(&answer); | 4064 frame_->Push(&answer); |
| 4065 } | 4065 } |
| 4066 | 4066 |
| 4067 | 4067 |
| 4068 void CodeGenerator::GenerateNumberIsFinite(ZoneList<Expression*>* args) { |
| 4069 ASSERT_EQ(args->length(), 1); |
| 4070 // Load the argument on the stack and jump to the runtime. |
| 4071 Load(args->at(0)); |
| 4072 Result answer = frame_->CallRuntime(Runtime::kNumberIsFinite, 1); |
| 4073 frame_->Push(&answer); |
| 4074 } |
| 4075 |
| 4076 |
| 4068 void CodeGenerator::GenerateStringAdd(ZoneList<Expression*>* args) { | 4077 void CodeGenerator::GenerateStringAdd(ZoneList<Expression*>* args) { |
| 4069 ASSERT_EQ(2, args->length()); | 4078 ASSERT_EQ(2, args->length()); |
| 4070 | 4079 |
| 4071 Load(args->at(0)); | 4080 Load(args->at(0)); |
| 4072 Load(args->at(1)); | 4081 Load(args->at(1)); |
| 4073 | 4082 |
| 4074 StringAddStub stub(NO_STRING_ADD_FLAGS); | 4083 StringAddStub stub(NO_STRING_ADD_FLAGS); |
| 4075 Result answer = frame_->CallStub(&stub, 2); | 4084 Result answer = frame_->CallStub(&stub, 2); |
| 4076 frame_->Push(&answer); | 4085 frame_->Push(&answer); |
| 4077 } | 4086 } |
| (...skipping 5480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9558 // Call the function from C++. | 9567 // Call the function from C++. |
| 9559 return FUNCTION_CAST<ModuloFunction>(buffer); | 9568 return FUNCTION_CAST<ModuloFunction>(buffer); |
| 9560 } | 9569 } |
| 9561 | 9570 |
| 9562 #endif | 9571 #endif |
| 9563 | 9572 |
| 9564 | 9573 |
| 9565 #undef __ | 9574 #undef __ |
| 9566 | 9575 |
| 9567 } } // namespace v8::internal | 9576 } } // namespace v8::internal |
| OLD | NEW |