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

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

Issue 424743002: Clean up name distinction between Keyed ICs and Element Handlers (Closed) Base URL: https://v8.googlecode.com/svn/branches/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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ia32/stub-cache-ia32.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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 Context::SECURITY_TOKEN_INDEX * kPointerSize; 1273 Context::SECURITY_TOKEN_INDEX * kPointerSize;
1274 mov(scratch1, FieldOperand(scratch1, token_offset)); 1274 mov(scratch1, FieldOperand(scratch1, token_offset));
1275 cmp(scratch1, FieldOperand(scratch2, token_offset)); 1275 cmp(scratch1, FieldOperand(scratch2, token_offset));
1276 j(not_equal, miss); 1276 j(not_equal, miss);
1277 1277
1278 bind(&same_contexts); 1278 bind(&same_contexts);
1279 } 1279 }
1280 1280
1281 1281
1282 // Compute the hash code from the untagged key. This must be kept in sync with 1282 // Compute the hash code from the untagged key. This must be kept in sync with
1283 // ComputeIntegerHash in utils.h and KeyedLoadGenericElementStub in 1283 // ComputeIntegerHash in utils.h and KeyedLoadGenericStub in
1284 // code-stub-hydrogen.cc 1284 // code-stub-hydrogen.cc
1285 // 1285 //
1286 // Note: r0 will contain hash code 1286 // Note: r0 will contain hash code
1287 void MacroAssembler::GetNumberHash(Register r0, Register scratch) { 1287 void MacroAssembler::GetNumberHash(Register r0, Register scratch) {
1288 // Xor original key with a seed. 1288 // Xor original key with a seed.
1289 if (serializer_enabled()) { 1289 if (serializer_enabled()) {
1290 ExternalReference roots_array_start = 1290 ExternalReference roots_array_start =
1291 ExternalReference::roots_array_start(isolate()); 1291 ExternalReference::roots_array_start(isolate());
1292 mov(scratch, Immediate(Heap::kHashSeedRootIndex)); 1292 mov(scratch, Immediate(Heap::kHashSeedRootIndex));
1293 mov(scratch, 1293 mov(scratch,
(...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after
3430 if (ms.shift() > 0) sar(edx, ms.shift()); 3430 if (ms.shift() > 0) sar(edx, ms.shift());
3431 mov(eax, dividend); 3431 mov(eax, dividend);
3432 shr(eax, 31); 3432 shr(eax, 31);
3433 add(edx, eax); 3433 add(edx, eax);
3434 } 3434 }
3435 3435
3436 3436
3437 } } // namespace v8::internal 3437 } } // namespace v8::internal
3438 3438
3439 #endif // V8_TARGET_ARCH_IA32 3439 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698