| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 <stack> | 5 #include <stack> |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #include "src/interpreter/register-translator.h" | 9 #include "src/interpreter/register-translator.h" |
| 10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 TEST_F(RegisterTranslatorTest, BadRange2) { | 243 TEST_F(RegisterTranslatorTest, BadRange2) { |
| 244 // Bytecode::kForInNext with invalid range operand (kRegPair8) | 244 // Bytecode::kForInNext with invalid range operand (kRegPair8) |
| 245 Register receiver(192); | 245 Register receiver(192); |
| 246 Register receiver_translated(receiver.index() + window_width()); | 246 Register receiver_translated(receiver.index() + window_width()); |
| 247 Register index(193); | 247 Register index(193); |
| 248 Register index_translated(index.index() + window_width()); | 248 Register index_translated(index.index() + window_width()); |
| 249 Register cache_info_pair(194); | 249 Register cache_info_pair(194); |
| 250 Register cache_info_pair_translated(cache_info_pair.index() + window_width()); | 250 Register cache_info_pair_translated(cache_info_pair.index() + window_width()); |
| 251 uint32_t operands[] = {receiver.ToRawOperand(), index.ToRawOperand(), | 251 uint32_t operands[] = {receiver.ToRawOperand(), index.ToRawOperand(), |
| 252 cache_info_pair.ToRawOperand()}; | 252 cache_info_pair.ToRawOperand(), 1}; |
| 253 ASSERT_DEATH_IF_SUPPORTED( | 253 ASSERT_DEATH_IF_SUPPORTED( |
| 254 translator()->TranslateInputRegisters(Bytecode::kForInNext, operands, 3), | 254 translator()->TranslateInputRegisters(Bytecode::kForInNext, operands, 4), |
| 255 kBadOperandRegex); | 255 kBadOperandRegex); |
| 256 } | 256 } |
| 257 | 257 |
| 258 } // namespace interpreter | 258 } // namespace interpreter |
| 259 } // namespace internal | 259 } // namespace internal |
| 260 } // namespace v8 | 260 } // namespace v8 |
| OLD | NEW |