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 2802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2813 context()->Plug(rax); | 2813 context()->Plug(rax); |
2814 } | 2814 } |
2815 | 2815 |
2816 | 2816 |
2817 void FullCodeGenerator::EmitMathPow(CallRuntime* expr) { | 2817 void FullCodeGenerator::EmitMathPow(CallRuntime* expr) { |
2818 // Load the arguments on the stack and call the runtime function. | 2818 // Load the arguments on the stack and call the runtime function. |
2819 ZoneList<Expression*>* args = expr->arguments(); | 2819 ZoneList<Expression*>* args = expr->arguments(); |
2820 ASSERT(args->length() == 2); | 2820 ASSERT(args->length() == 2); |
2821 VisitForStackValue(args->at(0)); | 2821 VisitForStackValue(args->at(0)); |
2822 VisitForStackValue(args->at(1)); | 2822 VisitForStackValue(args->at(1)); |
2823 MathPowStub stub; | 2823 MathPowStub stub(MathPowStub::ON_STACK); |
2824 __ CallStub(&stub); | 2824 __ CallStub(&stub); |
2825 context()->Plug(rax); | 2825 context()->Plug(rax); |
2826 } | 2826 } |
2827 | 2827 |
2828 | 2828 |
2829 void FullCodeGenerator::EmitSetValueOf(CallRuntime* expr) { | 2829 void FullCodeGenerator::EmitSetValueOf(CallRuntime* expr) { |
2830 ZoneList<Expression*>* args = expr->arguments(); | 2830 ZoneList<Expression*>* args = expr->arguments(); |
2831 ASSERT(args->length() == 2); | 2831 ASSERT(args->length() == 2); |
2832 | 2832 |
2833 VisitForStackValue(args->at(0)); // Load the object. | 2833 VisitForStackValue(args->at(0)); // Load the object. |
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4346 *context_length = 0; | 4346 *context_length = 0; |
4347 return previous_; | 4347 return previous_; |
4348 } | 4348 } |
4349 | 4349 |
4350 | 4350 |
4351 #undef __ | 4351 #undef __ |
4352 | 4352 |
4353 } } // namespace v8::internal | 4353 } } // namespace v8::internal |
4354 | 4354 |
4355 #endif // V8_TARGET_ARCH_X64 | 4355 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |