OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 __ Push(scratch1_); | 209 __ Push(scratch1_); |
210 } | 210 } |
211 RecordWriteStub stub(isolate(), object_, scratch0_, scratch1_, | 211 RecordWriteStub stub(isolate(), object_, scratch0_, scratch1_, |
212 remembered_set_action, save_fp_mode); | 212 remembered_set_action, save_fp_mode); |
213 if (offset_.is(no_reg)) { | 213 if (offset_.is(no_reg)) { |
214 __ addi(scratch1_, object_, Operand(offset_immediate_)); | 214 __ addi(scratch1_, object_, Operand(offset_immediate_)); |
215 } else { | 215 } else { |
216 DCHECK_EQ(0, offset_immediate_); | 216 DCHECK_EQ(0, offset_immediate_); |
217 __ add(scratch1_, object_, offset_); | 217 __ add(scratch1_, object_, offset_); |
218 } | 218 } |
219 __ CallStub(&stub); | 219 if (must_save_lr_ && FLAG_enable_embedded_constant_pool) { |
| 220 ConstantPoolUnavailableScope constant_pool_unavailable(masm()); |
| 221 __ CallStub(&stub); |
| 222 } else { |
| 223 __ CallStub(&stub); |
| 224 } |
220 if (must_save_lr_) { | 225 if (must_save_lr_) { |
221 // We need to save and restore lr if the frame was elided. | 226 // We need to save and restore lr if the frame was elided. |
222 __ Pop(scratch1_); | 227 __ Pop(scratch1_); |
223 __ mtlr(scratch1_); | 228 __ mtlr(scratch1_); |
224 } | 229 } |
225 } | 230 } |
226 | 231 |
227 private: | 232 private: |
228 Register const object_; | 233 Register const object_; |
229 Register const offset_; | 234 Register const offset_; |
(...skipping 1989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2219 padding_size -= v8::internal::Assembler::kInstrSize; | 2224 padding_size -= v8::internal::Assembler::kInstrSize; |
2220 } | 2225 } |
2221 } | 2226 } |
2222 } | 2227 } |
2223 | 2228 |
2224 #undef __ | 2229 #undef __ |
2225 | 2230 |
2226 } // namespace compiler | 2231 } // namespace compiler |
2227 } // namespace internal | 2232 } // namespace internal |
2228 } // namespace v8 | 2233 } // namespace v8 |
OLD | NEW |