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

Side by Side Diff: src/x64/ic-x64.cc

Issue 205343013: Introduce andp, notp, orp and xorp for x64 port (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased with bleeding_edge Created 6 years, 9 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/x64/full-codegen-x64.cc ('k') | src/x64/lithium-codegen-x64.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 Heap::kHashTableMapRootIndex); 417 Heap::kHashTableMapRootIndex);
418 __ j(equal, &probe_dictionary); 418 __ j(equal, &probe_dictionary);
419 419
420 // Load the map of the receiver, compute the keyed lookup cache hash 420 // Load the map of the receiver, compute the keyed lookup cache hash
421 // based on 32 bits of the map pointer and the string hash. 421 // based on 32 bits of the map pointer and the string hash.
422 __ movp(rbx, FieldOperand(rdx, HeapObject::kMapOffset)); 422 __ movp(rbx, FieldOperand(rdx, HeapObject::kMapOffset));
423 __ movl(rcx, rbx); 423 __ movl(rcx, rbx);
424 __ shr(rcx, Immediate(KeyedLookupCache::kMapHashShift)); 424 __ shr(rcx, Immediate(KeyedLookupCache::kMapHashShift));
425 __ movl(rdi, FieldOperand(rax, String::kHashFieldOffset)); 425 __ movl(rdi, FieldOperand(rax, String::kHashFieldOffset));
426 __ shr(rdi, Immediate(String::kHashShift)); 426 __ shr(rdi, Immediate(String::kHashShift));
427 __ xor_(rcx, rdi); 427 __ xorp(rcx, rdi);
428 int mask = (KeyedLookupCache::kCapacityMask & KeyedLookupCache::kHashMask); 428 int mask = (KeyedLookupCache::kCapacityMask & KeyedLookupCache::kHashMask);
429 __ and_(rcx, Immediate(mask)); 429 __ andp(rcx, Immediate(mask));
430 430
431 // Load the key (consisting of map and internalized string) from the cache and 431 // Load the key (consisting of map and internalized string) from the cache and
432 // check for match. 432 // check for match.
433 Label load_in_object_property; 433 Label load_in_object_property;
434 static const int kEntriesPerBucket = KeyedLookupCache::kEntriesPerBucket; 434 static const int kEntriesPerBucket = KeyedLookupCache::kEntriesPerBucket;
435 Label hit_on_nth_entry[kEntriesPerBucket]; 435 Label hit_on_nth_entry[kEntriesPerBucket];
436 ExternalReference cache_keys 436 ExternalReference cache_keys
437 = ExternalReference::keyed_lookup_cache_keys(masm->isolate()); 437 = ExternalReference::keyed_lookup_cache_keys(masm->isolate());
438 438
439 for (int i = 0; i < kEntriesPerBucket - 1; i++) { 439 for (int i = 0; i < kEntriesPerBucket - 1; i++) {
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1321 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1322 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1322 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1323 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1323 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1324 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1324 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1325 } 1325 }
1326 1326
1327 1327
1328 } } // namespace v8::internal 1328 } } // namespace v8::internal
1329 1329
1330 #endif // V8_TARGET_ARCH_X64 1330 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698