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

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 39785)
+++ runtime/vm/parser.cc (working copy)
@@ -9407,12 +9407,13 @@
const AbstractType* Parser::ReceiverType(const Class& cls) {
ASSERT(!cls.IsNull());
- TypeArguments& type_arguments = TypeArguments::Handle();
- if (cls.NumTypeParameters() > 0) {
- type_arguments = cls.type_parameters();
- }
+ Isolate* isolate = Isolate::Current();
srdjan 2014/09/03 15:41:50 Parser has a field isolate_
siva 2014/09/03 18:27:57 Parser::ReceiverType was a static method and isola
+ const TypeArguments& type_arguments = TypeArguments::Handle(
+ isolate,
+ (cls.NumTypeParameters() > 0) ?
+ cls.type_parameters() : TypeArguments::null());
AbstractType& type = AbstractType::ZoneHandle(
- Type::New(cls, type_arguments, cls.token_pos()));
+ isolate, Type::New(cls, type_arguments, cls.token_pos()));
srdjan 2014/09/03 15:41:50 s/isolate/I
siva 2014/09/03 18:27:57 Done.
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