OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 __ Branch(&argc_two_or_more, ne, a0, Operand(1)); | 337 __ Branch(&argc_two_or_more, ne, a0, Operand(1)); |
338 | 338 |
339 ASSERT(kSmiTag == 0); | 339 ASSERT(kSmiTag == 0); |
340 __ lw(a2, MemOperand(sp)); // Get the argument from the stack. | 340 __ lw(a2, MemOperand(sp)); // Get the argument from the stack. |
341 __ And(a3, a2, Operand(kIntptrSignBit | kSmiTagMask)); | 341 __ And(a3, a2, Operand(kIntptrSignBit | kSmiTagMask)); |
342 __ Branch(call_generic_code, eq, a3, Operand(zero_reg)); | 342 __ Branch(call_generic_code, eq, a3, Operand(zero_reg)); |
343 | 343 |
344 // Handle construction of an empty array of a certain size. Bail out if size | 344 // Handle construction of an empty array of a certain size. Bail out if size |
345 // is too large to actually allocate an elements array. | 345 // is too large to actually allocate an elements array. |
346 ASSERT(kSmiTag == 0); | 346 ASSERT(kSmiTag == 0); |
347 __ Branch(call_generic_code, ge, a2, | 347 __ Branch(call_generic_code, Ugreater_equal, a2, |
348 Operand(JSObject::kInitialMaxFastElementArray << kSmiTagSize)); | 348 Operand(JSObject::kInitialMaxFastElementArray << kSmiTagSize)); |
349 | 349 |
350 // a0: argc | 350 // a0: argc |
351 // a1: constructor | 351 // a1: constructor |
352 // a2: array_size (smi) | 352 // a2: array_size (smi) |
353 // sp[0]: argument | 353 // sp[0]: argument |
354 AllocateJSArray(masm, | 354 AllocateJSArray(masm, |
355 a1, | 355 a1, |
356 a2, | 356 a2, |
357 a3, | 357 a3, |
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1619 __ bind(&dont_adapt_arguments); | 1619 __ bind(&dont_adapt_arguments); |
1620 __ Jump(a3); | 1620 __ Jump(a3); |
1621 } | 1621 } |
1622 | 1622 |
1623 | 1623 |
1624 #undef __ | 1624 #undef __ |
1625 | 1625 |
1626 } } // namespace v8::internal | 1626 } } // namespace v8::internal |
1627 | 1627 |
1628 #endif // V8_TARGET_ARCH_MIPS | 1628 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |