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

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

Issue 1288863006: Use zone allocated growable array to populate interim static and stub calls table, thus allocating … (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Address review comments; allocate static table array in old space. Created 5 years, 4 months 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 | « no previous file | runtime/vm/flow_graph_compiler.h » ('j') | runtime/vm/flow_graph_compiler.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 1134
1135 const bool optimized = 1135 const bool optimized =
1136 Compiler::always_optimize() && function.IsOptimizable(); 1136 Compiler::always_optimize() && function.IsOptimizable();
1137 1137
1138 return CompileFunctionHelper(pipeline, function, optimized, 1138 return CompileFunctionHelper(pipeline, function, optimized,
1139 Isolate::kNoDeoptId); 1139 Isolate::kNoDeoptId);
1140 } 1140 }
1141 1141
1142 1142
1143 RawError* Compiler::EnsureUnoptimizedCode(Thread* thread, 1143 RawError* Compiler::EnsureUnoptimizedCode(Thread* thread,
1144 const Function& function) { 1144 const Function& function) {
1145 if (function.unoptimized_code() != Object::null()) { 1145 if (function.unoptimized_code() != Object::null()) {
1146 return Error::null(); 1146 return Error::null();
1147 } 1147 }
1148 Code& original_code = Code::ZoneHandle(thread->zone()); 1148 Code& original_code = Code::ZoneHandle(thread->zone());
1149 if (function.HasCode()) { 1149 if (function.HasCode()) {
1150 original_code = function.CurrentCode(); 1150 original_code = function.CurrentCode();
1151 } 1151 }
1152 CompilationPipeline* pipeline = 1152 CompilationPipeline* pipeline =
1153 CompilationPipeline::New(thread->zone(), function); 1153 CompilationPipeline::New(thread->zone(), function);
1154 const Error& error = Error::Handle( 1154 const Error& error = Error::Handle(
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 const Object& result = 1425 const Object& result =
1426 PassiveObject::Handle(isolate->object_store()->sticky_error()); 1426 PassiveObject::Handle(isolate->object_store()->sticky_error());
1427 isolate->object_store()->clear_sticky_error(); 1427 isolate->object_store()->clear_sticky_error();
1428 return result.raw(); 1428 return result.raw();
1429 } 1429 }
1430 UNREACHABLE(); 1430 UNREACHABLE();
1431 return Object::null(); 1431 return Object::null();
1432 } 1432 }
1433 1433
1434 } // namespace dart 1434 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.h » ('j') | runtime/vm/flow_graph_compiler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698