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/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 OutOfLineRecordWrite(CodeGenerator* gen, Register object, Register index, | 211 OutOfLineRecordWrite(CodeGenerator* gen, Register object, Register index, |
212 Register value, Register scratch0, Register scratch1, | 212 Register value, Register scratch0, Register scratch1, |
213 RecordWriteMode mode) | 213 RecordWriteMode mode) |
214 : OutOfLineCode(gen), | 214 : OutOfLineCode(gen), |
215 object_(object), | 215 object_(object), |
216 index_(index), | 216 index_(index), |
217 index_immediate_(0), | 217 index_immediate_(0), |
218 value_(value), | 218 value_(value), |
219 scratch0_(scratch0), | 219 scratch0_(scratch0), |
220 scratch1_(scratch1), | 220 scratch1_(scratch1), |
221 mode_(mode) {} | 221 mode_(mode), |
| 222 must_save_lr_(!gen->frame_access_state()->has_frame()) {} |
222 | 223 |
223 OutOfLineRecordWrite(CodeGenerator* gen, Register object, int32_t index, | 224 OutOfLineRecordWrite(CodeGenerator* gen, Register object, int32_t index, |
224 Register value, Register scratch0, Register scratch1, | 225 Register value, Register scratch0, Register scratch1, |
225 RecordWriteMode mode) | 226 RecordWriteMode mode) |
226 : OutOfLineCode(gen), | 227 : OutOfLineCode(gen), |
227 object_(object), | 228 object_(object), |
228 index_(no_reg), | 229 index_(no_reg), |
229 index_immediate_(index), | 230 index_immediate_(index), |
230 value_(value), | 231 value_(value), |
231 scratch0_(scratch0), | 232 scratch0_(scratch0), |
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1695 padding_size -= v8::internal::Assembler::kInstrSize; | 1696 padding_size -= v8::internal::Assembler::kInstrSize; |
1696 } | 1697 } |
1697 } | 1698 } |
1698 } | 1699 } |
1699 | 1700 |
1700 #undef __ | 1701 #undef __ |
1701 | 1702 |
1702 } // namespace compiler | 1703 } // namespace compiler |
1703 } // namespace internal | 1704 } // namespace internal |
1704 } // namespace v8 | 1705 } // namespace v8 |
OLD | NEW |