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

Unified Diff: runtime/vm/parser.cc

Issue 516303006: Minor changes to avoid handle creation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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/object.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 39813)
+++ runtime/vm/parser.cc (working copy)
@@ -9432,12 +9432,12 @@
const AbstractType* Parser::ReceiverType(const Class& cls) {
ASSERT(!cls.IsNull());
- TypeArguments& type_arguments = TypeArguments::Handle();
- if (cls.NumTypeParameters() > 0) {
- type_arguments = cls.type_parameters();
- }
+ const TypeArguments& type_arguments = TypeArguments::Handle(
+ I,
+ (cls.NumTypeParameters() > 0) ?
+ cls.type_parameters() : TypeArguments::null());
AbstractType& type = AbstractType::ZoneHandle(
- Type::New(cls, type_arguments, cls.token_pos()));
+ I, Type::New(cls, type_arguments, cls.token_pos()));
if (cls.is_type_finalized()) {
type ^= ClassFinalizer::FinalizeType(
cls, type, ClassFinalizer::kCanonicalizeWellFormed);
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698