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

Side by Side Diff: src/arm64/macro-assembler-arm64.cc

Issue 997213003: Remove kind field from StackHandler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix layout test issue. Created 5 years, 9 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/arm/macro-assembler-arm.cc ('k') | src/debug.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 3032 matching lines...) Expand 10 before | Expand all | Expand 10 after
3043 DCHECK(jssp.Is(StackPointer())); 3043 DCHECK(jssp.Is(StackPointer()));
3044 // Adjust this code if the asserts don't hold. 3044 // Adjust this code if the asserts don't hold.
3045 STATIC_ASSERT(StackHandlerConstants::kSize == 3 * kPointerSize); 3045 STATIC_ASSERT(StackHandlerConstants::kSize == 3 * kPointerSize);
3046 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); 3046 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize);
3047 STATIC_ASSERT(StackHandlerConstants::kStateOffset == 1 * kPointerSize); 3047 STATIC_ASSERT(StackHandlerConstants::kStateOffset == 1 * kPointerSize);
3048 STATIC_ASSERT(StackHandlerConstants::kContextOffset == 2 * kPointerSize); 3048 STATIC_ASSERT(StackHandlerConstants::kContextOffset == 2 * kPointerSize);
3049 3049
3050 // For the JSEntry handler, we must preserve the live registers x0-x4. 3050 // For the JSEntry handler, we must preserve the live registers x0-x4.
3051 // (See JSEntryStub::GenerateBody().) 3051 // (See JSEntryStub::GenerateBody().)
3052 3052
3053 unsigned state = 3053 // Set up the index for pushing.
3054 StackHandler::IndexField::encode(handler_index) | 3054 Mov(x11, handler_index);
3055 StackHandler::KindField::encode(kind);
3056
3057 // Set up the state for pushing.
3058 Mov(x11, state);
3059 3055
3060 // Push the context and state. 3056 // Push the context and state.
3061 if (kind == StackHandler::JS_ENTRY) { 3057 if (kind == StackHandler::JS_ENTRY) {
3062 DCHECK(Smi::FromInt(0) == 0); 3058 DCHECK(Smi::FromInt(0) == 0);
3063 Push(xzr, x11); 3059 Push(xzr, x11);
3064 } else { 3060 } else {
3065 Push(cp, x11); 3061 Push(cp, x11);
3066 } 3062 }
3067 3063
3068 // Link the current handler as the next handler. 3064 // Link the current handler as the next handler.
(...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after
5163 } 5159 }
5164 } 5160 }
5165 5161
5166 5162
5167 #undef __ 5163 #undef __
5168 5164
5169 5165
5170 } } // namespace v8::internal 5166 } } // namespace v8::internal
5171 5167
5172 #endif // V8_TARGET_ARCH_ARM64 5168 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698