| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/deopt_instructions.h" | 5 #include "vm/deopt_instructions.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 #include "vm/code_patcher.h" | 8 #include "vm/code_patcher.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/intermediate_language.h" | 10 #include "vm/intermediate_language.h" |
| (...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 } | 1171 } |
| 1172 } | 1172 } |
| 1173 | 1173 |
| 1174 | 1174 |
| 1175 intptr_t DeoptInfoBuilder::EmitMaterializationArguments(intptr_t dest_index) { | 1175 intptr_t DeoptInfoBuilder::EmitMaterializationArguments(intptr_t dest_index) { |
| 1176 ASSERT(dest_index == kDartFrameFixedSize); | 1176 ASSERT(dest_index == kDartFrameFixedSize); |
| 1177 for (intptr_t i = 0; i < materializations_.length(); i++) { | 1177 for (intptr_t i = 0; i < materializations_.length(); i++) { |
| 1178 MaterializeObjectInstr* mat = materializations_[i]; | 1178 MaterializeObjectInstr* mat = materializations_[i]; |
| 1179 // Class of the instance to allocate. | 1179 // Class of the instance to allocate. |
| 1180 AddConstant(mat->cls(), dest_index++); | 1180 AddConstant(mat->cls(), dest_index++); |
| 1181 AddConstant(Smi::Handle(Smi::New(mat->num_variables())), dest_index++); | 1181 AddConstant(Smi::ZoneHandle(Smi::New(mat->num_variables())), dest_index++); |
| 1182 for (intptr_t i = 0; i < mat->InputCount(); i++) { | 1182 for (intptr_t i = 0; i < mat->InputCount(); i++) { |
| 1183 if (!mat->InputAt(i)->BindsToConstantNull()) { | 1183 if (!mat->InputAt(i)->BindsToConstantNull()) { |
| 1184 // Emit offset-value pair. | 1184 // Emit offset-value pair. |
| 1185 AddConstant(Smi::Handle(Smi::New(mat->FieldOffsetAt(i))), | 1185 AddConstant(Smi::ZoneHandle(Smi::New(mat->FieldOffsetAt(i))), |
| 1186 dest_index++); | 1186 dest_index++); |
| 1187 AddCopy(mat->InputAt(i), mat->LocationAt(i), dest_index++); | 1187 AddCopy(mat->InputAt(i), mat->LocationAt(i), dest_index++); |
| 1188 } | 1188 } |
| 1189 } | 1189 } |
| 1190 } | 1190 } |
| 1191 return dest_index; | 1191 return dest_index; |
| 1192 } | 1192 } |
| 1193 | 1193 |
| 1194 | 1194 |
| 1195 intptr_t DeoptInfoBuilder::FindMaterialization( | 1195 intptr_t DeoptInfoBuilder::FindMaterialization( |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1309 Smi* offset, | 1309 Smi* offset, |
| 1310 TypedData* info, | 1310 TypedData* info, |
| 1311 Smi* reason) { | 1311 Smi* reason) { |
| 1312 intptr_t i = index * kEntrySize; | 1312 intptr_t i = index * kEntrySize; |
| 1313 *offset ^= table.At(i); | 1313 *offset ^= table.At(i); |
| 1314 *info ^= table.At(i + 1); | 1314 *info ^= table.At(i + 1); |
| 1315 *reason ^= table.At(i + 2); | 1315 *reason ^= table.At(i + 2); |
| 1316 } | 1316 } |
| 1317 | 1317 |
| 1318 } // namespace dart | 1318 } // namespace dart |
| OLD | NEW |