| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3063 | 3063 |
| 3064 | 3064 |
| 3065 void LCodeGen::DoMathLog(LUnaryMathOperation* instr) { | 3065 void LCodeGen::DoMathLog(LUnaryMathOperation* instr) { |
| 3066 ASSERT(ToDoubleRegister(instr->result()).is(f4)); | 3066 ASSERT(ToDoubleRegister(instr->result()).is(f4)); |
| 3067 TranscendentalCacheStub stub(TranscendentalCache::LOG, | 3067 TranscendentalCacheStub stub(TranscendentalCache::LOG, |
| 3068 TranscendentalCacheStub::UNTAGGED); | 3068 TranscendentalCacheStub::UNTAGGED); |
| 3069 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | 3069 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
| 3070 } | 3070 } |
| 3071 | 3071 |
| 3072 | 3072 |
| 3073 void LCodeGen::DoMathTan(LUnaryMathOperation* instr) { |
| 3074 ASSERT(ToDoubleRegister(instr->result()).is(f4)); |
| 3075 TranscendentalCacheStub stub(TranscendentalCache::TAN, |
| 3076 TranscendentalCacheStub::UNTAGGED); |
| 3077 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
| 3078 } |
| 3079 |
| 3080 |
| 3073 void LCodeGen::DoMathCos(LUnaryMathOperation* instr) { | 3081 void LCodeGen::DoMathCos(LUnaryMathOperation* instr) { |
| 3074 ASSERT(ToDoubleRegister(instr->result()).is(f4)); | 3082 ASSERT(ToDoubleRegister(instr->result()).is(f4)); |
| 3075 TranscendentalCacheStub stub(TranscendentalCache::COS, | 3083 TranscendentalCacheStub stub(TranscendentalCache::COS, |
| 3076 TranscendentalCacheStub::UNTAGGED); | 3084 TranscendentalCacheStub::UNTAGGED); |
| 3077 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | 3085 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
| 3078 } | 3086 } |
| 3079 | 3087 |
| 3080 | 3088 |
| 3081 void LCodeGen::DoMathSin(LUnaryMathOperation* instr) { | 3089 void LCodeGen::DoMathSin(LUnaryMathOperation* instr) { |
| 3082 ASSERT(ToDoubleRegister(instr->result()).is(f4)); | 3090 ASSERT(ToDoubleRegister(instr->result()).is(f4)); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3102 break; | 3110 break; |
| 3103 case kMathPowHalf: | 3111 case kMathPowHalf: |
| 3104 DoMathPowHalf(instr); | 3112 DoMathPowHalf(instr); |
| 3105 break; | 3113 break; |
| 3106 case kMathCos: | 3114 case kMathCos: |
| 3107 DoMathCos(instr); | 3115 DoMathCos(instr); |
| 3108 break; | 3116 break; |
| 3109 case kMathSin: | 3117 case kMathSin: |
| 3110 DoMathSin(instr); | 3118 DoMathSin(instr); |
| 3111 break; | 3119 break; |
| 3120 case kMathTan: |
| 3121 DoMathTan(instr); |
| 3122 break; |
| 3112 case kMathLog: | 3123 case kMathLog: |
| 3113 DoMathLog(instr); | 3124 DoMathLog(instr); |
| 3114 break; | 3125 break; |
| 3115 default: | 3126 default: |
| 3116 Abort("Unimplemented type of LUnaryMathOperation."); | 3127 Abort("Unimplemented type of LUnaryMathOperation."); |
| 3117 UNREACHABLE(); | 3128 UNREACHABLE(); |
| 3118 } | 3129 } |
| 3119 } | 3130 } |
| 3120 | 3131 |
| 3121 | 3132 |
| (...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4631 ASSERT(!environment->HasBeenRegistered()); | 4642 ASSERT(!environment->HasBeenRegistered()); |
| 4632 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); | 4643 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); |
| 4633 ASSERT(osr_pc_offset_ == -1); | 4644 ASSERT(osr_pc_offset_ == -1); |
| 4634 osr_pc_offset_ = masm()->pc_offset(); | 4645 osr_pc_offset_ = masm()->pc_offset(); |
| 4635 } | 4646 } |
| 4636 | 4647 |
| 4637 | 4648 |
| 4638 #undef __ | 4649 #undef __ |
| 4639 | 4650 |
| 4640 } } // namespace v8::internal | 4651 } } // namespace v8::internal |
| OLD | NEW |