| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 <map> | 5 #include <map> |
| 6 #include <set> | 6 #include <set> |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "vm/kernel_to_il.h" | 9 #include "vm/kernel_to_il.h" |
| 10 | 10 |
| (...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1266 *name_to_modify = Symbols::New(thread_, *name_to_modify); | 1266 *name_to_modify = Symbols::New(thread_, *name_to_modify); |
| 1267 } | 1267 } |
| 1268 return *name_to_modify; | 1268 return *name_to_modify; |
| 1269 } | 1269 } |
| 1270 | 1270 |
| 1271 | 1271 |
| 1272 const Array& TranslationHelper::ArgumentNames(List<NamedExpression>* named) { | 1272 const Array& TranslationHelper::ArgumentNames(List<NamedExpression>* named) { |
| 1273 if (named->length() == 0) return Array::ZoneHandle(Z); | 1273 if (named->length() == 0) return Array::ZoneHandle(Z); |
| 1274 | 1274 |
| 1275 const Array& names = | 1275 const Array& names = |
| 1276 Array::ZoneHandle(Z, Array::New(named->length(), allocation_space_)); | 1276 Array::ZoneHandle(Z, Array::New(named->length(), Heap::kOld)); |
| 1277 for (intptr_t i = 0; i < named->length(); ++i) { | 1277 for (intptr_t i = 0; i < named->length(); ++i) { |
| 1278 names.SetAt(i, DartSymbol((*named)[i]->name())); | 1278 names.SetAt(i, DartSymbol((*named)[i]->name())); |
| 1279 } | 1279 } |
| 1280 return names; | 1280 return names; |
| 1281 } | 1281 } |
| 1282 | 1282 |
| 1283 | 1283 |
| 1284 ConstantEvaluator::ConstantEvaluator(FlowGraphBuilder* builder, | 1284 ConstantEvaluator::ConstantEvaluator(FlowGraphBuilder* builder, |
| 1285 Zone* zone, | 1285 Zone* zone, |
| 1286 TranslationHelper* h, | 1286 TranslationHelper* h, |
| (...skipping 4520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5807 instructions += LoadLocal(parsed_function_->current_context_var()); | 5807 instructions += LoadLocal(parsed_function_->current_context_var()); |
| 5808 instructions += StoreInstanceField(Closure::context_offset()); | 5808 instructions += StoreInstanceField(Closure::context_offset()); |
| 5809 | 5809 |
| 5810 return instructions; | 5810 return instructions; |
| 5811 } | 5811 } |
| 5812 | 5812 |
| 5813 | 5813 |
| 5814 } // namespace kernel | 5814 } // namespace kernel |
| 5815 } // namespace dart | 5815 } // namespace dart |
| 5816 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 5816 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| OLD | NEW |