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/compiler.h" | 7 #include "src/compiler.h" |
8 #include "src/compiler/ast-loop-assignment-analyzer.h" | 8 #include "src/compiler/ast-loop-assignment-analyzer.h" |
9 #include "src/compiler/control-builders.h" | 9 #include "src/compiler/control-builders.h" |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 2887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2898 break; | 2898 break; |
2899 case Token::MUL: | 2899 case Token::MUL: |
2900 js_op = javascript()->Multiply(); | 2900 js_op = javascript()->Multiply(); |
2901 break; | 2901 break; |
2902 case Token::DIV: | 2902 case Token::DIV: |
2903 js_op = javascript()->Divide(); | 2903 js_op = javascript()->Divide(); |
2904 break; | 2904 break; |
2905 case Token::MOD: | 2905 case Token::MOD: |
2906 js_op = javascript()->Modulus(); | 2906 js_op = javascript()->Modulus(); |
2907 break; | 2907 break; |
| 2908 case Token::EXP: |
| 2909 js_op = javascript()->Exponentiate(); |
| 2910 break; |
2908 default: | 2911 default: |
2909 UNREACHABLE(); | 2912 UNREACHABLE(); |
2910 js_op = NULL; | 2913 js_op = NULL; |
2911 } | 2914 } |
2912 return NewNode(js_op, left, right); | 2915 return NewNode(js_op, left, right); |
2913 } | 2916 } |
2914 | 2917 |
2915 | 2918 |
2916 Node* AstGraphBuilder::BuildStackCheck() { | 2919 Node* AstGraphBuilder::BuildStackCheck() { |
2917 IfBuilder stack_check(this); | 2920 IfBuilder stack_check(this); |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3233 // Phi does not exist yet, introduce one. | 3236 // Phi does not exist yet, introduce one. |
3234 value = NewPhi(inputs, value, control); | 3237 value = NewPhi(inputs, value, control); |
3235 value->ReplaceInput(inputs - 1, other); | 3238 value->ReplaceInput(inputs - 1, other); |
3236 } | 3239 } |
3237 return value; | 3240 return value; |
3238 } | 3241 } |
3239 | 3242 |
3240 } // namespace compiler | 3243 } // namespace compiler |
3241 } // namespace internal | 3244 } // namespace internal |
3242 } // namespace v8 | 3245 } // namespace v8 |
OLD | NEW |