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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 2891713002: Cleanup: Make CheckClassId instruction more general so it (Closed)
Patch Set: Created 3 years, 7 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
diff --git a/runtime/vm/flow_graph_compiler_ia32.cc b/runtime/vm/flow_graph_compiler_ia32.cc
index 1538e0f7680ba2346a2d328b9b547f4ec21e5a17..1b67d1fc6b41a0016c18010588359377a840233e 100644
--- a/runtime/vm/flow_graph_compiler_ia32.cc
+++ b/runtime/vm/flow_graph_compiler_ia32.cc
@@ -1457,7 +1457,7 @@ int FlowGraphCompiler::EmitTestAndCallCheckCid(Label* next_label,
int bias) {
intptr_t cid_start = range.cid_start;
intptr_t cid_end = range.cid_end;
- if (cid_start == cid_end) {
+ if (range.IsSingleCid()) {
__ cmpl(EDI, Immediate(cid_start - bias));
__ j(NOT_EQUAL, next_label);
} else {

Powered by Google App Engine
This is Rietveld 408576698