| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 __ Cbz(argc, &no_arguments); | 182 __ Cbz(argc, &no_arguments); |
| 183 // First args = sp[(argc - 1) * 8]. | 183 // First args = sp[(argc - 1) * 8]. |
| 184 __ Sub(argc, argc, 1); | 184 __ Sub(argc, argc, 1); |
| 185 __ Claim(argc, kXRegSizeInBytes); | 185 __ Claim(argc, kXRegSizeInBytes); |
| 186 // jssp now point to args[0], load and drop args[0] + receiver. | 186 // jssp now point to args[0], load and drop args[0] + receiver. |
| 187 // TODO(jbramley): Consider adding ClaimAndPoke. | 187 // TODO(jbramley): Consider adding ClaimAndPoke. |
| 188 __ Ldr(argc, MemOperand(jssp, 2 * kPointerSize, PostIndex)); | 188 __ Ldr(argc, MemOperand(jssp, 2 * kPointerSize, PostIndex)); |
| 189 | 189 |
| 190 Register argument = x2; | 190 Register argument = x2; |
| 191 Label not_cached, argument_is_string; | 191 Label not_cached, argument_is_string; |
| 192 NumberToStringStub::GenerateLookupNumberStringCache( | 192 __ LookupNumberStringCache(argc, // Input. |
| 193 masm, | 193 argument, // Result. |
| 194 argc, // Input. | 194 x10, // Scratch. |
| 195 argument, // Result. | 195 x11, // Scratch. |
| 196 x10, // Scratch. | 196 x12, // Scratch. |
| 197 x11, // Scratch. | 197 ¬_cached); |
| 198 x12, // Scratch. | |
| 199 ¬_cached); | |
| 200 __ IncrementCounter(counters->string_ctor_cached_number(), 1, x10, x11); | 198 __ IncrementCounter(counters->string_ctor_cached_number(), 1, x10, x11); |
| 201 __ Bind(&argument_is_string); | 199 __ Bind(&argument_is_string); |
| 202 | 200 |
| 203 // ----------- S t a t e ------------- | 201 // ----------- S t a t e ------------- |
| 204 // -- x2 : argument converted to string | 202 // -- x2 : argument converted to string |
| 205 // -- x1 : constructor function | 203 // -- x1 : constructor function |
| 206 // -- lr : return address | 204 // -- lr : return address |
| 207 // ----------------------------------- | 205 // ----------------------------------- |
| 208 | 206 |
| 209 Label gc_required; | 207 Label gc_required; |
| (...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1440 __ Bind(&dont_adapt_arguments); | 1438 __ Bind(&dont_adapt_arguments); |
| 1441 __ Jump(x3); | 1439 __ Jump(x3); |
| 1442 } | 1440 } |
| 1443 | 1441 |
| 1444 | 1442 |
| 1445 #undef __ | 1443 #undef __ |
| 1446 | 1444 |
| 1447 } } // namespace v8::internal | 1445 } } // namespace v8::internal |
| 1448 | 1446 |
| 1449 #endif // V8_TARGET_ARCH_ARM | 1447 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |