| Index: runtime/vm/code_generator.cc
|
| ===================================================================
|
| --- runtime/vm/code_generator.cc (revision 44266)
|
| +++ runtime/vm/code_generator.cc (working copy)
|
| @@ -658,7 +658,7 @@
|
| caller_code.GetStaticCallTargetFunctionAt(caller_frame->pc()));
|
| if (!target_function.HasCode()) {
|
| const Error& error =
|
| - Error::Handle(Compiler::CompileFunction(isolate, target_function));
|
| + Error::Handle(Compiler::CompileFunction(thread, target_function));
|
| if (!error.IsNull()) {
|
| Exceptions::PropagateError(error);
|
| }
|
| @@ -930,7 +930,7 @@
|
| ASSERT(ic_data.NumberOfChecks() == 1);
|
| const Function& target = Function::Handle(ic_data.GetTargetAt(0));
|
| if (!target.HasCode()) {
|
| - const Error& error = Error::Handle(Compiler::CompileFunction(isolate,
|
| + const Error& error = Error::Handle(Compiler::CompileFunction(thread,
|
| target));
|
| if (!error.IsNull()) {
|
| Exceptions::PropagateError(error);
|
| @@ -963,7 +963,7 @@
|
| ASSERT(ic_data.NumberOfChecks() > 0);
|
| const Function& target = Function::Handle(ic_data.GetTargetAt(0));
|
| if (!target.HasCode()) {
|
| - const Error& error = Error::Handle(Compiler::CompileFunction(isolate,
|
| + const Error& error = Error::Handle(Compiler::CompileFunction(thread,
|
| target));
|
| if (!error.IsNull()) {
|
| Exceptions::PropagateError(error);
|
| @@ -1262,7 +1262,7 @@
|
| // it cannot have been removed from the function.
|
| ASSERT(!original_code.IsNull());
|
| const Error& error = Error::Handle(Compiler::CompileOptimizedFunction(
|
| - isolate, function, osr_id));
|
| + thread, function, osr_id));
|
| if (!error.IsNull()) {
|
| Exceptions::PropagateError(error);
|
| }
|
| @@ -1313,7 +1313,7 @@
|
| // prevent recursive triggering of function optimization.
|
| function.set_usage_counter(0);
|
| const Error& error = Error::Handle(
|
| - isolate, Compiler::CompileOptimizedFunction(isolate, function));
|
| + isolate, Compiler::CompileOptimizedFunction(thread, function));
|
| if (!error.IsNull()) {
|
| Exceptions::PropagateError(error);
|
| }
|
| @@ -1349,7 +1349,7 @@
|
| ASSERT(!target_code.IsNull());
|
| if (!target_function.HasCode()) {
|
| const Error& error = Error::Handle(
|
| - isolate, Compiler::CompileFunction(isolate, target_function));
|
| + isolate, Compiler::CompileFunction(thread, target_function));
|
| if (!error.IsNull()) {
|
| Exceptions::PropagateError(error);
|
| }
|
|
|