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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 Register argument = a2; | 202 Register argument = a2; |
203 Label not_cached, argument_is_string; | 203 Label not_cached, argument_is_string; |
204 NumberToStringStub::GenerateLookupNumberStringCache( | 204 NumberToStringStub::GenerateLookupNumberStringCache( |
205 masm, | 205 masm, |
206 a0, // Input. | 206 a0, // Input. |
207 argument, // Result. | 207 argument, // Result. |
208 a3, // Scratch. | 208 a3, // Scratch. |
209 t0, // Scratch. | 209 t0, // Scratch. |
210 t1, // Scratch. | 210 t1, // Scratch. |
211 false, // Is it a Smi? | |
212 ¬_cached); | 211 ¬_cached); |
213 __ IncrementCounter(counters->string_ctor_cached_number(), 1, a3, t0); | 212 __ IncrementCounter(counters->string_ctor_cached_number(), 1, a3, t0); |
214 __ bind(&argument_is_string); | 213 __ bind(&argument_is_string); |
215 | 214 |
216 // ----------- S t a t e ------------- | 215 // ----------- S t a t e ------------- |
217 // -- a2 : argument converted to string | 216 // -- a2 : argument converted to string |
218 // -- a1 : constructor function | 217 // -- a1 : constructor function |
219 // -- ra : return address | 218 // -- ra : return address |
220 // ----------------------------------- | 219 // ----------------------------------- |
221 | 220 |
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1516 __ bind(&dont_adapt_arguments); | 1515 __ bind(&dont_adapt_arguments); |
1517 __ Jump(a3); | 1516 __ Jump(a3); |
1518 } | 1517 } |
1519 | 1518 |
1520 | 1519 |
1521 #undef __ | 1520 #undef __ |
1522 | 1521 |
1523 } } // namespace v8::internal | 1522 } } // namespace v8::internal |
1524 | 1523 |
1525 #endif // V8_TARGET_ARCH_MIPS | 1524 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |