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

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

Issue 1980483003: [es6] Reintroduce the instanceof operator in the backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Igors comments. Created 4 years, 7 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/code-stubs.cc ('k') | src/compiler/bytecode-graph-builder.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/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
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
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
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698