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-writer.h" | 5 #include "src/interpreter/bytecode-array-writer.h" |
6 | 6 |
7 #include "src/api.h" | 7 #include "src/api.h" |
8 #include "src/interpreter/bytecode-label.h" | 8 #include "src/interpreter/bytecode-label.h" |
9 #include "src/interpreter/bytecode-register.h" | 9 #include "src/interpreter/bytecode-register.h" |
10 #include "src/interpreter/constant-array-builder.h" | 10 #include "src/interpreter/constant-array-builder.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 case Bytecode::kJumpIfFalse: | 155 case Bytecode::kJumpIfFalse: |
156 return Bytecode::kJumpIfFalseConstant; | 156 return Bytecode::kJumpIfFalseConstant; |
157 case Bytecode::kJumpIfToBooleanTrue: | 157 case Bytecode::kJumpIfToBooleanTrue: |
158 return Bytecode::kJumpIfToBooleanTrueConstant; | 158 return Bytecode::kJumpIfToBooleanTrueConstant; |
159 case Bytecode::kJumpIfToBooleanFalse: | 159 case Bytecode::kJumpIfToBooleanFalse: |
160 return Bytecode::kJumpIfToBooleanFalseConstant; | 160 return Bytecode::kJumpIfToBooleanFalseConstant; |
161 case Bytecode::kJumpIfNotHole: | 161 case Bytecode::kJumpIfNotHole: |
162 return Bytecode::kJumpIfNotHoleConstant; | 162 return Bytecode::kJumpIfNotHoleConstant; |
163 case Bytecode::kJumpIfNull: | 163 case Bytecode::kJumpIfNull: |
164 return Bytecode::kJumpIfNullConstant; | 164 return Bytecode::kJumpIfNullConstant; |
| 165 case Bytecode::kJumpIfNotNull: |
| 166 return Bytecode::kJumpIfNotNullConstant; |
165 case Bytecode::kJumpIfUndefined: | 167 case Bytecode::kJumpIfUndefined: |
166 return Bytecode::kJumpIfUndefinedConstant; | 168 return Bytecode::kJumpIfUndefinedConstant; |
| 169 case Bytecode::kJumpIfNotUndefined: |
| 170 return Bytecode::kJumpIfNotUndefinedConstant; |
167 case Bytecode::kJumpIfJSReceiver: | 171 case Bytecode::kJumpIfJSReceiver: |
168 return Bytecode::kJumpIfJSReceiverConstant; | 172 return Bytecode::kJumpIfJSReceiverConstant; |
169 default: | 173 default: |
170 UNREACHABLE(); | 174 UNREACHABLE(); |
171 return Bytecode::kIllegal; | 175 return Bytecode::kIllegal; |
172 } | 176 } |
173 } | 177 } |
174 | 178 |
175 void BytecodeArrayWriter::PatchJumpWith8BitOperand(size_t jump_location, | 179 void BytecodeArrayWriter::PatchJumpWith8BitOperand(size_t jump_location, |
176 int delta) { | 180 int delta) { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 node->update_operand0(k32BitJumpPlaceholder); | 328 node->update_operand0(k32BitJumpPlaceholder); |
325 break; | 329 break; |
326 } | 330 } |
327 } | 331 } |
328 EmitBytecode(node); | 332 EmitBytecode(node); |
329 } | 333 } |
330 | 334 |
331 } // namespace interpreter | 335 } // namespace interpreter |
332 } // namespace internal | 336 } // namespace internal |
333 } // namespace v8 | 337 } // namespace v8 |
OLD | NEW |