| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/interpreter/bytecode-pipeline.h" | 7 #include "src/interpreter/bytecode-pipeline.h" |
| 8 #include "src/interpreter/bytecode-register-allocator.h" | 8 #include "src/interpreter/bytecode-register-allocator.h" |
| 9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
| 10 #include "test/unittests/test-utils.h" | 10 #include "test/unittests/test-utils.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 uint32_t operands[] = {0x71, 0xa5, 0x5a, 0xfc}; | 152 uint32_t operands[] = {0x71, 0xa5, 0x5a, 0xfc}; |
| 153 BytecodeSourceInfo source_info(77, false); | 153 BytecodeSourceInfo source_info(77, false); |
| 154 BytecodeNode node(Bytecode::kForInNext, operands[0], operands[1], operands[2], | 154 BytecodeNode node(Bytecode::kForInNext, operands[0], operands[1], operands[2], |
| 155 operands[3], source_info); | 155 operands[3], source_info); |
| 156 | 156 |
| 157 BytecodeNode clone(Bytecode::kIllegal); | 157 BytecodeNode clone(Bytecode::kIllegal); |
| 158 clone = node; | 158 clone = node; |
| 159 clone.set_bytecode(Bytecode::kJump, 0x01aabbcc); | 159 clone.set_bytecode(Bytecode::kJump, 0x01aabbcc); |
| 160 CHECK_EQ(clone.bytecode(), Bytecode::kJump); | 160 CHECK_EQ(clone.bytecode(), Bytecode::kJump); |
| 161 CHECK_EQ(clone.operand_count(), 1); | 161 CHECK_EQ(clone.operand_count(), 1); |
| 162 CHECK_EQ(clone.operand(0), 0x01aabbcc); | 162 CHECK_EQ(clone.operand(0), 0x01aabbccu); |
| 163 CHECK_EQ(clone.source_info(), source_info); | 163 CHECK_EQ(clone.source_info(), source_info); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace interpreter | 166 } // namespace interpreter |
| 167 } // namespace internal | 167 } // namespace internal |
| 168 } // namespace v8 | 168 } // namespace v8 |
| OLD | NEW |