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

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

Issue 2655853010: [TypeFeedbackVector] Combine the literals array and the feedback vector. (Closed)
Patch Set: gyp file Created 3 years, 10 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
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 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 TARGET_TEST_F(InterpreterAssemblerTest, LoadTypeFeedbackVector) { 709 TARGET_TEST_F(InterpreterAssemblerTest, LoadTypeFeedbackVector) {
710 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { 710 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) {
711 InterpreterAssemblerTestState state(this, bytecode); 711 InterpreterAssemblerTestState state(this, bytecode);
712 InterpreterAssemblerForTest m(&state, bytecode); 712 InterpreterAssemblerForTest m(&state, bytecode);
713 Node* feedback_vector = m.LoadTypeFeedbackVector(); 713 Node* feedback_vector = m.LoadTypeFeedbackVector();
714 714
715 Matcher<Node*> load_function_matcher = 715 Matcher<Node*> load_function_matcher =
716 m.IsLoad(MachineType::AnyTagged(), IsLoadParentFramePointer(), 716 m.IsLoad(MachineType::AnyTagged(), IsLoadParentFramePointer(),
717 IsIntPtrConstant(Register::function_closure().ToOperand() 717 IsIntPtrConstant(Register::function_closure().ToOperand()
718 << kPointerSizeLog2)); 718 << kPointerSizeLog2));
719 Matcher<Node*> load_literals_matcher = m.IsLoad(
720 MachineType::AnyTagged(), load_function_matcher,
721 IsIntPtrConstant(JSFunction::kLiteralsOffset - kHeapObjectTag));
722 719
723 EXPECT_THAT(feedback_vector, 720 EXPECT_THAT(feedback_vector,
724 m.IsLoad(MachineType::AnyTagged(), load_literals_matcher, 721 m.IsLoad(MachineType::AnyTagged(), load_function_matcher,
725 IsIntPtrConstant(LiteralsArray::kFeedbackVectorOffset - 722 IsIntPtrConstant(JSFunction::kFeedbackVectorOffset -
726 kHeapObjectTag))); 723 kHeapObjectTag)));
727 } 724 }
728 } 725 }
729 726
730 } // namespace interpreter 727 } // namespace interpreter
731 } // namespace internal 728 } // namespace internal
732 } // namespace v8 729 } // namespace v8
OLDNEW
« src/type-feedback-vector.cc ('K') | « test/unittests/compiler/js-create-lowering-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698