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

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

Issue 146082: X64 implementation: comparison operations. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 6 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/macro-assembler-x64.h ('k') | src/x64/virtual-frame-x64.h » ('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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 movq(dst, kScratchRegister); 302 movq(dst, kScratchRegister);
303 } 303 }
304 304
305 305
306 void MacroAssembler::Cmp(Register dst, Handle<Object> source) { 306 void MacroAssembler::Cmp(Register dst, Handle<Object> source) {
307 Move(kScratchRegister, source); 307 Move(kScratchRegister, source);
308 cmpq(dst, kScratchRegister); 308 cmpq(dst, kScratchRegister);
309 } 309 }
310 310
311 311
312 void MacroAssembler::Cmp(const Operand& dst, Handle<Object> source) {
313 Move(kScratchRegister, source);
314 cmpq(dst, kScratchRegister);
315 }
316
317
312 void MacroAssembler::Push(Handle<Object> source) { 318 void MacroAssembler::Push(Handle<Object> source) {
313 Move(kScratchRegister, source); 319 Move(kScratchRegister, source);
314 push(kScratchRegister); 320 push(kScratchRegister);
315 } 321 }
316 322
317 323
318 void MacroAssembler::Jump(ExternalReference ext) { 324 void MacroAssembler::Jump(ExternalReference ext) {
319 movq(kScratchRegister, ext); 325 movq(kScratchRegister, ext);
320 jmp(kScratchRegister); 326 jmp(kScratchRegister);
321 } 327 }
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 push(rcx); 829 push(rcx);
824 830
825 // Clear the top frame. 831 // Clear the top frame.
826 ExternalReference c_entry_fp_address(Top::k_c_entry_fp_address); 832 ExternalReference c_entry_fp_address(Top::k_c_entry_fp_address);
827 movq(kScratchRegister, c_entry_fp_address); 833 movq(kScratchRegister, c_entry_fp_address);
828 movq(Operand(kScratchRegister, 0), Immediate(0)); 834 movq(Operand(kScratchRegister, 0), Immediate(0));
829 } 835 }
830 836
831 837
832 } } // namespace v8::internal 838 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | src/x64/virtual-frame-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698