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

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

Issue 2674593003: [TypeFeedbackVector] Root feedback vectors at function literal site. (Closed)
Patch Set: REBASE+liveedit fix. 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
« no previous file with comments | « test/mjsunit/strong-rooted-literals.js ('k') | tools/gdbinit » ('j') | 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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 TARGET_TEST_F(InterpreterAssemblerTest, LoadTypeFeedbackVector) { 718 TARGET_TEST_F(InterpreterAssemblerTest, LoadTypeFeedbackVector) {
719 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { 719 TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) {
720 InterpreterAssemblerTestState state(this, bytecode); 720 InterpreterAssemblerTestState state(this, bytecode);
721 InterpreterAssemblerForTest m(&state, bytecode); 721 InterpreterAssemblerForTest m(&state, bytecode);
722 Node* feedback_vector = m.LoadTypeFeedbackVector(); 722 Node* feedback_vector = m.LoadTypeFeedbackVector();
723 723
724 Matcher<Node*> load_function_matcher = 724 Matcher<Node*> load_function_matcher =
725 m.IsLoad(MachineType::AnyTagged(), IsLoadParentFramePointer(), 725 m.IsLoad(MachineType::AnyTagged(), IsLoadParentFramePointer(),
726 IsIntPtrConstant(Register::function_closure().ToOperand() 726 IsIntPtrConstant(Register::function_closure().ToOperand()
727 << kPointerSizeLog2)); 727 << kPointerSizeLog2));
728 728 Matcher<Node*> load_vector_cell_matcher = m.IsLoad(
729 EXPECT_THAT(feedback_vector, 729 MachineType::AnyTagged(), load_function_matcher,
730 m.IsLoad(MachineType::AnyTagged(), load_function_matcher, 730 IsIntPtrConstant(JSFunction::kFeedbackVectorOffset - kHeapObjectTag));
731 IsIntPtrConstant(JSFunction::kFeedbackVectorOffset - 731 EXPECT_THAT(
732 kHeapObjectTag))); 732 feedback_vector,
733 m.IsLoad(MachineType::AnyTagged(), load_vector_cell_matcher,
734 IsIntPtrConstant(Cell::kValueOffset - kHeapObjectTag)));
733 } 735 }
734 } 736 }
735 737
736 } // namespace interpreter 738 } // namespace interpreter
737 } // namespace internal 739 } // namespace internal
738 } // namespace v8 740 } // namespace v8
OLDNEW
« no previous file with comments | « test/mjsunit/strong-rooted-literals.js ('k') | tools/gdbinit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698