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

Side by Side Diff: src/s390/code-stubs-s390.cc

Issue 1839663002: S390: Fix Register conflict in CEntryStub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | no next file » | 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_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 Label exception_returned; 1097 Label exception_returned;
1098 __ CompareRoot(r2, Heap::kExceptionRootIndex); 1098 __ CompareRoot(r2, Heap::kExceptionRootIndex);
1099 __ beq(&exception_returned, Label::kNear); 1099 __ beq(&exception_returned, Label::kNear);
1100 1100
1101 // Check that there is no pending exception, otherwise we 1101 // Check that there is no pending exception, otherwise we
1102 // should have returned the exception sentinel. 1102 // should have returned the exception sentinel.
1103 if (FLAG_debug_code) { 1103 if (FLAG_debug_code) {
1104 Label okay; 1104 Label okay;
1105 ExternalReference pending_exception_address( 1105 ExternalReference pending_exception_address(
1106 Isolate::kPendingExceptionAddress, isolate()); 1106 Isolate::kPendingExceptionAddress, isolate());
1107 __ mov(r4, Operand(pending_exception_address)); 1107 __ mov(r1, Operand(pending_exception_address));
1108 __ LoadP(r4, MemOperand(r4)); 1108 __ LoadP(r1, MemOperand(r1));
1109 __ CompareRoot(r4, Heap::kTheHoleValueRootIndex); 1109 __ CompareRoot(r1, Heap::kTheHoleValueRootIndex);
1110 // Cannot use check here as it attempts to generate call into runtime. 1110 // Cannot use check here as it attempts to generate call into runtime.
1111 __ beq(&okay, Label::kNear); 1111 __ beq(&okay, Label::kNear);
1112 __ stop("Unexpected pending exception"); 1112 __ stop("Unexpected pending exception");
1113 __ bind(&okay); 1113 __ bind(&okay);
1114 } 1114 }
1115 1115
1116 // Exit C frame and return. 1116 // Exit C frame and return.
1117 // r2:r3: result 1117 // r2:r3: result
1118 // sp: stack pointer 1118 // sp: stack pointer
1119 // fp: frame pointer 1119 // fp: frame pointer
(...skipping 4594 matching lines...) Expand 10 before | Expand all | Expand 10 after
5714 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 5714 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
5715 kStackUnwindSpace, NULL, return_value_operand, NULL); 5715 kStackUnwindSpace, NULL, return_value_operand, NULL);
5716 } 5716 }
5717 5717
5718 #undef __ 5718 #undef __
5719 5719
5720 } // namespace internal 5720 } // namespace internal
5721 } // namespace v8 5721 } // namespace v8
5722 5722
5723 #endif // V8_TARGET_ARCH_S390 5723 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698