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

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

Issue 2163603003: Revert of [builtins] Introduce a builtin for Abort(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/builtins/mips/builtins-mips.cc ('k') | src/builtins/x64/builtins-x64.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 2770 matching lines...) Expand 10 before | Expand all | Expand 10 after
2781 // -- ra : return address 2781 // -- ra : return address
2782 // ----------------------------------- 2782 // -----------------------------------
2783 __ SmiTag(a0); 2783 __ SmiTag(a0);
2784 __ Move(a1, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); 2784 __ Move(a1, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE)));
2785 __ Push(a0, a1); 2785 __ Push(a0, a1);
2786 __ Move(cp, Smi::FromInt(0)); 2786 __ Move(cp, Smi::FromInt(0));
2787 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); 2787 __ TailCallRuntime(Runtime::kAllocateInTargetSpace);
2788 } 2788 }
2789 2789
2790 // static 2790 // static
2791 void Builtins::Generate_Abort(MacroAssembler* masm) {
2792 // ----------- S t a t e -------------
2793 // -- a0 : message_id as Smi
2794 // -- ra : return address
2795 // -----------------------------------
2796 __ Push(a0);
2797 __ Move(cp, Smi::FromInt(0));
2798 __ TailCallRuntime(Runtime::kAbort);
2799 }
2800
2801 // static
2802 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { 2791 void Builtins::Generate_StringToNumber(MacroAssembler* masm) {
2803 // The StringToNumber stub takes on argument in a0. 2792 // The StringToNumber stub takes on argument in a0.
2804 __ AssertString(a0); 2793 __ AssertString(a0);
2805 2794
2806 // Check if string has a cached array index. 2795 // Check if string has a cached array index.
2807 Label runtime; 2796 Label runtime;
2808 __ lwu(a2, FieldMemOperand(a0, String::kHashFieldOffset)); 2797 __ lwu(a2, FieldMemOperand(a0, String::kHashFieldOffset));
2809 __ And(at, a2, Operand(String::kContainsCachedArrayIndexMask)); 2798 __ And(at, a2, Operand(String::kContainsCachedArrayIndexMask));
2810 __ Branch(&runtime, ne, at, Operand(zero_reg)); 2799 __ Branch(&runtime, ne, at, Operand(zero_reg));
2811 __ IndexFromHash(a2, v0); 2800 __ IndexFromHash(a2, v0);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
2976 __ break_(0xCC); 2965 __ break_(0xCC);
2977 } 2966 }
2978 } 2967 }
2979 2968
2980 #undef __ 2969 #undef __
2981 2970
2982 } // namespace internal 2971 } // namespace internal
2983 } // namespace v8 2972 } // namespace v8
2984 2973
2985 #endif // V8_TARGET_ARCH_MIPS64 2974 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/builtins/mips/builtins-mips.cc ('k') | src/builtins/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698