OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/compiler/ast-graph-builder.h" | 5 #include "src/compiler/ast-graph-builder.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
9 #include "src/compiler/ast-loop-assignment-analyzer.h" | 9 #include "src/compiler/ast-loop-assignment-analyzer.h" |
10 #include "src/compiler/control-builders.h" | 10 #include "src/compiler/control-builders.h" |
(...skipping 2859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2870 case Token::GT: | 2870 case Token::GT: |
2871 op = javascript()->GreaterThan(); | 2871 op = javascript()->GreaterThan(); |
2872 break; | 2872 break; |
2873 case Token::LTE: | 2873 case Token::LTE: |
2874 op = javascript()->LessThanOrEqual(); | 2874 op = javascript()->LessThanOrEqual(); |
2875 break; | 2875 break; |
2876 case Token::GTE: | 2876 case Token::GTE: |
2877 op = javascript()->GreaterThanOrEqual(); | 2877 op = javascript()->GreaterThanOrEqual(); |
2878 break; | 2878 break; |
2879 case Token::INSTANCEOF: | 2879 case Token::INSTANCEOF: |
| 2880 DCHECK(!FLAG_harmony_instanceof); |
2880 op = javascript()->InstanceOf(); | 2881 op = javascript()->InstanceOf(); |
2881 break; | 2882 break; |
2882 case Token::IN: | 2883 case Token::IN: |
2883 op = javascript()->HasProperty(); | 2884 op = javascript()->HasProperty(); |
2884 break; | 2885 break; |
2885 default: | 2886 default: |
2886 op = nullptr; | 2887 op = nullptr; |
2887 UNREACHABLE(); | 2888 UNREACHABLE(); |
2888 } | 2889 } |
2889 VisitForValue(expr->left()); | 2890 VisitForValue(expr->left()); |
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4372 // Phi does not exist yet, introduce one. | 4373 // Phi does not exist yet, introduce one. |
4373 value = NewPhi(inputs, value, control); | 4374 value = NewPhi(inputs, value, control); |
4374 value->ReplaceInput(inputs - 1, other); | 4375 value->ReplaceInput(inputs - 1, other); |
4375 } | 4376 } |
4376 return value; | 4377 return value; |
4377 } | 4378 } |
4378 | 4379 |
4379 } // namespace compiler | 4380 } // namespace compiler |
4380 } // namespace internal | 4381 } // namespace internal |
4381 } // namespace v8 | 4382 } // namespace v8 |
OLD | NEW |