OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |