| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 3401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3412 RelocInfo::RUNTIME_ENTRY); | 3412 RelocInfo::RUNTIME_ENTRY); |
| 3413 frame_->EmitPush(r0); | 3413 frame_->EmitPush(r0); |
| 3414 } | 3414 } |
| 3415 | 3415 |
| 3416 | 3416 |
| 3417 void CodeGenerator::GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args) { | 3417 void CodeGenerator::GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args) { |
| 3418 VirtualFrame::SpilledScope spilled_scope; | 3418 VirtualFrame::SpilledScope spilled_scope; |
| 3419 LoadAndSpill(args->at(0)); | 3419 LoadAndSpill(args->at(0)); |
| 3420 switch (op) { | 3420 switch (op) { |
| 3421 case SIN: | 3421 case SIN: |
| 3422 __ CallRuntime(Runtime::kMath_sin, 1); | 3422 frame_->CallRuntime(Runtime::kMath_sin, 1); |
| 3423 break; | 3423 break; |
| 3424 case COS: | 3424 case COS: |
| 3425 __ CallRuntime(Runtime::kMath_cos, 1); | 3425 frame_->CallRuntime(Runtime::kMath_cos, 1); |
| 3426 break; | 3426 break; |
| 3427 } | 3427 } |
| 3428 frame_->EmitPush(r0); | 3428 frame_->EmitPush(r0); |
| 3429 } | 3429 } |
| 3430 | 3430 |
| 3431 | 3431 |
| 3432 void CodeGenerator::GenerateObjectEquals(ZoneList<Expression*>* args) { | 3432 void CodeGenerator::GenerateObjectEquals(ZoneList<Expression*>* args) { |
| 3433 VirtualFrame::SpilledScope spilled_scope; | 3433 VirtualFrame::SpilledScope spilled_scope; |
| 3434 ASSERT(args->length() == 2); | 3434 ASSERT(args->length() == 2); |
| 3435 | 3435 |
| (...skipping 2241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5677 __ mov(r2, Operand(0)); | 5677 __ mov(r2, Operand(0)); |
| 5678 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); | 5678 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); |
| 5679 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), | 5679 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), |
| 5680 RelocInfo::CODE_TARGET); | 5680 RelocInfo::CODE_TARGET); |
| 5681 } | 5681 } |
| 5682 | 5682 |
| 5683 | 5683 |
| 5684 #undef __ | 5684 #undef __ |
| 5685 | 5685 |
| 5686 } } // namespace v8::internal | 5686 } } // namespace v8::internal |
| OLD | NEW |