OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |