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

Side by Side Diff: src/ia32/macro-assembler-ia32.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/heap/heap.cc ('k') | src/isolate.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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 // hash = hash ^ (hash >> 4); 1143 // hash = hash ^ (hash >> 4);
1144 mov(scratch, r0); 1144 mov(scratch, r0);
1145 shr(scratch, 4); 1145 shr(scratch, 4);
1146 xor_(r0, scratch); 1146 xor_(r0, scratch);
1147 // hash = hash * 2057; 1147 // hash = hash * 2057;
1148 imul(r0, r0, 2057); 1148 imul(r0, r0, 2057);
1149 // hash = hash ^ (hash >> 16); 1149 // hash = hash ^ (hash >> 16);
1150 mov(scratch, r0); 1150 mov(scratch, r0);
1151 shr(scratch, 16); 1151 shr(scratch, 16);
1152 xor_(r0, scratch); 1152 xor_(r0, scratch);
1153 and_(r0, 0x3fffffff);
1153 } 1154 }
1154 1155
1155 1156
1156 1157
1157 void MacroAssembler::LoadFromNumberDictionary(Label* miss, 1158 void MacroAssembler::LoadFromNumberDictionary(Label* miss,
1158 Register elements, 1159 Register elements,
1159 Register key, 1160 Register key,
1160 Register r0, 1161 Register r0,
1161 Register r1, 1162 Register r1,
1162 Register r2, 1163 Register r2,
(...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after
3222 if (mag.shift > 0) sar(edx, mag.shift); 3223 if (mag.shift > 0) sar(edx, mag.shift);
3223 mov(eax, dividend); 3224 mov(eax, dividend);
3224 shr(eax, 31); 3225 shr(eax, 31);
3225 add(edx, eax); 3226 add(edx, eax);
3226 } 3227 }
3227 3228
3228 3229
3229 } } // namespace v8::internal 3230 } } // namespace v8::internal
3230 3231
3231 #endif // V8_TARGET_ARCH_IA32 3232 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698