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

Side by Side Diff: src/mips64/assembler-mips64.cc

Issue 1224623018: Version 4.3.61.35 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.3
Patch Set: Created 5 years, 5 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/mips/assembler-mips.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 (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 2673 matching lines...) Expand 10 before | Expand all | Expand 10 after
2684 void Assembler::dd(uint32_t data) { 2684 void Assembler::dd(uint32_t data) {
2685 CheckBuffer(); 2685 CheckBuffer();
2686 *reinterpret_cast<uint32_t*>(pc_) = data; 2686 *reinterpret_cast<uint32_t*>(pc_) = data;
2687 pc_ += sizeof(uint32_t); 2687 pc_ += sizeof(uint32_t);
2688 } 2688 }
2689 2689
2690 2690
2691 void Assembler::dd(Label* label) { 2691 void Assembler::dd(Label* label) {
2692 CheckBuffer(); 2692 CheckBuffer();
2693 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE); 2693 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE);
2694 uint64_t data;
2694 if (label->is_bound()) { 2695 if (label->is_bound()) {
2695 uint64_t data = reinterpret_cast<uint64_t>(buffer_ + label->pos()); 2696 data = reinterpret_cast<uint64_t>(buffer_ + label->pos());
2696 *reinterpret_cast<uint64_t*>(pc_) = data;
2697 pc_ += sizeof(uint64_t);
2698 } else { 2697 } else {
2699 uint64_t target_pos = jump_address(label); 2698 data = jump_address(label);
2700 emit(target_pos);
2701 internal_reference_positions_.insert(label->pos()); 2699 internal_reference_positions_.insert(label->pos());
2702 } 2700 }
2701 *reinterpret_cast<uint64_t*>(pc_) = data;
2702 pc_ += sizeof(uint64_t);
2703 } 2703 }
2704 2704
2705 2705
2706 void Assembler::emit_code_stub_address(Code* stub) { 2706 void Assembler::emit_code_stub_address(Code* stub) {
2707 CheckBuffer(); 2707 CheckBuffer();
2708 *reinterpret_cast<uint64_t*>(pc_) = 2708 *reinterpret_cast<uint64_t*>(pc_) =
2709 reinterpret_cast<uint64_t>(stub->instruction_start()); 2709 reinterpret_cast<uint64_t>(stub->instruction_start());
2710 pc_ += sizeof(uint64_t); 2710 pc_ += sizeof(uint64_t);
2711 } 2711 }
2712 2712
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
2940 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { 2940 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) {
2941 // No out-of-line constant pool support. 2941 // No out-of-line constant pool support.
2942 DCHECK(!FLAG_enable_ool_constant_pool); 2942 DCHECK(!FLAG_enable_ool_constant_pool);
2943 return; 2943 return;
2944 } 2944 }
2945 2945
2946 2946
2947 } } // namespace v8::internal 2947 } } // namespace v8::internal
2948 2948
2949 #endif // V8_TARGET_ARCH_MIPS64 2949 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698