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

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

Issue 1155703006: Revert of Embedded constant pools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips/deoptimizer-mips.cc » ('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 2711 matching lines...) Expand 10 before | Expand all | Expand 10 after
2722 } 2722 }
2723 2723
2724 2724
2725 void Assembler::dd(uint32_t data) { 2725 void Assembler::dd(uint32_t data) {
2726 CheckBuffer(); 2726 CheckBuffer();
2727 *reinterpret_cast<uint32_t*>(pc_) = data; 2727 *reinterpret_cast<uint32_t*>(pc_) = data;
2728 pc_ += sizeof(uint32_t); 2728 pc_ += sizeof(uint32_t);
2729 } 2729 }
2730 2730
2731 2731
2732 void Assembler::dq(uint64_t data) {
2733 CheckBuffer();
2734 *reinterpret_cast<uint64_t*>(pc_) = data;
2735 pc_ += sizeof(uint64_t);
2736 }
2737
2738
2739 void Assembler::dd(Label* label) { 2732 void Assembler::dd(Label* label) {
2740 CheckBuffer(); 2733 CheckBuffer();
2741 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE); 2734 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE);
2742 uint32_t data; 2735 uint32_t data;
2743 if (label->is_bound()) { 2736 if (label->is_bound()) {
2744 data = reinterpret_cast<uint32_t>(buffer_ + label->pos()); 2737 data = reinterpret_cast<uint32_t>(buffer_ + label->pos());
2745 } else { 2738 } else {
2746 data = jump_address(label); 2739 data = jump_address(label);
2747 internal_reference_positions_.insert(label->pos()); 2740 internal_reference_positions_.insert(label->pos());
2748 } 2741 }
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
3025 } 3018 }
3026 patched = true; 3019 patched = true;
3027 } 3020 }
3028 3021
3029 if (patched) { 3022 if (patched) {
3030 CpuFeatures::FlushICache(pc + 2, sizeof(Address)); 3023 CpuFeatures::FlushICache(pc + 2, sizeof(Address));
3031 } 3024 }
3032 } 3025 }
3033 3026
3034 3027
3028 Handle<ConstantPoolArray> Assembler::NewConstantPool(Isolate* isolate) {
3029 // No out-of-line constant pool support.
3030 DCHECK(!FLAG_enable_ool_constant_pool);
3031 return isolate->factory()->empty_constant_pool_array();
3032 }
3033
3034
3035 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) {
3036 // No out-of-line constant pool support.
3037 DCHECK(!FLAG_enable_ool_constant_pool);
3038 return;
3039 }
3040
3041
3035 } // namespace internal 3042 } // namespace internal
3036 } // namespace v8 3043 } // namespace v8
3037 3044
3038 #endif // V8_TARGET_ARCH_MIPS 3045 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips/deoptimizer-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698