| 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; | 2941 MathPowStub stub(MathPowStub::ON_STACK); |
| 2942 __ CallStub(&stub); | 2942 __ CallStub(&stub); |
| 2943 context()->Plug(r0); | 2943 context()->Plug(r0); |
| 2944 } | 2944 } |
| 2945 | 2945 |
| 2946 | 2946 |
| 2947 void FullCodeGenerator::EmitSetValueOf(CallRuntime* expr) { | 2947 void FullCodeGenerator::EmitSetValueOf(CallRuntime* expr) { |
| 2948 ZoneList<Expression*>* args = expr->arguments(); | 2948 ZoneList<Expression*>* args = expr->arguments(); |
| 2949 ASSERT(args->length() == 2); | 2949 ASSERT(args->length() == 2); |
| 2950 VisitForStackValue(args->at(0)); // Load the object. | 2950 VisitForStackValue(args->at(0)); // Load the object. |
| 2951 VisitForAccumulatorValue(args->at(1)); // Load the value. | 2951 VisitForAccumulatorValue(args->at(1)); // Load the value. |
| (...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4386 *context_length = 0; | 4386 *context_length = 0; |
| 4387 return previous_; | 4387 return previous_; |
| 4388 } | 4388 } |
| 4389 | 4389 |
| 4390 | 4390 |
| 4391 #undef __ | 4391 #undef __ |
| 4392 | 4392 |
| 4393 } } // namespace v8::internal | 4393 } } // namespace v8::internal |
| 4394 | 4394 |
| 4395 #endif // V8_TARGET_ARCH_ARM | 4395 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |