| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 NumberToStringStub::GenerateLookupNumberStringCache( |
| 193 masm, | 193 masm, |
| 194 argc, // Input. | 194 argc, // Input. |
| 195 argument, // Result. | 195 argument, // Result. |
| 196 x10, // Scratch. | 196 x10, // Scratch. |
| 197 x11, // Scratch. | 197 x11, // Scratch. |
| 198 x12, // Scratch. | 198 x12, // Scratch. |
| 199 NumberToStringStub::OBJECT_IS_NOT_SMI, // Is it a Smi? | |
| 200 ¬_cached); | 199 ¬_cached); |
| 201 __ IncrementCounter(counters->string_ctor_cached_number(), 1, x10, x11); | 200 __ IncrementCounter(counters->string_ctor_cached_number(), 1, x10, x11); |
| 202 __ Bind(&argument_is_string); | 201 __ Bind(&argument_is_string); |
| 203 | 202 |
| 204 // ----------- S t a t e ------------- | 203 // ----------- S t a t e ------------- |
| 205 // -- x2 : argument converted to string | 204 // -- x2 : argument converted to string |
| 206 // -- x1 : constructor function | 205 // -- x1 : constructor function |
| 207 // -- lr : return address | 206 // -- lr : return address |
| 208 // ----------------------------------- | 207 // ----------------------------------- |
| 209 | 208 |
| (...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 __ Bind(&dont_adapt_arguments); | 1458 __ Bind(&dont_adapt_arguments); |
| 1460 __ Jump(x3); | 1459 __ Jump(x3); |
| 1461 } | 1460 } |
| 1462 | 1461 |
| 1463 | 1462 |
| 1464 #undef __ | 1463 #undef __ |
| 1465 | 1464 |
| 1466 } } // namespace v8::internal | 1465 } } // namespace v8::internal |
| 1467 | 1466 |
| 1468 #endif // V8_TARGET_ARCH_ARM | 1467 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |