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

Unified Diff: runtime/vm/coverage.cc

Issue 294943008: - Landing https://codereview.chromium.org/293963008/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/coverage.cc
===================================================================
--- runtime/vm/coverage.cc (revision 36443)
+++ runtime/vm/coverage.cc (working copy)
@@ -20,6 +20,7 @@
void CodeCoverage::CompileAndAdd(const Function& function,
const JSONArray& hits_arr) {
+ Isolate* isolate = Isolate::Current();
if (!function.HasCode()) {
// If the function should not be compiled or if the compilation failed,
// then just skip this method.
@@ -35,7 +36,8 @@
OS::Print("### Coverage skipped compiling: %s\n", function.ToCString());
return;
}
- const Error& err = Error::Handle(Compiler::CompileFunction(function));
+ const Error& err = Error::Handle(
+ isolate, Compiler::CompileFunction(isolate, function));
if (!err.IsNull()) {
OS::Print("### Coverage failed compiling:\n%s\n", err.ToErrorCString());
return;
@@ -43,7 +45,6 @@
}
ASSERT(function.HasCode());
- Isolate* isolate = Isolate::Current();
// Print the hit counts for all IC datas.
const Script& script = Script::Handle(function.script());
const Code& code = Code::Handle(function.unoptimized_code());
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698