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

Side by Side Diff: src/compiler/interpreter-assembler.cc

Issue 1670813005: Revert of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 | « src/compiler/bytecode-graph-builder.cc ('k') | src/compiler/js-inlining.cc » ('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 "src/compiler/interpreter-assembler.h" 5 #include "src/compiler/interpreter-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 Int32Constant(Context::kHeaderSize - kHeapObjectTag)); 428 Int32Constant(Context::kHeaderSize - kHeapObjectTag));
429 return raw_assembler_->Store(MachineRepresentation::kTagged, context, offset, 429 return raw_assembler_->Store(MachineRepresentation::kTagged, context, offset,
430 value, kFullWriteBarrier); 430 value, kFullWriteBarrier);
431 } 431 }
432 432
433 433
434 Node* InterpreterAssembler::LoadTypeFeedbackVector() { 434 Node* InterpreterAssembler::LoadTypeFeedbackVector() {
435 Node* function = raw_assembler_->Load( 435 Node* function = raw_assembler_->Load(
436 MachineType::AnyTagged(), RegisterFileRawPointer(), 436 MachineType::AnyTagged(), RegisterFileRawPointer(),
437 IntPtrConstant(InterpreterFrameConstants::kFunctionFromRegisterPointer)); 437 IntPtrConstant(InterpreterFrameConstants::kFunctionFromRegisterPointer));
438 Node* literals = LoadObjectField(function, JSFunction::kLiteralsOffset); 438 Node* shared_info =
439 LoadObjectField(function, JSFunction::kSharedFunctionInfoOffset);
439 Node* vector = 440 Node* vector =
440 LoadObjectField(literals, LiteralsArray::kFeedbackVectorOffset); 441 LoadObjectField(shared_info, SharedFunctionInfo::kFeedbackVectorOffset);
441 return vector; 442 return vector;
442 } 443 }
443 444
444 445
445 Node* InterpreterAssembler::Projection(int index, Node* node) { 446 Node* InterpreterAssembler::Projection(int index, Node* node) {
446 return raw_assembler_->Projection(index, node); 447 return raw_assembler_->Projection(index, node);
447 } 448 }
448 449
449 450
450 Node* InterpreterAssembler::CallConstruct(Node* new_target, Node* constructor, 451 Node* InterpreterAssembler::CallConstruct(Node* new_target, Node* constructor,
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 return raw_assembler_->call_descriptor(); 770 return raw_assembler_->call_descriptor();
770 } 771 }
771 772
772 773
773 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } 774 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); }
774 775
775 776
776 } // namespace compiler 777 } // namespace compiler
777 } // namespace internal 778 } // namespace internal
778 } // namespace v8 779 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/compiler/js-inlining.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698