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

Unified Diff: test/unittests/interpreter/interpreter-assembler-unittest.cc

Issue 2473003004: [compiler] Generalize context load/store operations in code-stub-assembler. (Closed)
Patch Set: Remove tests. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/interpreter/interpreter-assembler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/interpreter/interpreter-assembler-unittest.cc
diff --git a/test/unittests/interpreter/interpreter-assembler-unittest.cc b/test/unittests/interpreter/interpreter-assembler-unittest.cc
index d0d145f6d5eef825122341ee16b5b54cb830743f..b8eb64c8844261c26f72f6962731f9e3ed069aa0 100644
--- a/test/unittests/interpreter/interpreter-assembler-unittest.cc
+++ b/test/unittests/interpreter/interpreter-assembler-unittest.cc
@@ -606,39 +606,6 @@ TARGET_TEST_F(InterpreterAssemblerTest, LoadObjectField) {
}
}
-TARGET_TEST_F(InterpreterAssemblerTest, LoadContextSlot) {
- TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) {
- InterpreterAssemblerForTest m(this, bytecode);
- Node* context = m.IntPtrConstant(1);
- Node* slot_index = m.IntPtrConstant(22);
- Node* load_context_slot = m.LoadContextSlot(context, slot_index);
-
- Matcher<Node*> offset =
- IsIntPtrAdd(IsWordShl(slot_index, IsIntPtrConstant(kPointerSizeLog2)),
- IsIntPtrConstant(Context::kHeaderSize - kHeapObjectTag));
- EXPECT_THAT(load_context_slot,
- m.IsLoad(MachineType::AnyTagged(), context, offset));
- }
-}
-
-TARGET_TEST_F(InterpreterAssemblerTest, StoreContextSlot) {
- TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) {
- InterpreterAssemblerForTest m(this, bytecode);
- Node* context = m.IntPtrConstant(1);
- Node* slot_index = m.IntPtrConstant(22);
- Node* value = m.SmiConstant(Smi::FromInt(100));
- Node* store_context_slot = m.StoreContextSlot(context, slot_index, value);
-
- Matcher<Node*> offset =
- IsIntPtrAdd(IsWordShl(slot_index, IsIntPtrConstant(kPointerSizeLog2)),
- IsIntPtrConstant(Context::kHeaderSize - kHeapObjectTag));
- EXPECT_THAT(store_context_slot,
- m.IsStore(StoreRepresentation(MachineRepresentation::kTagged,
- kFullWriteBarrier),
- context, offset, value));
- }
-}
-
TARGET_TEST_F(InterpreterAssemblerTest, CallRuntime2) {
TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) {
InterpreterAssemblerForTest m(this, bytecode);
« no previous file with comments | « src/interpreter/interpreter-assembler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698