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 2883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2894 case Token::GT: | 2894 case Token::GT: |
2895 op = javascript()->GreaterThan(); | 2895 op = javascript()->GreaterThan(); |
2896 break; | 2896 break; |
2897 case Token::LTE: | 2897 case Token::LTE: |
2898 op = javascript()->LessThanOrEqual(); | 2898 op = javascript()->LessThanOrEqual(); |
2899 break; | 2899 break; |
2900 case Token::GTE: | 2900 case Token::GTE: |
2901 op = javascript()->GreaterThanOrEqual(); | 2901 op = javascript()->GreaterThanOrEqual(); |
2902 break; | 2902 break; |
2903 case Token::INSTANCEOF: | 2903 case Token::INSTANCEOF: |
2904 DCHECK(!FLAG_harmony_instanceof); | |
2905 op = javascript()->InstanceOf(); | 2904 op = javascript()->InstanceOf(); |
2906 break; | 2905 break; |
2907 case Token::IN: | 2906 case Token::IN: |
2908 op = javascript()->HasProperty(); | 2907 op = javascript()->HasProperty(); |
2909 break; | 2908 break; |
2910 default: | 2909 default: |
2911 op = nullptr; | 2910 op = nullptr; |
2912 UNREACHABLE(); | 2911 UNREACHABLE(); |
2913 } | 2912 } |
2914 VisitForValue(expr->left()); | 2913 VisitForValue(expr->left()); |
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4359 // Phi does not exist yet, introduce one. | 4358 // Phi does not exist yet, introduce one. |
4360 value = NewPhi(inputs, value, control); | 4359 value = NewPhi(inputs, value, control); |
4361 value->ReplaceInput(inputs - 1, other); | 4360 value->ReplaceInput(inputs - 1, other); |
4362 } | 4361 } |
4363 return value; | 4362 return value; |
4364 } | 4363 } |
4365 | 4364 |
4366 } // namespace compiler | 4365 } // namespace compiler |
4367 } // namespace internal | 4366 } // namespace internal |
4368 } // namespace v8 | 4367 } // namespace v8 |
OLD | NEW |