| 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 2840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2851 __ bind(&done); | 2851 __ bind(&done); |
| 2852 context()->Plug(r0); | 2852 context()->Plug(r0); |
| 2853 } | 2853 } |
| 2854 | 2854 |
| 2855 | 2855 |
| 2856 void FullCodeGenerator::EmitMathPow(ZoneList<Expression*>* args) { | 2856 void FullCodeGenerator::EmitMathPow(ZoneList<Expression*>* args) { |
| 2857 // Load the arguments on the stack and call the runtime function. | 2857 // Load the arguments on the stack and call the runtime function. |
| 2858 ASSERT(args->length() == 2); | 2858 ASSERT(args->length() == 2); |
| 2859 VisitForStackValue(args->at(0)); | 2859 VisitForStackValue(args->at(0)); |
| 2860 VisitForStackValue(args->at(1)); | 2860 VisitForStackValue(args->at(1)); |
| 2861 __ CallRuntime(Runtime::kMath_pow, 2); | 2861 MathPowStub stub; |
| 2862 __ CallStub(&stub); |
| 2862 context()->Plug(r0); | 2863 context()->Plug(r0); |
| 2863 } | 2864 } |
| 2864 | 2865 |
| 2865 | 2866 |
| 2866 void FullCodeGenerator::EmitSetValueOf(ZoneList<Expression*>* args) { | 2867 void FullCodeGenerator::EmitSetValueOf(ZoneList<Expression*>* args) { |
| 2867 ASSERT(args->length() == 2); | 2868 ASSERT(args->length() == 2); |
| 2868 | 2869 |
| 2869 VisitForStackValue(args->at(0)); // Load the object. | 2870 VisitForStackValue(args->at(0)); // Load the object. |
| 2870 VisitForAccumulatorValue(args->at(1)); // Load the value. | 2871 VisitForAccumulatorValue(args->at(1)); // Load the value. |
| 2871 __ pop(r1); // r0 = value. r1 = object. | 2872 __ pop(r1); // r0 = value. r1 = object. |
| (...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4280 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 4281 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
| 4281 __ add(pc, r1, Operand(masm_->CodeObject())); | 4282 __ add(pc, r1, Operand(masm_->CodeObject())); |
| 4282 } | 4283 } |
| 4283 | 4284 |
| 4284 | 4285 |
| 4285 #undef __ | 4286 #undef __ |
| 4286 | 4287 |
| 4287 } } // namespace v8::internal | 4288 } } // namespace v8::internal |
| 4288 | 4289 |
| 4289 #endif // V8_TARGET_ARCH_ARM | 4290 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |