| 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 2754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2765 context()->Plug(eax); | 2765 context()->Plug(eax); |
| 2766 } | 2766 } |
| 2767 | 2767 |
| 2768 | 2768 |
| 2769 void FullCodeGenerator::EmitMathPow(ZoneList<Expression*>* args) { | 2769 void FullCodeGenerator::EmitMathPow(ZoneList<Expression*>* args) { |
| 2770 // Load the arguments on the stack and call the runtime function. | 2770 // Load the arguments on the stack and call the runtime function. |
| 2771 ASSERT(args->length() == 2); | 2771 ASSERT(args->length() == 2); |
| 2772 VisitForStackValue(args->at(0)); | 2772 VisitForStackValue(args->at(0)); |
| 2773 VisitForStackValue(args->at(1)); | 2773 VisitForStackValue(args->at(1)); |
| 2774 | 2774 |
| 2775 MathPowStub stub; | 2775 if (masm()->isolate()->cpu_features()->IsSupported(SSE2)) { |
| 2776 __ CallStub(&stub); | 2776 MathPowStub stub; |
| 2777 __ CallStub(&stub); |
| 2778 } else { |
| 2779 __ CallRuntime(Runtime::kMath_pow, 2); |
| 2780 } |
| 2777 context()->Plug(eax); | 2781 context()->Plug(eax); |
| 2778 } | 2782 } |
| 2779 | 2783 |
| 2780 | 2784 |
| 2781 void FullCodeGenerator::EmitSetValueOf(ZoneList<Expression*>* args) { | 2785 void FullCodeGenerator::EmitSetValueOf(ZoneList<Expression*>* args) { |
| 2782 ASSERT(args->length() == 2); | 2786 ASSERT(args->length() == 2); |
| 2783 | 2787 |
| 2784 VisitForStackValue(args->at(0)); // Load the object. | 2788 VisitForStackValue(args->at(0)); // Load the object. |
| 2785 VisitForAccumulatorValue(args->at(1)); // Load the value. | 2789 VisitForAccumulatorValue(args->at(1)); // Load the value. |
| 2786 __ pop(ebx); // eax = value. ebx = object. | 2790 __ pop(ebx); // eax = value. ebx = object. |
| (...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4269 // And return. | 4273 // And return. |
| 4270 __ ret(0); | 4274 __ ret(0); |
| 4271 } | 4275 } |
| 4272 | 4276 |
| 4273 | 4277 |
| 4274 #undef __ | 4278 #undef __ |
| 4275 | 4279 |
| 4276 } } // namespace v8::internal | 4280 } } // namespace v8::internal |
| 4277 | 4281 |
| 4278 #endif // V8_TARGET_ARCH_IA32 | 4282 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |