OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 3572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3583 r1, JSValue::kValueOffset, r2, r3, kLRHasBeenSaved, kDontSaveFPRegs); | 3583 r1, JSValue::kValueOffset, r2, r3, kLRHasBeenSaved, kDontSaveFPRegs); |
3584 | 3584 |
3585 __ bind(&done); | 3585 __ bind(&done); |
3586 context()->Plug(r0); | 3586 context()->Plug(r0); |
3587 } | 3587 } |
3588 | 3588 |
3589 | 3589 |
3590 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { | 3590 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { |
3591 ZoneList<Expression*>* args = expr->arguments(); | 3591 ZoneList<Expression*>* args = expr->arguments(); |
3592 ASSERT_EQ(args->length(), 1); | 3592 ASSERT_EQ(args->length(), 1); |
3593 // Load the argument into r0 and call the stub. | 3593 // Load the argument on the stack and call the stub. |
3594 VisitForAccumulatorValue(args->at(0)); | 3594 VisitForStackValue(args->at(0)); |
3595 | 3595 |
3596 NumberToStringStub stub; | 3596 NumberToStringStub stub; |
3597 __ CallStub(&stub); | 3597 __ CallStub(&stub); |
3598 context()->Plug(r0); | 3598 context()->Plug(r0); |
3599 } | 3599 } |
3600 | 3600 |
3601 | 3601 |
3602 void FullCodeGenerator::EmitStringCharFromCode(CallRuntime* expr) { | 3602 void FullCodeGenerator::EmitStringCharFromCode(CallRuntime* expr) { |
3603 ZoneList<Expression*>* args = expr->arguments(); | 3603 ZoneList<Expression*>* args = expr->arguments(); |
3604 ASSERT(args->length() == 1); | 3604 ASSERT(args->length() == 1); |
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4983 Memory::uint32_at(interrupt_address_pointer)); | 4983 Memory::uint32_at(interrupt_address_pointer)); |
4984 return INTERRUPT; | 4984 return INTERRUPT; |
4985 } | 4985 } |
4986 } | 4986 } |
4987 #endif // DEBUG | 4987 #endif // DEBUG |
4988 | 4988 |
4989 | 4989 |
4990 } } // namespace v8::internal | 4990 } } // namespace v8::internal |
4991 | 4991 |
4992 #endif // V8_TARGET_ARCH_ARM | 4992 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |