@@ -945,7 +945,7 @@ BlockEntryInstr* TestGraphVisitor::CreateFalseSuccessor() const {
945945
946946void TestGraphVisitor::ReturnValue (Value* value) {
947947 Isolate* isolate = Isolate::Current ();
948- if (isolate->type_checks () || isolate->asserts ()) {
948+ if (isolate->strong () || isolate-> type_checks () || isolate->asserts ()) {
949949 value = Bind (new (Z) AssertBooleanInstr (condition_token_pos (), value,
950950 owner ()->GetNextDeoptId ()));
951951 }
@@ -1290,7 +1290,7 @@ void EffectGraphVisitor::VisitBinaryOpNode(BinaryOpNode* node) {
12901290 node->left ()->Visit (&for_left);
12911291 EffectGraphVisitor empty (owner ());
12921292 Isolate* isolate = Isolate::Current ();
1293- if (isolate->type_checks () || isolate->asserts ()) {
1293+ if (isolate->strong () || isolate-> type_checks () || isolate->asserts ()) {
12941294 ValueGraphVisitor for_right (owner ());
12951295 node->right ()->Visit (&for_right);
12961296 Value* right_value = for_right.value ();
@@ -1354,7 +1354,7 @@ void ValueGraphVisitor::VisitBinaryOpNode(BinaryOpNode* node) {
13541354 node->right ()->Visit (&for_right);
13551355 Value* right_value = for_right.value ();
13561356 Isolate* isolate = Isolate::Current ();
1357- if (isolate->type_checks () || isolate->asserts ()) {
1357+ if (isolate->strong () || isolate-> type_checks () || isolate->asserts ()) {
13581358 right_value = for_right.Bind (new (Z) AssertBooleanInstr (
13591359 node->right ()->token_pos (), right_value, owner ()->GetNextDeoptId ()));
13601360 }
@@ -1626,7 +1626,7 @@ void EffectGraphVisitor::VisitComparisonNode(ComparisonNode* node) {
16261626 owner ()->ic_data_array (), owner ()->GetNextDeoptId ());
16271627 if (node->kind () == Token::kNE ) {
16281628 Isolate* isolate = Isolate::Current ();
1629- if (isolate->type_checks () || isolate->asserts ()) {
1629+ if (isolate->strong () || isolate-> type_checks () || isolate->asserts ()) {
16301630 Value* value = Bind (result);
16311631 result = new (Z) AssertBooleanInstr (node->token_pos (), value,
16321632 owner ()->GetNextDeoptId ());
@@ -1670,7 +1670,7 @@ void EffectGraphVisitor::VisitUnaryOpNode(UnaryOpNode* node) {
16701670 Append (for_value);
16711671 Value* value = for_value.value ();
16721672 Isolate* isolate = Isolate::Current ();
1673- if (isolate->type_checks () || isolate->asserts ()) {
1673+ if (isolate->strong () || isolate-> type_checks () || isolate->asserts ()) {
16741674 value = Bind (new (Z) AssertBooleanInstr (
16751675 node->operand ()->token_pos (), value, owner ()->GetNextDeoptId ()));
16761676 }
0 commit comments