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

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

Issue 2894293003: Save/restore only live registers in the generator suspend/resume. (Closed)
Patch Set: Tweak Created 3 years, 6 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 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 "test/unittests/interpreter/interpreter-assembler-unittest.h" 5 #include "test/unittests/interpreter/interpreter-assembler-unittest.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/compiler/node.h" 8 #include "src/compiler/node.h"
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 m.IsUnsignedOperand(offset, operand_size)); 385 m.IsUnsignedOperand(offset, operand_size));
386 break; 386 break;
387 case interpreter::OperandType::kImm: { 387 case interpreter::OperandType::kImm: {
388 EXPECT_THAT(m.BytecodeOperandImm(i), 388 EXPECT_THAT(m.BytecodeOperandImm(i),
389 m.IsSignedOperand(offset, operand_size)); 389 m.IsSignedOperand(offset, operand_size));
390 break; 390 break;
391 } 391 }
392 case interpreter::OperandType::kRegList: 392 case interpreter::OperandType::kRegList:
393 case interpreter::OperandType::kReg: 393 case interpreter::OperandType::kReg:
394 case interpreter::OperandType::kRegOut: 394 case interpreter::OperandType::kRegOut:
395 case interpreter::OperandType::kRegOutList:
395 case interpreter::OperandType::kRegOutPair: 396 case interpreter::OperandType::kRegOutPair:
396 case interpreter::OperandType::kRegOutTriple: 397 case interpreter::OperandType::kRegOutTriple:
397 case interpreter::OperandType::kRegPair: 398 case interpreter::OperandType::kRegPair:
398 EXPECT_THAT( 399 EXPECT_THAT(
399 m.BytecodeOperandReg(i), 400 m.BytecodeOperandReg(i),
400 IsChangeInt32ToIntPtr(m.IsSignedOperand(offset, operand_size))); 401 IsChangeInt32ToIntPtr(m.IsSignedOperand(offset, operand_size)));
401 break; 402 break;
402 case interpreter::OperandType::kRuntimeId: 403 case interpreter::OperandType::kRuntimeId:
403 EXPECT_THAT(m.BytecodeOperandRuntimeId(i), 404 EXPECT_THAT(m.BytecodeOperandRuntimeId(i),
404 m.IsUnsignedOperand(offset, operand_size)); 405 m.IsUnsignedOperand(offset, operand_size));
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 EXPECT_THAT( 658 EXPECT_THAT(
658 feedback_vector, 659 feedback_vector,
659 m.IsLoad(MachineType::AnyTagged(), load_vector_cell_matcher, 660 m.IsLoad(MachineType::AnyTagged(), load_vector_cell_matcher,
660 IsIntPtrConstant(Cell::kValueOffset - kHeapObjectTag))); 661 IsIntPtrConstant(Cell::kValueOffset - kHeapObjectTag)));
661 } 662 }
662 } 663 }
663 664
664 } // namespace interpreter 665 } // namespace interpreter
665 } // namespace internal 666 } // namespace internal
666 } // namespace v8 667 } // 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