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

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

Issue 160387: X64: Fix lint problem and add missing stub function. (Closed)
Patch Set: Also enable the use of KeyedLoad ICs Created 11 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/ic.cc ('k') | src/x64/stub-cache-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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 5441 matching lines...) Expand 10 before | Expand all | Expand 10 after
5452 if (!is_global) { 5452 if (!is_global) {
5453 __ testl(receiver.reg(), Immediate(kSmiTagMask)); 5453 __ testl(receiver.reg(), Immediate(kSmiTagMask));
5454 deferred->Branch(zero); 5454 deferred->Branch(zero);
5455 } 5455 }
5456 5456
5457 // Initially, use an invalid map. The map is patched in the IC 5457 // Initially, use an invalid map. The map is patched in the IC
5458 // initialization code. 5458 // initialization code.
5459 __ bind(deferred->patch_site()); 5459 __ bind(deferred->patch_site());
5460 // Use masm-> here instead of the double underscore macro since extra 5460 // Use masm-> here instead of the double underscore macro since extra
5461 // coverage code can interfere with the patching. 5461 // coverage code can interfere with the patching.
5462 masm->movq(kScratchRegister, Factory::null_value(), RelocInfo::EMBEDDED_ OBJECT); 5462 masm->movq(kScratchRegister, Factory::null_value(),
5463 RelocInfo::EMBEDDED_OBJECT);
5463 masm->cmpq(FieldOperand(receiver.reg(), HeapObject::kMapOffset), 5464 masm->cmpq(FieldOperand(receiver.reg(), HeapObject::kMapOffset),
5464 kScratchRegister); 5465 kScratchRegister);
5465 deferred->Branch(not_equal); 5466 deferred->Branch(not_equal);
5466 5467
5467 // Check that the key is a non-negative smi. 5468 // Check that the key is a non-negative smi.
5468 __ testl(key.reg(), 5469 __ testl(key.reg(),
5469 Immediate(static_cast<int32_t>(kSmiTagMask | 0x80000000u))); 5470 Immediate(static_cast<int32_t>(kSmiTagMask | 0x80000000u)));
5470 deferred->Branch(not_zero); 5471 deferred->Branch(not_zero);
5471 5472
5472 // Get the elements array from the receiver and check that it 5473 // Get the elements array from the receiver and check that it
(...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after
7220 int CompareStub::MinorKey() { 7221 int CompareStub::MinorKey() {
7221 // Encode the two parameters in a unique 16 bit value. 7222 // Encode the two parameters in a unique 16 bit value.
7222 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); 7223 ASSERT(static_cast<unsigned>(cc_) < (1 << 15));
7223 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); 7224 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0);
7224 } 7225 }
7225 7226
7226 7227
7227 #undef __ 7228 #undef __
7228 7229
7229 } } // namespace v8::internal 7230 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698