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

Unified Diff: runtime/vm/object.cc

Issue 1289813005: Use Object::null_instance and Object::null_function and do not create Handles everytime. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code-review-patch 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 4d643122d6564aa4e34fcfccc5ec4b737f273981..056bc38b731fed81d2bbca22a3564b2b06c3e6e4 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -7249,7 +7249,6 @@ RawField* Field::New(const String& name,
result.set_owner(owner);
result.set_token_pos(token_pos);
result.set_has_initializer(false);
- result.set_initializer(Function::Handle());
result.set_is_unboxing_candidate(true);
result.set_guarded_cid(FLAG_use_field_guards ? kIllegalCid : kDynamicCid);
result.set_is_nullable(FLAG_use_field_guards ? false : true);
@@ -7260,7 +7259,6 @@ RawField* Field::New(const String& name,
} else {
result.set_guarded_list_length(Field::kNoFixedLength);
}
- result.set_dependent_code(Object::null_array());
return result.raw();
}
@@ -7273,7 +7271,6 @@ RawField* Field::Clone(const Class& new_owner) const {
const PatchClass& clone_owner =
PatchClass::Handle(PatchClass::New(new_owner, owner));
clone.set_owner(clone_owner);
- clone.set_dependent_code(Object::null_array());
if (!clone.is_static()) {
clone.SetOffset(0);
}
@@ -10507,7 +10504,6 @@ RawLibraryPrefix* LibraryPrefix::New(const String& name,
result.StoreNonPointer(&result.raw_ptr()->is_loaded_, !deferred_load);
result.set_imports(Array::Handle(Array::New(kInitialSize)));
result.AddImport(import);
- result.set_dependent_code(Object::null_array());
return result.raw();
}
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698