Index: runtime/vm/object_dbc_test.cc |
diff --git a/runtime/vm/object_dbc_test.cc b/runtime/vm/object_dbc_test.cc |
index 464350d17a73ddbff4a1b3032312a7dff0f8f745..ecb1fa08647a4ea4f27b5efaa291e9545e471c30 100644 |
--- a/runtime/vm/object_dbc_test.cc |
+++ b/runtime/vm/object_dbc_test.cc |
@@ -16,14 +16,12 @@ namespace dart { |
// Generate a simple dart code sequence. |
// This is used to test Code and Instruction object creation. |
+// For other architectures, this sequence does do an increment, hence the name. |
+// On DBC, we don't do an increment because generating an instance call here |
+// would be too complex. |
void GenerateIncrement(Assembler* assembler) { |
__ Frame(1); |
- __ LoadConstant(0, Smi::Handle(Smi::New(0))); |
- __ PushConstant(Smi::Handle(Smi::New(1))); |
- __ Push(0); |
- __ AddTOS(); |
- __ Trap(); |
- __ PopLocal(0); |
+ __ LoadConstant(0, Smi::Handle(Smi::New(1))); |
__ Return(0); |
} |