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

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

Issue 6603028: Merge revisions 7030:7051 from bleeding_edge to isolates branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 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/lithium-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 907
908 Condition MacroAssembler::CheckSmi(const Operand& src) { 908 Condition MacroAssembler::CheckSmi(const Operand& src) {
909 ASSERT_EQ(0, kSmiTag); 909 ASSERT_EQ(0, kSmiTag);
910 testb(src, Immediate(kSmiTagMask)); 910 testb(src, Immediate(kSmiTagMask));
911 return zero; 911 return zero;
912 } 912 }
913 913
914 914
915 Condition MacroAssembler::CheckNonNegativeSmi(Register src) { 915 Condition MacroAssembler::CheckNonNegativeSmi(Register src) {
916 ASSERT_EQ(0, kSmiTag); 916 ASSERT_EQ(0, kSmiTag);
917 // Make mask 0x8000000000000001 and test that both bits are zero. 917 // Test that both bits of the mask 0x8000000000000001 are zero.
918 movq(kScratchRegister, src); 918 movq(kScratchRegister, src);
919 rol(kScratchRegister, Immediate(1)); 919 rol(kScratchRegister, Immediate(1));
920 testb(kScratchRegister, Immediate(3)); 920 testb(kScratchRegister, Immediate(3));
921 return zero; 921 return zero;
922 } 922 }
923 923
924 924
925 Condition MacroAssembler::CheckBothSmi(Register first, Register second) { 925 Condition MacroAssembler::CheckBothSmi(Register first, Register second) {
926 if (first.is(second)) { 926 if (first.is(second)) {
927 return CheckSmi(first); 927 return CheckSmi(first);
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after
2687 CPU::FlushICache(address_, size_); 2687 CPU::FlushICache(address_, size_);
2688 2688
2689 // Check that the code was patched as expected. 2689 // Check that the code was patched as expected.
2690 ASSERT(masm_.pc_ == address_ + size_); 2690 ASSERT(masm_.pc_ == address_ + size_);
2691 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2691 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2692 } 2692 }
2693 2693
2694 } } // namespace v8::internal 2694 } } // namespace v8::internal
2695 2695
2696 #endif // V8_TARGET_ARCH_X64 2696 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698