Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/s390/builtins-s390.cc

Issue 1989523002: PPC/S390: [es6] Reintroduce the instanceof operator in the backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ppc/interface-descriptors-ppc.cc ('k') | src/s390/code-stubs-s390.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 ExternalReference::get_date_field_function(masm->isolate()), 2); 1725 ExternalReference::get_date_field_function(masm->isolate()), 2);
1726 } 1726 }
1727 __ Ret(); 1727 __ Ret();
1728 1728
1729 // 3. Raise a TypeError if the receiver is not a date. 1729 // 3. Raise a TypeError if the receiver is not a date.
1730 __ bind(&receiver_not_date); 1730 __ bind(&receiver_not_date);
1731 __ TailCallRuntime(Runtime::kThrowNotDateError); 1731 __ TailCallRuntime(Runtime::kThrowNotDateError);
1732 } 1732 }
1733 1733
1734 // static 1734 // static
1735 void Builtins::Generate_FunctionHasInstance(MacroAssembler* masm) {
1736 // ----------- S t a t e -------------
1737 // -- r2 : argc
1738 // -- sp[0] : first argument (left-hand side)
1739 // -- sp[4] : receiver (right-hand side)
1740 // -----------------------------------
1741
1742 {
1743 FrameScope scope(masm, StackFrame::INTERNAL);
1744 __ LoadP(InstanceOfDescriptor::LeftRegister(),
1745 MemOperand(fp, 2 * kPointerSize)); // Load left-hand side.
1746 __ LoadP(InstanceOfDescriptor::RightRegister(),
1747 MemOperand(fp, 3 * kPointerSize)); // Load right-hand side.
1748 InstanceOfStub stub(masm->isolate(), true);
1749 __ CallStub(&stub);
1750 }
1751
1752 // Pop the argument and the receiver.
1753 __ Ret(2);
1754 }
1755
1756 // static
1757 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { 1735 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) {
1758 // ----------- S t a t e ------------- 1736 // ----------- S t a t e -------------
1759 // -- r2 : argc 1737 // -- r2 : argc
1760 // -- sp[0] : argArray 1738 // -- sp[0] : argArray
1761 // -- sp[4] : thisArg 1739 // -- sp[4] : thisArg
1762 // -- sp[8] : receiver 1740 // -- sp[8] : receiver
1763 // ----------------------------------- 1741 // -----------------------------------
1764 1742
1765 // 1. Load receiver into r3, argArray into r2 (if present), remove all 1743 // 1. Load receiver into r3, argArray into r2 (if present), remove all
1766 // arguments from the stack (including the receiver), and push thisArg (if 1744 // arguments from the stack (including the receiver), and push thisArg (if
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
2846 __ bkpt(0); 2824 __ bkpt(0);
2847 } 2825 }
2848 } 2826 }
2849 2827
2850 #undef __ 2828 #undef __
2851 2829
2852 } // namespace internal 2830 } // namespace internal
2853 } // namespace v8 2831 } // namespace v8
2854 2832
2855 #endif // V8_TARGET_ARCH_S390 2833 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/ppc/interface-descriptors-ppc.cc ('k') | src/s390/code-stubs-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698