| 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 2920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2931 context()->Plug(r0); | 2931 context()->Plug(r0); |
| 2932 } | 2932 } |
| 2933 | 2933 |
| 2934 | 2934 |
| 2935 void FullCodeGenerator::EmitMathPow(CallRuntime* expr) { | 2935 void FullCodeGenerator::EmitMathPow(CallRuntime* expr) { |
| 2936 // Load the arguments on the stack and call the runtime function. | 2936 // Load the arguments on the stack and call the runtime function. |
| 2937 ZoneList<Expression*>* args = expr->arguments(); | 2937 ZoneList<Expression*>* args = expr->arguments(); |
| 2938 ASSERT(args->length() == 2); | 2938 ASSERT(args->length() == 2); |
| 2939 VisitForStackValue(args->at(0)); | 2939 VisitForStackValue(args->at(0)); |
| 2940 VisitForStackValue(args->at(1)); | 2940 VisitForStackValue(args->at(1)); |
| 2941 MathPowStub stub(MathPowStub::ON_STACK); | 2941 if (CpuFeatures::IsSupported(VFP3)) { |
| 2942 __ CallStub(&stub); | 2942 MathPowStub stub(MathPowStub::ON_STACK); |
| 2943 __ CallStub(&stub); |
| 2944 } else { |
| 2945 __ CallRuntime(Runtime::kMath_pow, 2); |
| 2946 } |
| 2943 context()->Plug(r0); | 2947 context()->Plug(r0); |
| 2944 } | 2948 } |
| 2945 | 2949 |
| 2946 | 2950 |
| 2947 void FullCodeGenerator::EmitSetValueOf(CallRuntime* expr) { | 2951 void FullCodeGenerator::EmitSetValueOf(CallRuntime* expr) { |
| 2948 ZoneList<Expression*>* args = expr->arguments(); | 2952 ZoneList<Expression*>* args = expr->arguments(); |
| 2949 ASSERT(args->length() == 2); | 2953 ASSERT(args->length() == 2); |
| 2950 VisitForStackValue(args->at(0)); // Load the object. | 2954 VisitForStackValue(args->at(0)); // Load the object. |
| 2951 VisitForAccumulatorValue(args->at(1)); // Load the value. | 2955 VisitForAccumulatorValue(args->at(1)); // Load the value. |
| 2952 __ pop(r1); // r0 = value. r1 = object. | 2956 __ pop(r1); // r0 = value. r1 = object. |
| (...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4386 *context_length = 0; | 4390 *context_length = 0; |
| 4387 return previous_; | 4391 return previous_; |
| 4388 } | 4392 } |
| 4389 | 4393 |
| 4390 | 4394 |
| 4391 #undef __ | 4395 #undef __ |
| 4392 | 4396 |
| 4393 } } // namespace v8::internal | 4397 } } // namespace v8::internal |
| 4394 | 4398 |
| 4395 #endif // V8_TARGET_ARCH_ARM | 4399 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |