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

Unified Diff: runtime/vm/compiler.cc

Issue 512933002: Use PassiveObject were possible. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 39611)
+++ runtime/vm/compiler.cc (working copy)
@@ -968,7 +968,7 @@
// Invoke the function to evaluate the expression.
const Function& initializer = parsed_function->function();
- const Object& result = Object::Handle(
+ const Object& result = PassiveObject::Handle(
DartEntry::InvokeFunction(initializer, Object::empty_array()));
return result.raw();
} else {
@@ -1026,12 +1026,12 @@
// Non-optimized code generator.
CompileParsedFunctionHelper(parsed_function, false, Isolate::kNoDeoptId);
- const Object& result = Object::Handle(
+ const Object& result = PassiveObject::Handle(
DartEntry::InvokeFunction(func, Object::empty_array()));
return result.raw();
} else {
const Object& result =
- Object::Handle(isolate->object_store()->sticky_error());
+ PassiveObject::Handle(isolate->object_store()->sticky_error());
isolate->object_store()->clear_sticky_error();
return result.raw();
}

Powered by Google App Engine
This is Rietveld 408576698