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

Side by Side Diff: src/compiler/operator-properties.cc

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: rebase Created 4 years 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/compiler/opcodes.h ('k') | src/compiler/typer.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/operator-properties.h" 5 #include "src/compiler/operator-properties.h"
6 6
7 #include "src/compiler/js-operator.h" 7 #include "src/compiler/js-operator.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/opcodes.h" 9 #include "src/compiler/opcodes.h"
10 10
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Call operations 95 // Call operations
96 case IrOpcode::kJSCallConstruct: 96 case IrOpcode::kJSCallConstruct:
97 case IrOpcode::kJSCallConstructWithSpread: 97 case IrOpcode::kJSCallConstructWithSpread:
98 case IrOpcode::kJSCallFunction: 98 case IrOpcode::kJSCallFunction:
99 99
100 // Misc operations 100 // Misc operations
101 case IrOpcode::kJSConvertReceiver: 101 case IrOpcode::kJSConvertReceiver:
102 case IrOpcode::kJSForInNext: 102 case IrOpcode::kJSForInNext:
103 case IrOpcode::kJSForInPrepare: 103 case IrOpcode::kJSForInPrepare:
104 case IrOpcode::kJSStackCheck: 104 case IrOpcode::kJSStackCheck:
105 case IrOpcode::kJSGetSuperConstructor:
105 return true; 106 return true;
106 107
107 default: 108 default:
108 return false; 109 return false;
109 } 110 }
110 } 111 }
111 112
112 113
113 // static 114 // static
114 int OperatorProperties::GetTotalInputCount(const Operator* op) { 115 int OperatorProperties::GetTotalInputCount(const Operator* op) {
(...skipping 10 matching lines...) Expand all
125 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 126 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
126 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 127 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
127 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || 128 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess ||
128 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || 129 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue ||
129 opcode == IrOpcode::kIfDefault; 130 opcode == IrOpcode::kIfDefault;
130 } 131 }
131 132
132 } // namespace compiler 133 } // namespace compiler
133 } // namespace internal 134 } // namespace internal
134 } // namespace v8 135 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698