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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 Register argument = r2; | 194 Register argument = r2; |
195 Label not_cached, argument_is_string; | 195 Label not_cached, argument_is_string; |
196 NumberToStringStub::GenerateLookupNumberStringCache( | 196 NumberToStringStub::GenerateLookupNumberStringCache( |
197 masm, | 197 masm, |
198 r0, // Input. | 198 r0, // Input. |
199 argument, // Result. | 199 argument, // Result. |
200 r3, // Scratch. | 200 r3, // Scratch. |
201 r4, // Scratch. | 201 r4, // Scratch. |
202 r5, // Scratch. | 202 r5, // Scratch. |
203 false, // Is it a Smi? | |
204 ¬_cached); | 203 ¬_cached); |
205 __ IncrementCounter(counters->string_ctor_cached_number(), 1, r3, r4); | 204 __ IncrementCounter(counters->string_ctor_cached_number(), 1, r3, r4); |
206 __ bind(&argument_is_string); | 205 __ bind(&argument_is_string); |
207 | 206 |
208 // ----------- S t a t e ------------- | 207 // ----------- S t a t e ------------- |
209 // -- r2 : argument converted to string | 208 // -- r2 : argument converted to string |
210 // -- r1 : constructor function | 209 // -- r1 : constructor function |
211 // -- lr : return address | 210 // -- lr : return address |
212 // ----------------------------------- | 211 // ----------------------------------- |
213 | 212 |
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1476 __ bind(&dont_adapt_arguments); | 1475 __ bind(&dont_adapt_arguments); |
1477 __ Jump(r3); | 1476 __ Jump(r3); |
1478 } | 1477 } |
1479 | 1478 |
1480 | 1479 |
1481 #undef __ | 1480 #undef __ |
1482 | 1481 |
1483 } } // namespace v8::internal | 1482 } } // namespace v8::internal |
1484 | 1483 |
1485 #endif // V8_TARGET_ARCH_ARM | 1484 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |