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

Unified Diff: runtime/vm/code_generator.cc

Issue 2759393005: Cleanup change. (Closed)
Patch Set: Created 3 years, 9 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/class_finalizer.cc ('k') | runtime/vm/constant_propagator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.cc
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
index 1d73b6b92011594142bb95f3c69e3973ea702025..22005f0796f98f707b0e57f508a8c723680c9222 100644
--- a/runtime/vm/code_generator.cc
+++ b/runtime/vm/code_generator.cc
@@ -277,7 +277,7 @@ DEFINE_RUNTIME_ENTRY(InstantiateTypeArguments, 2) {
ASSERT(instantiator.IsNull() || instantiator.IsInstantiated());
// Code inlined in the caller should have optimized the case where the
// instantiator can be reused as type argument vector.
- ASSERT(instantiator.IsNull() || !type_arguments.IsUninstantiatedIdentity());
+ ASSERT(!type_arguments.IsUninstantiatedIdentity());
if (isolate->type_checks()) {
Error& bound_error = Error::Handle(zone);
type_arguments = type_arguments.InstantiateAndCanonicalizeFrom(
@@ -812,9 +812,9 @@ RawFunction* InlineCacheMissHelper(const Instance& receiver,
static RawFunction* ComputeTypeCheckTarget(const Instance& receiver,
const AbstractType& type,
const ArgumentsDescriptor& desc) {
- const TypeArguments& checked_type_arguments = TypeArguments::Handle();
Error& error = Error::Handle();
- bool result = receiver.IsInstanceOf(type, checked_type_arguments, &error);
+ bool result =
+ receiver.IsInstanceOf(type, Object::null_type_arguments(), &error);
ASSERT(error.IsNull());
ObjectStore* store = Isolate::Current()->object_store();
const Function& target =
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/constant_propagator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698