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

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

Issue 2168573002: X87: Revert of [builtins] Introduce a builtin for Abort(). (patchset #5 id:80001 of https://coderev… (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/x87/macro-assembler-x87.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_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.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 2705 matching lines...) Expand 10 before | Expand all | Expand 10 after
2716 __ SmiTag(edx); 2716 __ SmiTag(edx);
2717 __ PopReturnAddressTo(ecx); 2717 __ PopReturnAddressTo(ecx);
2718 __ Push(edx); 2718 __ Push(edx);
2719 __ Push(Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); 2719 __ Push(Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE)));
2720 __ PushReturnAddressFrom(ecx); 2720 __ PushReturnAddressFrom(ecx);
2721 __ Move(esi, Smi::FromInt(0)); 2721 __ Move(esi, Smi::FromInt(0));
2722 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); 2722 __ TailCallRuntime(Runtime::kAllocateInTargetSpace);
2723 } 2723 }
2724 2724
2725 // static 2725 // static
2726 void Builtins::Generate_Abort(MacroAssembler* masm) {
2727 // ----------- S t a t e -------------
2728 // -- edx : message_id as Smi
2729 // -- esp[0] : return address
2730 // -----------------------------------
2731 __ PopReturnAddressTo(ecx);
2732 __ Push(edx);
2733 __ PushReturnAddressFrom(ecx);
2734 __ Move(esi, Smi::FromInt(0));
2735 __ TailCallRuntime(Runtime::kAbort);
2736 }
2737
2738 // static
2739 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { 2726 void Builtins::Generate_StringToNumber(MacroAssembler* masm) {
2740 // The StringToNumber stub takes one argument in eax. 2727 // The StringToNumber stub takes one argument in eax.
2741 __ AssertString(eax); 2728 __ AssertString(eax);
2742 2729
2743 // Check if string has a cached array index. 2730 // Check if string has a cached array index.
2744 Label runtime; 2731 Label runtime;
2745 __ test(FieldOperand(eax, String::kHashFieldOffset), 2732 __ test(FieldOperand(eax, String::kHashFieldOffset),
2746 Immediate(String::kContainsCachedArrayIndexMask)); 2733 Immediate(String::kContainsCachedArrayIndexMask));
2747 __ j(not_zero, &runtime, Label::kNear); 2734 __ j(not_zero, &runtime, Label::kNear);
2748 __ mov(eax, FieldOperand(eax, String::kHashFieldOffset)); 2735 __ mov(eax, FieldOperand(eax, String::kHashFieldOffset));
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
3028 3015
3029 // And "return" to the OSR entry point of the function. 3016 // And "return" to the OSR entry point of the function.
3030 __ ret(0); 3017 __ ret(0);
3031 } 3018 }
3032 3019
3033 #undef __ 3020 #undef __
3034 } // namespace internal 3021 } // namespace internal
3035 } // namespace v8 3022 } // namespace v8
3036 3023
3037 #endif // V8_TARGET_ARCH_X87 3024 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698