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

Unified Diff: runtime/lib/error.cc

Issue 8761011: Renaming type classes as discussed: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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 | « no previous file | runtime/vm/ast.h » ('j') | runtime/vm/object.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/error.cc
===================================================================
--- runtime/lib/error.cc (revision 1948)
+++ runtime/lib/error.cc (working copy)
@@ -214,7 +214,7 @@
ASSERT(arguments.Count() == kTypeCheckRuntimeEntry.argument_count());
intptr_t location = Smi::CheckedHandle(arguments.At(0)).Value();
const Instance& src_instance = Instance::CheckedHandle(arguments.At(1));
- const Type& dst_type = Type::CheckedHandle(arguments.At(2));
+ const AbstractType& dst_type = AbstractType::CheckedHandle(arguments.At(2));
const TypeArguments& dst_type_instantiator =
TypeArguments::CheckedHandle(arguments.At(3));
const String& dst_name = String::CheckedHandle(arguments.At(4));
@@ -226,7 +226,7 @@
if (FLAG_trace_type_checks) {
const Type& src_type = Type::Handle(src_instance.GetType());
- Type& instantiated_dst_type = Type::Handle(dst_type.raw());
+ AbstractType& instantiated_dst_type = AbstractType::Handle(dst_type.raw());
if (!dst_type.IsInstantiated()) {
// Instantiate dst_type before printing.
instantiated_dst_type =
@@ -243,7 +243,7 @@
String& dst_type_name = String::Handle();
if (!dst_type.IsInstantiated()) {
// Instantiate dst_type before reporting the error.
- const Type& instantiated_dst_type = Type::Handle(
+ const AbstractType& instantiated_dst_type = AbstractType::Handle(
dst_type.InstantiateFrom(dst_type_instantiator, 0));
dst_type_name = instantiated_dst_type.Name();
} else {
@@ -290,7 +290,8 @@
kRestArgumentTypeCheckRuntimeEntry.argument_count());
intptr_t location = Smi::CheckedHandle(arguments.At(0)).Value();
const Array& rest_array = Array::CheckedHandle(arguments.At(1));
- const Type& element_type = Type::CheckedHandle(arguments.At(2));
+ const AbstractType& element_type =
+ AbstractType::CheckedHandle(arguments.At(2));
const TypeArguments& element_type_instantiator =
TypeArguments::CheckedHandle(arguments.At(3));
const String& rest_name = String::CheckedHandle(arguments.At(4));
@@ -311,7 +312,7 @@
String& dst_type_name = String::Handle();
if (!element_type.IsInstantiated()) {
// Instantiate element_type before reporting the error.
- const Type& instantiated_element_type = Type::Handle(
+ const AbstractType& instantiated_element_type = AbstractType::Handle(
element_type.InstantiateFrom(element_type_instantiator, 0));
dst_type_name = instantiated_element_type.Name();
} else {
« no previous file with comments | « no previous file | runtime/vm/ast.h » ('j') | runtime/vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698