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

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

Issue 2147433002: [ic] [stubs] Don't use Code::flags in megamorphic stub cache hash computations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@split-stub-cache
Patch Set: Improved stub cache tests and the fixes. 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/code-stub-assembler.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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2947 matching lines...) Expand 10 before | Expand all | Expand 10 after
2958 Str(scratch1, MemOperand(scratch2)); 2958 Str(scratch1, MemOperand(scratch2));
2959 } 2959 }
2960 } 2960 }
2961 2961
2962 2962
2963 void MacroAssembler::IncrementCounter(StatsCounter* counter, int value, 2963 void MacroAssembler::IncrementCounter(StatsCounter* counter, int value,
2964 Register scratch1, Register scratch2) { 2964 Register scratch1, Register scratch2) {
2965 DCHECK(value != 0); 2965 DCHECK(value != 0);
2966 if (FLAG_native_code_counters && counter->Enabled()) { 2966 if (FLAG_native_code_counters && counter->Enabled()) {
2967 Mov(scratch2, ExternalReference(counter)); 2967 Mov(scratch2, ExternalReference(counter));
2968 Ldr(scratch1, MemOperand(scratch2)); 2968 Ldr(scratch1.W(), MemOperand(scratch2));
2969 Add(scratch1, scratch1, value); 2969 Add(scratch1.W(), scratch1.W(), value);
2970 Str(scratch1, MemOperand(scratch2)); 2970 Str(scratch1.W(), MemOperand(scratch2));
2971 } 2971 }
2972 } 2972 }
2973 2973
2974 2974
2975 void MacroAssembler::DecrementCounter(StatsCounter* counter, int value, 2975 void MacroAssembler::DecrementCounter(StatsCounter* counter, int value,
2976 Register scratch1, Register scratch2) { 2976 Register scratch1, Register scratch2) {
2977 IncrementCounter(counter, -value, scratch1, scratch2); 2977 IncrementCounter(counter, -value, scratch1, scratch2);
2978 } 2978 }
2979 2979
2980 2980
(...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after
5153 } 5153 }
5154 5154
5155 5155
5156 #undef __ 5156 #undef __
5157 5157
5158 5158
5159 } // namespace internal 5159 } // namespace internal
5160 } // namespace v8 5160 } // namespace v8
5161 5161
5162 #endif // V8_TARGET_ARCH_ARM64 5162 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « no previous file | src/code-stub-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698