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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 351673002: Add class id constants fields to dart:_internal class 'ClassID'. Use the fields in the library (mor… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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_optimizer.cc
===================================================================
--- runtime/vm/flow_graph_optimizer.cc (revision 37613)
+++ runtime/vm/flow_graph_optimizer.cc (working copy)
@@ -4363,18 +4363,6 @@
CreateArrayInstr* create_array =
new(I) CreateArrayInstr(call->token_pos(), type, num_elements);
ReplaceCall(call, create_array);
- } else if (Library::PrivateCoreLibName(Symbols::ClassId()).Equals(
- String::Handle(I, call->function().name()))) {
- // Check for core library get:_classId.
- intptr_t cid = Class::Handle(I, call->function().Owner()).id();
- // Currently only implemented for a subset of classes.
- ASSERT((cid == kOneByteStringCid) || (cid == kTwoByteStringCid) ||
- (cid == kExternalOneByteStringCid) ||
- (cid == kGrowableObjectArrayCid) ||
- (cid == kImmutableArrayCid) || (cid == kArrayCid));
- ConstantInstr* cid_instr =
- new(I) ConstantInstr(Smi::Handle(I, Smi::New(cid)));
- ReplaceCall(call, cid_instr);
} else if (call->function().IsFactory()) {
const Class& function_class =
Class::Handle(I, call->function().Owner());

Powered by Google App Engine
This is Rietveld 408576698