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

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

Issue 426083006: X87: Clean up name distinction between Keyed ICs and Element Handlers (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 years, 4 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/x87/ic-x87.cc ('k') | src/x87/stub-cache-x87.cc » ('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_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 Context::SECURITY_TOKEN_INDEX * kPointerSize; 1166 Context::SECURITY_TOKEN_INDEX * kPointerSize;
1167 mov(scratch1, FieldOperand(scratch1, token_offset)); 1167 mov(scratch1, FieldOperand(scratch1, token_offset));
1168 cmp(scratch1, FieldOperand(scratch2, token_offset)); 1168 cmp(scratch1, FieldOperand(scratch2, token_offset));
1169 j(not_equal, miss); 1169 j(not_equal, miss);
1170 1170
1171 bind(&same_contexts); 1171 bind(&same_contexts);
1172 } 1172 }
1173 1173
1174 1174
1175 // Compute the hash code from the untagged key. This must be kept in sync with 1175 // Compute the hash code from the untagged key. This must be kept in sync with
1176 // ComputeIntegerHash in utils.h and KeyedLoadGenericElementStub in 1176 // ComputeIntegerHash in utils.h and KeyedLoadGenericStub in
1177 // code-stub-hydrogen.cc 1177 // code-stub-hydrogen.cc
1178 // 1178 //
1179 // Note: r0 will contain hash code 1179 // Note: r0 will contain hash code
1180 void MacroAssembler::GetNumberHash(Register r0, Register scratch) { 1180 void MacroAssembler::GetNumberHash(Register r0, Register scratch) {
1181 // Xor original key with a seed. 1181 // Xor original key with a seed.
1182 if (serializer_enabled()) { 1182 if (serializer_enabled()) {
1183 ExternalReference roots_array_start = 1183 ExternalReference roots_array_start =
1184 ExternalReference::roots_array_start(isolate()); 1184 ExternalReference::roots_array_start(isolate());
1185 mov(scratch, Immediate(Heap::kHashSeedRootIndex)); 1185 mov(scratch, Immediate(Heap::kHashSeedRootIndex));
1186 mov(scratch, 1186 mov(scratch,
(...skipping 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after
3317 if (ms.shift() > 0) sar(edx, ms.shift()); 3317 if (ms.shift() > 0) sar(edx, ms.shift());
3318 mov(eax, dividend); 3318 mov(eax, dividend);
3319 shr(eax, 31); 3319 shr(eax, 31);
3320 add(edx, eax); 3320 add(edx, eax);
3321 } 3321 }
3322 3322
3323 3323
3324 } } // namespace v8::internal 3324 } } // namespace v8::internal
3325 3325
3326 #endif // V8_TARGET_ARCH_X87 3326 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/ic-x87.cc ('k') | src/x87/stub-cache-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698