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

Unified Diff: vm/exceptions.cc

Issue 11648006: Create read only handles for empty_array and sentinel objects (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: vm/exceptions.cc
===================================================================
--- vm/exceptions.cc (revision 16331)
+++ vm/exceptions.cc (working copy)
@@ -143,8 +143,8 @@
const Instance& existing_stacktrace) {
Instance& exception = Instance::Handle(incoming_exception.raw());
if (exception.IsNull()) {
- const Array& arguments = Array::Handle(Object::empty_array());
- exception ^= Exceptions::Create(Exceptions::kNullThrown, arguments);
+ exception ^= Exceptions::Create(Exceptions::kNullThrown,
+ Object::empty_array());
}
uword handler_pc = 0;
uword handler_sp = 0;

Powered by Google App Engine
This is Rietveld 408576698