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

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: Ports. 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
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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 TARGET_TEST_F(InterpreterAssemblerTest, LoadTypeFeedbackVector) { 662 TARGET_TEST_F(InterpreterAssemblerTest, LoadTypeFeedbackVector) {
663 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { 663 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) {
664 InterpreterAssemblerForTest m(this, bytecode); 664 InterpreterAssemblerForTest m(this, bytecode);
665 Node* feedback_vector = m.LoadTypeFeedbackVector(); 665 Node* feedback_vector = m.LoadTypeFeedbackVector();
666 666
667 Matcher<Node*> load_function_matcher = 667 Matcher<Node*> load_function_matcher =
668 m.IsLoad(MachineType::AnyTagged(), 668 m.IsLoad(MachineType::AnyTagged(),
669 IsParameter(Linkage::kInterpreterRegisterFileParameter), 669 IsParameter(Linkage::kInterpreterRegisterFileParameter),
670 IsIntPtrConstant( 670 IsIntPtrConstant(
671 InterpreterFrameConstants::kFunctionFromRegisterPointer)); 671 InterpreterFrameConstants::kFunctionFromRegisterPointer));
672 Matcher<Node*> load_shared_function_info_matcher = 672 Matcher<Node*> load_literals_matcher = m.IsLoad(
673 m.IsLoad(MachineType::AnyTagged(), load_function_matcher, 673 MachineType::AnyTagged(), load_function_matcher,
674 IsIntPtrConstant(JSFunction::kSharedFunctionInfoOffset - 674 IsIntPtrConstant(JSFunction::kLiteralsOffset - kHeapObjectTag));
675 kHeapObjectTag));
676 675
677 EXPECT_THAT( 676 EXPECT_THAT(feedback_vector,
678 feedback_vector, 677 m.IsLoad(MachineType::AnyTagged(), load_literals_matcher,
679 m.IsLoad(MachineType::AnyTagged(), load_shared_function_info_matcher, 678 IsIntPtrConstant(LiteralsArray::kFeedbackVectorOffset -
680 IsIntPtrConstant(SharedFunctionInfo::kFeedbackVectorOffset - 679 kHeapObjectTag)));
681 kHeapObjectTag)));
682 } 680 }
683 } 681 }
684 682
685 } // namespace compiler 683 } // namespace compiler
686 } // namespace internal 684 } // namespace internal
687 } // namespace v8 685 } // namespace v8
OLDNEW
« src/crankshaft/hydrogen.cc ('K') | « test/cctest/test-feedback-vector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698