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

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

Issue 1563213002: Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Exclude an ignition test. Created 4 years, 11 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/mjsunit/mjsunit.status ('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/compiler/interpreter-assembler-unittest.h" 5 #include "test/unittests/compiler/interpreter-assembler-unittest.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/compiler/graph.h" 8 #include "src/compiler/graph.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/interface-descriptors.h" 10 #include "src/interface-descriptors.h"
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 TARGET_TEST_F(InterpreterAssemblerTest, LoadTypeFeedbackVector) { 676 TARGET_TEST_F(InterpreterAssemblerTest, LoadTypeFeedbackVector) {
677 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { 677 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) {
678 InterpreterAssemblerForTest m(this, bytecode); 678 InterpreterAssemblerForTest m(this, bytecode);
679 Node* feedback_vector = m.LoadTypeFeedbackVector(); 679 Node* feedback_vector = m.LoadTypeFeedbackVector();
680 680
681 Matcher<Node*> load_function_matcher = 681 Matcher<Node*> load_function_matcher =
682 m.IsLoad(MachineType::AnyTagged(), 682 m.IsLoad(MachineType::AnyTagged(),
683 IsParameter(Linkage::kInterpreterRegisterFileParameter), 683 IsParameter(Linkage::kInterpreterRegisterFileParameter),
684 IsIntPtrConstant( 684 IsIntPtrConstant(
685 InterpreterFrameConstants::kFunctionFromRegisterPointer)); 685 InterpreterFrameConstants::kFunctionFromRegisterPointer));
686 Matcher<Node*> load_shared_function_info_matcher = 686 Matcher<Node*> load_literals_matcher = m.IsLoad(
687 m.IsLoad(MachineType::AnyTagged(), load_function_matcher, 687 MachineType::AnyTagged(), load_function_matcher,
688 IsIntPtrConstant(JSFunction::kSharedFunctionInfoOffset - 688 IsIntPtrConstant(JSFunction::kLiteralsOffset - kHeapObjectTag));
689 kHeapObjectTag));
690 689
691 EXPECT_THAT( 690 EXPECT_THAT(feedback_vector,
692 feedback_vector, 691 m.IsLoad(MachineType::AnyTagged(), load_literals_matcher,
693 m.IsLoad(MachineType::AnyTagged(), load_shared_function_info_matcher, 692 IsIntPtrConstant(LiteralsArray::kFeedbackVectorOffset -
694 IsIntPtrConstant(SharedFunctionInfo::kFeedbackVectorOffset - 693 kHeapObjectTag)));
695 kHeapObjectTag)));
696 } 694 }
697 } 695 }
698 696
699 } // namespace compiler 697 } // namespace compiler
700 } // namespace internal 698 } // namespace internal
701 } // namespace v8 699 } // namespace v8
OLDNEW
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698