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

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

Issue 979003003: Only reference constant root list entries in the snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix windows build 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/heap/heap.cc ('k') | src/mips64/macro-assembler-mips64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 Heap::RootListIndex index, 79 Heap::RootListIndex index,
80 Condition cond, 80 Condition cond,
81 Register src1, const Operand& src2) { 81 Register src1, const Operand& src2) {
82 Branch(2, NegateCondition(cond), src1, src2); 82 Branch(2, NegateCondition(cond), src1, src2);
83 lw(destination, MemOperand(s6, index << kPointerSizeLog2)); 83 lw(destination, MemOperand(s6, index << kPointerSizeLog2));
84 } 84 }
85 85
86 86
87 void MacroAssembler::StoreRoot(Register source, 87 void MacroAssembler::StoreRoot(Register source,
88 Heap::RootListIndex index) { 88 Heap::RootListIndex index) {
89 DCHECK(Heap::RootCanBeWrittenAfterInitialization(index));
89 sw(source, MemOperand(s6, index << kPointerSizeLog2)); 90 sw(source, MemOperand(s6, index << kPointerSizeLog2));
90 } 91 }
91 92
92 93
93 void MacroAssembler::StoreRoot(Register source, 94 void MacroAssembler::StoreRoot(Register source,
94 Heap::RootListIndex index, 95 Heap::RootListIndex index,
95 Condition cond, 96 Condition cond,
96 Register src1, const Operand& src2) { 97 Register src1, const Operand& src2) {
98 DCHECK(Heap::RootCanBeWrittenAfterInitialization(index));
97 Branch(2, NegateCondition(cond), src1, src2); 99 Branch(2, NegateCondition(cond), src1, src2);
98 sw(source, MemOperand(s6, index << kPointerSizeLog2)); 100 sw(source, MemOperand(s6, index << kPointerSizeLog2));
99 } 101 }
100 102
101 103
102 // Push and pop all registers that can hold pointers. 104 // Push and pop all registers that can hold pointers.
103 void MacroAssembler::PushSafepointRegisters() { 105 void MacroAssembler::PushSafepointRegisters() {
104 // Safepoints expect a block of kNumSafepointRegisters values on the 106 // Safepoints expect a block of kNumSafepointRegisters values on the
105 // stack, so adjust the stack for unsaved registers. 107 // stack, so adjust the stack for unsaved registers.
106 const int num_unsaved = kNumSafepointRegisters - kNumSafepointSavedRegisters; 108 const int num_unsaved = kNumSafepointRegisters - kNumSafepointSavedRegisters;
(...skipping 5969 matching lines...) Expand 10 before | Expand all | Expand 10 after
6076 } 6078 }
6077 if (mag.shift > 0) sra(result, result, mag.shift); 6079 if (mag.shift > 0) sra(result, result, mag.shift);
6078 srl(at, dividend, 31); 6080 srl(at, dividend, 31);
6079 Addu(result, result, Operand(at)); 6081 Addu(result, result, Operand(at));
6080 } 6082 }
6081 6083
6082 6084
6083 } } // namespace v8::internal 6085 } } // namespace v8::internal
6084 6086
6085 #endif // V8_TARGET_ARCH_MIPS 6087 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698