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

Side by Side Diff: src/ia32/assembler-ia32-inl.h

Issue 1025453003: MIPS: Fix 'MIPS: Serializer: serialize internal references via object visitor.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment. Created 5 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
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/mips/assembler-mips.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 int offset = L->near_link_pos() - pc_offset(); 525 int offset = L->near_link_pos() - pc_offset();
526 DCHECK(is_int8(offset)); 526 DCHECK(is_int8(offset));
527 disp = static_cast<byte>(offset & 0xFF); 527 disp = static_cast<byte>(offset & 0xFF);
528 } 528 }
529 L->link_to(pc_offset(), Label::kNear); 529 L->link_to(pc_offset(), Label::kNear);
530 *pc_++ = disp; 530 *pc_++ = disp;
531 } 531 }
532 532
533 533
534 void Assembler::deserialization_set_target_internal_reference_at( 534 void Assembler::deserialization_set_target_internal_reference_at(
535 Address pc, Address target) { 535 Address pc, Address target, RelocInfo::Mode mode) {
536 Memory::Address_at(pc) = target; 536 Memory::Address_at(pc) = target;
537 } 537 }
538 538
539 539
540 void Operand::set_modrm(int mod, Register rm) { 540 void Operand::set_modrm(int mod, Register rm) {
541 DCHECK((mod & -4) == 0); 541 DCHECK((mod & -4) == 0);
542 buf_[0] = mod << 6 | rm.code(); 542 buf_[0] = mod << 6 | rm.code();
543 len_ = 1; 543 len_ = 1;
544 } 544 }
545 545
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 588
589 589
590 Operand::Operand(Immediate imm) { 590 Operand::Operand(Immediate imm) {
591 // [disp/r] 591 // [disp/r]
592 set_modrm(0, ebp); 592 set_modrm(0, ebp);
593 set_dispr(imm.x_, imm.rmode_); 593 set_dispr(imm.x_, imm.rmode_);
594 } 594 }
595 } } // namespace v8::internal 595 } } // namespace v8::internal
596 596
597 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ 597 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/mips/assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698