Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: test/unittests/interpreter/register-translator-unittest.cc

Issue 1755563002: [interpreter] Properly collect for-in slow mode feedback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: More recementation Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/unittests/interpreter/bytecode-array-builder-unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « test/unittests/interpreter/bytecode-array-builder-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698