Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 953563002: Implement experimental exponentiation operator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: use Number() instead of OrderedNumber() to include NaN Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins.h ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698