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

Unified Diff: runtime/vm/opt_code_generator_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
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/opt_code_generator_ia32.cc
===================================================================
--- runtime/vm/opt_code_generator_ia32.cc (revision 9069)
+++ runtime/vm/opt_code_generator_ia32.cc (working copy)
@@ -2098,7 +2098,7 @@
return;
}
- if (Token::IsInstanceofOperator(node->kind())) {
+ if (Token::IsTypeTestOperator(node->kind())) {
VisitLoadOne(node->left(), EAX);
ASSERT(node->right()->IsTypeNode());
GenerateInstanceOf(node->id(),
@@ -2112,6 +2112,11 @@
return;
}
+ if (Token::IsTypeCastOperator(node->kind())) {
+ // This code generator is not maintained anymore.
+ UNIMPLEMENTED();
+ }
+
if (NodeHasClassAt(node, smi_class_, 0)) {
if (GenerateSmiComparison(node)) {
// The comparison was handled, code was emitted.
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698