| Index: runtime/vm/code_generator.cc
|
| diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
|
| index 48a29a9b7005ae88ff2799cfd51d375d96ff110f..b80d822bdba647fc1906d2b8e95fbcb92f32a76a 100644
|
| --- a/runtime/vm/code_generator.cc
|
| +++ b/runtime/vm/code_generator.cc
|
| @@ -565,9 +565,9 @@ DEFINE_RUNTIME_ENTRY(Instanceof, 5) {
|
| ASSERT(type.IsFinalized());
|
| Error& malformed_error = Error::Handle();
|
| const Bool& result =
|
| - instance.IsInstanceOf(type,
|
| - instantiator_type_arguments,
|
| - &malformed_error) ? Bool::True() : Bool::False();
|
| + Bool::Get(instance.IsInstanceOf(type,
|
| + instantiator_type_arguments,
|
| + &malformed_error));
|
| if (FLAG_trace_type_checks) {
|
| PrintTypeCheck("InstanceOf",
|
| instance, type, instantiator_type_arguments, result);
|
| @@ -621,7 +621,7 @@ DEFINE_RUNTIME_ENTRY(TypeCheck, 6) {
|
| if (FLAG_trace_type_checks) {
|
| PrintTypeCheck("TypeCheck",
|
| src_instance, dst_type, instantiator_type_arguments,
|
| - is_instance_of ? Bool::True() : Bool::False());
|
| + Bool::Get(is_instance_of));
|
| }
|
| if (!is_instance_of) {
|
| // Throw a dynamic type error.
|
|
|