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

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 1985033002: [Interpreter] Change LogicalNot to ToBooleanLogicalNot and add non-ToBoolean version. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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/compiler/bytecode-graph-builder.cc ('k') | src/interpreter/bytecode-peephole-optimizer.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/interpreter/bytecode-array-writer.h" 8 #include "src/interpreter/bytecode-array-writer.h"
9 #include "src/interpreter/bytecode-peephole-optimizer.h" 9 #include "src/interpreter/bytecode-peephole-optimizer.h"
10 #include "src/interpreter/interpreter-intrinsics.h" 10 #include "src/interpreter/interpreter-intrinsics.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 return *this; 181 return *this;
182 } 182 }
183 183
184 BytecodeArrayBuilder& BytecodeArrayBuilder::CountOperation(Token::Value op) { 184 BytecodeArrayBuilder& BytecodeArrayBuilder::CountOperation(Token::Value op) {
185 Output(BytecodeForCountOperation(op)); 185 Output(BytecodeForCountOperation(op));
186 return *this; 186 return *this;
187 } 187 }
188 188
189 189
190 BytecodeArrayBuilder& BytecodeArrayBuilder::LogicalNot() { 190 BytecodeArrayBuilder& BytecodeArrayBuilder::LogicalNot() {
191 Output(Bytecode::kLogicalNot); 191 Output(Bytecode::kToBooleanLogicalNot);
192 return *this; 192 return *this;
193 } 193 }
194 194
195 195
196 BytecodeArrayBuilder& BytecodeArrayBuilder::TypeOf() { 196 BytecodeArrayBuilder& BytecodeArrayBuilder::TypeOf() {
197 Output(Bytecode::kTypeOf); 197 Output(Bytecode::kTypeOf);
198 return *this; 198 return *this;
199 } 199 }
200 200
201 BytecodeArrayBuilder& BytecodeArrayBuilder::CompareOperation(Token::Value op, 201 BytecodeArrayBuilder& BytecodeArrayBuilder::CompareOperation(Token::Value op,
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 } 1284 }
1285 1285
1286 uint32_t BytecodeArrayBuilder::UnsignedOperand(size_t value) { 1286 uint32_t BytecodeArrayBuilder::UnsignedOperand(size_t value) {
1287 DCHECK_LE(value, kMaxUInt32); 1287 DCHECK_LE(value, kMaxUInt32);
1288 return static_cast<uint32_t>(value); 1288 return static_cast<uint32_t>(value);
1289 } 1289 }
1290 1290
1291 } // namespace interpreter 1291 } // namespace interpreter
1292 } // namespace internal 1292 } // namespace internal
1293 } // namespace v8 1293 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/interpreter/bytecode-peephole-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698