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

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

Issue 2156923002: [builtins] Introduce a builtin for Abort(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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/arm64/macro-assembler-arm64.cc ('k') | src/builtins/arm64/builtins-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 2708 matching lines...) Expand 10 before | Expand all | Expand 10 after
2719 // -- lr : return address 2719 // -- lr : return address
2720 // ----------------------------------- 2720 // -----------------------------------
2721 __ SmiTag(r1); 2721 __ SmiTag(r1);
2722 __ Move(r2, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); 2722 __ Move(r2, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE)));
2723 __ Push(r1, r2); 2723 __ Push(r1, r2);
2724 __ Move(cp, Smi::FromInt(0)); 2724 __ Move(cp, Smi::FromInt(0));
2725 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); 2725 __ TailCallRuntime(Runtime::kAllocateInTargetSpace);
2726 } 2726 }
2727 2727
2728 // static 2728 // static
2729 void Builtins::Generate_Abort(MacroAssembler* masm) {
2730 // ----------- S t a t e -------------
2731 // -- r1 : message_id as Smi
2732 // -- lr : return address
2733 // -----------------------------------
2734 __ Push(r1);
2735 __ Move(cp, Smi::FromInt(0));
2736 __ TailCallRuntime(Runtime::kAbort);
2737 }
2738
2739 // static
2729 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { 2740 void Builtins::Generate_StringToNumber(MacroAssembler* masm) {
2730 // The StringToNumber stub takes one argument in r0. 2741 // The StringToNumber stub takes one argument in r0.
2731 __ AssertString(r0); 2742 __ AssertString(r0);
2732 2743
2733 // Check if string has a cached array index. 2744 // Check if string has a cached array index.
2734 Label runtime; 2745 Label runtime;
2735 __ ldr(r2, FieldMemOperand(r0, String::kHashFieldOffset)); 2746 __ ldr(r2, FieldMemOperand(r0, String::kHashFieldOffset));
2736 __ tst(r2, Operand(String::kContainsCachedArrayIndexMask)); 2747 __ tst(r2, Operand(String::kContainsCachedArrayIndexMask));
2737 __ b(ne, &runtime); 2748 __ b(ne, &runtime);
2738 __ IndexFromHash(r2, r0); 2749 __ IndexFromHash(r2, r0);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
2887 __ bkpt(0); 2898 __ bkpt(0);
2888 } 2899 }
2889 } 2900 }
2890 2901
2891 #undef __ 2902 #undef __
2892 2903
2893 } // namespace internal 2904 } // namespace internal
2894 } // namespace v8 2905 } // namespace v8
2895 2906
2896 #endif // V8_TARGET_ARCH_ARM 2907 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/builtins/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698