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

Side by Side Diff: runtime/vm/kernel_to_il.cc

Issue 2539173002: VM: [Kernel] Allocate objects in KernelReader/kernel::FlowGraphBuilder in Heap::kOld if appropriate (Closed)
Patch Set: Update status files Created 4 years 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 | « runtime/vm/kernel_reader.cc ('k') | tests/co19/co19-kernel.status » ('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 (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
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
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)
OLDNEW
« no previous file with comments | « runtime/vm/kernel_reader.cc ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698