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/globals.h" | 7 #include "src/globals.h" |
8 #include "src/interpreter/bytecode-array-writer.h" | 8 #include "src/interpreter/bytecode-array-writer.h" |
9 #include "src/interpreter/bytecode-dead-code-optimizer.h" | 9 #include "src/interpreter/bytecode-dead-code-optimizer.h" |
10 #include "src/interpreter/bytecode-label.h" | 10 #include "src/interpreter/bytecode-label.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 break; | 234 break; |
235 case Token::Value::LTE: | 235 case Token::Value::LTE: |
236 Output(Bytecode::kTestLessThanOrEqual, RegisterOperand(reg), | 236 Output(Bytecode::kTestLessThanOrEqual, RegisterOperand(reg), |
237 UnsignedOperand(feedback_slot)); | 237 UnsignedOperand(feedback_slot)); |
238 break; | 238 break; |
239 case Token::Value::GTE: | 239 case Token::Value::GTE: |
240 Output(Bytecode::kTestGreaterThanOrEqual, RegisterOperand(reg), | 240 Output(Bytecode::kTestGreaterThanOrEqual, RegisterOperand(reg), |
241 UnsignedOperand(feedback_slot)); | 241 UnsignedOperand(feedback_slot)); |
242 break; | 242 break; |
243 case Token::Value::INSTANCEOF: | 243 case Token::Value::INSTANCEOF: |
244 Output(Bytecode::kTestInstanceOf, RegisterOperand(reg), | 244 Output(Bytecode::kTestInstanceOf, RegisterOperand(reg)); |
245 UnsignedOperand(feedback_slot)); | |
246 break; | 245 break; |
247 case Token::Value::IN: | 246 case Token::Value::IN: |
248 Output(Bytecode::kTestIn, RegisterOperand(reg)); | 247 Output(Bytecode::kTestIn, RegisterOperand(reg)); |
249 break; | 248 break; |
250 default: | 249 default: |
251 UNREACHABLE(); | 250 UNREACHABLE(); |
252 } | 251 } |
253 return *this; | 252 return *this; |
254 } | 253 } |
255 | 254 |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 } | 934 } |
936 } | 935 } |
937 } | 936 } |
938 | 937 |
939 return true; | 938 return true; |
940 } | 939 } |
941 | 940 |
942 } // namespace interpreter | 941 } // namespace interpreter |
943 } // namespace internal | 942 } // namespace internal |
944 } // namespace v8 | 943 } // namespace v8 |
OLD | NEW |