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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 10659005: Implement type cast in the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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
Index: runtime/vm/flow_graph_compiler_ia32.cc
===================================================================
--- runtime/vm/flow_graph_compiler_ia32.cc (revision 9048)
+++ runtime/vm/flow_graph_compiler_ia32.cc (working copy)
@@ -541,8 +541,7 @@
if (tp_argument.IsType()) {
ASSERT(tp_argument.HasResolvedTypeClass());
// Check if type argument is dynamic or Object.
- const Type& object_type =
- Type::Handle(Isolate::Current()->object_store()->object_type());
+ const Type& object_type = Type::Handle(Type::ObjectType());
Error& malformed_error = Error::Handle();
if (object_type.IsSubtypeOf(tp_argument, &malformed_error)) {
// Instance class test only necessary.
@@ -680,8 +679,7 @@
__ j(EQUAL, is_instance_lbl);
__ cmpl(EDI, raw_null);
__ j(EQUAL, is_instance_lbl);
- const Type& object_type =
- Type::ZoneHandle(Isolate::Current()->object_store()->object_type());
+ const Type& object_type = Type::ZoneHandle(Type::ObjectType());
__ CompareObject(EDI, object_type);
__ j(EQUAL, is_instance_lbl);
@@ -913,7 +911,6 @@
intptr_t try_index,
const AbstractType& dst_type,
const String& dst_name) {
- ASSERT(FLAG_enable_type_checks);
ASSERT(token_pos >= 0);
ASSERT(!dst_type.IsNull());
ASSERT(dst_type.IsFinalized());

Powered by Google App Engine
This is Rietveld 408576698