| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 3320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3331 x1, JSValue::kValueOffset, x10, x11, kLRHasBeenSaved, kDontSaveFPRegs); | 3331 x1, JSValue::kValueOffset, x10, x11, kLRHasBeenSaved, kDontSaveFPRegs); |
| 3332 | 3332 |
| 3333 __ Bind(&done); | 3333 __ Bind(&done); |
| 3334 context()->Plug(x0); | 3334 context()->Plug(x0); |
| 3335 } | 3335 } |
| 3336 | 3336 |
| 3337 | 3337 |
| 3338 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { | 3338 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { |
| 3339 ZoneList<Expression*>* args = expr->arguments(); | 3339 ZoneList<Expression*>* args = expr->arguments(); |
| 3340 ASSERT_EQ(args->length(), 1); | 3340 ASSERT_EQ(args->length(), 1); |
| 3341 // Load the argument on the stack and call the stub. | 3341 |
| 3342 VisitForStackValue(args->at(0)); | 3342 // Load the argument into x0 and call the stub. |
| 3343 VisitForAccumulatorValue(args->at(0)); |
| 3343 | 3344 |
| 3344 NumberToStringStub stub; | 3345 NumberToStringStub stub; |
| 3345 __ CallStub(&stub); | 3346 __ CallStub(&stub); |
| 3346 context()->Plug(x0); | 3347 context()->Plug(x0); |
| 3347 } | 3348 } |
| 3348 | 3349 |
| 3349 | 3350 |
| 3350 void FullCodeGenerator::EmitStringCharFromCode(CallRuntime* expr) { | 3351 void FullCodeGenerator::EmitStringCharFromCode(CallRuntime* expr) { |
| 3351 ZoneList<Expression*>* args = expr->arguments(); | 3352 ZoneList<Expression*>* args = expr->arguments(); |
| 3352 ASSERT(args->length() == 1); | 3353 ASSERT(args->length() == 1); |
| (...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5038 return previous_; | 5039 return previous_; |
| 5039 } | 5040 } |
| 5040 | 5041 |
| 5041 | 5042 |
| 5042 #undef __ | 5043 #undef __ |
| 5043 | 5044 |
| 5044 | 5045 |
| 5045 } } // namespace v8::internal | 5046 } } // namespace v8::internal |
| 5046 | 5047 |
| 5047 #endif // V8_TARGET_ARCH_A64 | 5048 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |