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

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

Issue 920173002: MIPS: new classes: no longer experimental. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@gsub-2014-02-12-fdcf3e59ba4af1aa3c5b31a18e615169c97958ab
Patch Set: Fixed pop order. Created 5 years, 10 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/mips/full-codegen-mips.cc ('k') | src/mips64/full-codegen-mips64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 __ jmp(&entry); 810 __ jmp(&entry);
811 __ bind(&loop); 811 __ bind(&loop);
812 __ dsll(at, a4, kPointerSizeLog2); 812 __ dsll(at, a4, kPointerSizeLog2);
813 __ Daddu(at, a2, Operand(at)); 813 __ Daddu(at, a2, Operand(at));
814 __ ld(at, MemOperand(at)); 814 __ ld(at, MemOperand(at));
815 __ push(at); 815 __ push(at);
816 __ bind(&entry); 816 __ bind(&entry);
817 __ Daddu(a4, a4, Operand(-1)); 817 __ Daddu(a4, a4, Operand(-1));
818 __ Branch(&loop, ge, a4, Operand(zero_reg)); 818 __ Branch(&loop, ge, a4, Operand(zero_reg));
819 819
820 __ Daddu(a0, a0, Operand(1));
821
822 // Handle step in.
823 Label skip_step_in;
824 ExternalReference debug_step_in_fp =
825 ExternalReference::debug_step_in_fp_address(masm->isolate());
826 __ li(a2, Operand(debug_step_in_fp));
827 __ ld(a2, MemOperand(a2));
828 __ Branch(&skip_step_in, eq, a2, Operand(zero_reg));
829
830 __ Push(a0, a1, a1);
831 __ CallRuntime(Runtime::kHandleStepInForDerivedConstructors, 1);
832 __ Pop(a0, a1);
833
834 __ bind(&skip_step_in);
835
836
820 // Call the function. 837 // Call the function.
821 // a0: number of arguments 838 // a0: number of arguments
822 // a1: constructor function 839 // a1: constructor function
823 __ Daddu(a0, a0, Operand(1));
824 ParameterCount actual(a0); 840 ParameterCount actual(a0);
825 __ InvokeFunction(a1, actual, CALL_FUNCTION, NullCallWrapper()); 841 __ InvokeFunction(a1, actual, CALL_FUNCTION, NullCallWrapper());
826 842
827 // Restore context from the frame. 843 // Restore context from the frame.
828 // v0: result 844 // v0: result
829 // sp[0]: number of arguments (smi-tagged) 845 // sp[0]: number of arguments (smi-tagged)
830 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 846 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
831 __ ld(a1, MemOperand(sp, 0)); 847 __ ld(a1, MemOperand(sp, 0));
832 848
833 // Leave construct frame. 849 // Leave construct frame.
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 __ break_(0xCC); 1685 __ break_(0xCC);
1670 } 1686 }
1671 } 1687 }
1672 1688
1673 1689
1674 #undef __ 1690 #undef __
1675 1691
1676 } } // namespace v8::internal 1692 } } // namespace v8::internal
1677 1693
1678 #endif // V8_TARGET_ARCH_MIPS64 1694 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698