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 1149863005: Move hash code from hidden string to a private symbol (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix merge Created 5 years, 7 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/collection.js » ('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 3910 matching lines...) Expand 10 before | Expand all | Expand 10 after
3921 // hash = hash + (hash << 2); 3921 // hash = hash + (hash << 2);
3922 Add(key, key, Operand(key, LSL, 2)); 3922 Add(key, key, Operand(key, LSL, 2));
3923 // hash = hash ^ (hash >> 4); 3923 // hash = hash ^ (hash >> 4);
3924 Eor(key, key, Operand(key, LSR, 4)); 3924 Eor(key, key, Operand(key, LSR, 4));
3925 // hash = hash * 2057; 3925 // hash = hash * 2057;
3926 Mov(scratch, Operand(key, LSL, 11)); 3926 Mov(scratch, Operand(key, LSL, 11));
3927 Add(key, key, Operand(key, LSL, 3)); 3927 Add(key, key, Operand(key, LSL, 3));
3928 Add(key, key, scratch); 3928 Add(key, key, scratch);
3929 // hash = hash ^ (hash >> 16); 3929 // hash = hash ^ (hash >> 16);
3930 Eor(key, key, Operand(key, LSR, 16)); 3930 Eor(key, key, Operand(key, LSR, 16));
3931 Bic(key, key, Operand(0xc0000000u));
3931 } 3932 }
3932 3933
3933 3934
3934 void MacroAssembler::LoadFromNumberDictionary(Label* miss, 3935 void MacroAssembler::LoadFromNumberDictionary(Label* miss,
3935 Register elements, 3936 Register elements,
3936 Register key, 3937 Register key,
3937 Register result, 3938 Register result,
3938 Register scratch0, 3939 Register scratch0,
3939 Register scratch1, 3940 Register scratch1,
3940 Register scratch2, 3941 Register scratch2,
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
5147 } 5148 }
5148 } 5149 }
5149 5150
5150 5151
5151 #undef __ 5152 #undef __
5152 5153
5153 5154
5154 } } // namespace v8::internal 5155 } } // namespace v8::internal
5155 5156
5156 #endif // V8_TARGET_ARCH_ARM64 5157 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/collection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698