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

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

Issue 2166553002: PPC/s390: [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 | « no previous file | src/builtins/s390/builtins-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_PPC 5 #if V8_TARGET_ARCH_PPC
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 2782 matching lines...) Expand 10 before | Expand all | Expand 10 after
2793 // -- lr : return address 2793 // -- lr : return address
2794 // ----------------------------------- 2794 // -----------------------------------
2795 __ SmiTag(r4); 2795 __ SmiTag(r4);
2796 __ LoadSmiLiteral(r5, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); 2796 __ LoadSmiLiteral(r5, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE)));
2797 __ Push(r4, r5); 2797 __ Push(r4, r5);
2798 __ LoadSmiLiteral(cp, Smi::FromInt(0)); 2798 __ LoadSmiLiteral(cp, Smi::FromInt(0));
2799 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); 2799 __ TailCallRuntime(Runtime::kAllocateInTargetSpace);
2800 } 2800 }
2801 2801
2802 // static 2802 // static
2803 void Builtins::Generate_Abort(MacroAssembler* masm) {
2804 // ----------- S t a t e -------------
2805 // -- r4 : message_id as Smi
2806 // -- lr : return address
2807 // -----------------------------------
2808 __ push(r4);
2809 __ LoadSmiLiteral(cp, Smi::FromInt(0));
2810 __ TailCallRuntime(Runtime::kAbort);
2811 }
2812
2813 // static
2803 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { 2814 void Builtins::Generate_StringToNumber(MacroAssembler* masm) {
2804 // The StringToNumber stub takes one argument in r3. 2815 // The StringToNumber stub takes one argument in r3.
2805 __ AssertString(r3); 2816 __ AssertString(r3);
2806 2817
2807 // Check if string has a cached array index. 2818 // Check if string has a cached array index.
2808 Label runtime; 2819 Label runtime;
2809 __ lwz(r5, FieldMemOperand(r3, String::kHashFieldOffset)); 2820 __ lwz(r5, FieldMemOperand(r3, String::kHashFieldOffset));
2810 __ And(r0, r5, Operand(String::kContainsCachedArrayIndexMask), SetRC); 2821 __ And(r0, r5, Operand(String::kContainsCachedArrayIndexMask), SetRC);
2811 __ bne(&runtime, cr0); 2822 __ bne(&runtime, cr0);
2812 __ IndexFromHash(r5, r3); 2823 __ IndexFromHash(r5, r3);
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
2970 __ CallRuntime(Runtime::kThrowStackOverflow); 2981 __ CallRuntime(Runtime::kThrowStackOverflow);
2971 __ bkpt(0); 2982 __ bkpt(0);
2972 } 2983 }
2973 } 2984 }
2974 2985
2975 #undef __ 2986 #undef __
2976 } // namespace internal 2987 } // namespace internal
2977 } // namespace v8 2988 } // namespace v8
2978 2989
2979 #endif // V8_TARGET_ARCH_PPC 2990 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | src/builtins/s390/builtins-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698