| 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 __ Assert(equal, message); | 523 __ Assert(equal, message); |
| 524 __ pop(rcx); | 524 __ pop(rcx); |
| 525 } | 525 } |
| 526 | 526 |
| 527 GenerateFastCloneShallowArrayCommon(masm, length_, mode, | 527 GenerateFastCloneShallowArrayCommon(masm, length_, mode, |
| 528 allocation_site_mode_, | 528 allocation_site_mode_, |
| 529 &slow_case); | 529 &slow_case); |
| 530 __ ret(3 * kPointerSize); | 530 __ ret(3 * kPointerSize); |
| 531 | 531 |
| 532 __ bind(&slow_case); | 532 __ bind(&slow_case); |
| 533 __ TailCallRuntime(Runtime::kCreateArrayLiteralShallow, 3, 1); | 533 |
| 534 // Add a flags argument, carefully preserving the return address on the stack. |
| 535 int flags = allocation_site_mode_ == TRACK_ALLOCATION_SITE |
| 536 ? ArrayLiteral::kCreateAllocationSiteInfos |
| 537 : ArrayLiteral::kNoFlags; |
| 538 __ pop(rcx); |
| 539 __ Push(Smi::FromInt(flags)); |
| 540 __ push(rcx); |
| 541 __ TailCallRuntime(Runtime::kCreateArrayLiteralShallow, 4, 1); |
| 534 } | 542 } |
| 535 | 543 |
| 536 | 544 |
| 537 // The stub expects its argument on the stack and returns its result in tos_: | 545 // The stub expects its argument on the stack and returns its result in tos_: |
| 538 // zero for false, and a non-zero value for true. | 546 // zero for false, and a non-zero value for true. |
| 539 void ToBooleanStub::Generate(MacroAssembler* masm) { | 547 void ToBooleanStub::Generate(MacroAssembler* masm) { |
| 540 // This stub overrides SometimesSetsUpAFrame() to return false. That means | 548 // This stub overrides SometimesSetsUpAFrame() to return false. That means |
| 541 // we cannot call anything that could cause a GC from this stub. | 549 // we cannot call anything that could cause a GC from this stub. |
| 542 Label patch; | 550 Label patch; |
| 543 const Register argument = rax; | 551 const Register argument = rax; |
| (...skipping 6327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6871 #endif | 6879 #endif |
| 6872 | 6880 |
| 6873 __ Ret(); | 6881 __ Ret(); |
| 6874 } | 6882 } |
| 6875 | 6883 |
| 6876 #undef __ | 6884 #undef __ |
| 6877 | 6885 |
| 6878 } } // namespace v8::internal | 6886 } } // namespace v8::internal |
| 6879 | 6887 |
| 6880 #endif // V8_TARGET_ARCH_X64 | 6888 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |