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

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

Issue 1643533003: 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 Int32Constant(Context::kHeaderSize - kHeapObjectTag)); 437 Int32Constant(Context::kHeaderSize - kHeapObjectTag));
438 return raw_assembler_->Store(MachineRepresentation::kTagged, context, offset, 438 return raw_assembler_->Store(MachineRepresentation::kTagged, context, offset,
439 value, kFullWriteBarrier); 439 value, kFullWriteBarrier);
440 } 440 }
441 441
442 442
443 Node* InterpreterAssembler::LoadTypeFeedbackVector() { 443 Node* InterpreterAssembler::LoadTypeFeedbackVector() {
444 Node* function = raw_assembler_->Load( 444 Node* function = raw_assembler_->Load(
445 MachineType::AnyTagged(), RegisterFileRawPointer(), 445 MachineType::AnyTagged(), RegisterFileRawPointer(),
446 IntPtrConstant(InterpreterFrameConstants::kFunctionFromRegisterPointer)); 446 IntPtrConstant(InterpreterFrameConstants::kFunctionFromRegisterPointer));
447 Node* literals = LoadObjectField(function, JSFunction::kLiteralsOffset); 447 Node* shared_info =
448 LoadObjectField(function, JSFunction::kSharedFunctionInfoOffset);
448 Node* vector = 449 Node* vector =
449 LoadObjectField(literals, LiteralsArray::kFeedbackVectorOffset); 450 LoadObjectField(shared_info, SharedFunctionInfo::kFeedbackVectorOffset);
450 return vector; 451 return vector;
451 } 452 }
452 453
453 454
454 Node* InterpreterAssembler::Projection(int index, Node* node) { 455 Node* InterpreterAssembler::Projection(int index, Node* node) {
455 return raw_assembler_->Projection(index, node); 456 return raw_assembler_->Projection(index, node);
456 } 457 }
457 458
458 459
459 Node* InterpreterAssembler::CallConstruct(Node* new_target, Node* constructor, 460 Node* InterpreterAssembler::CallConstruct(Node* new_target, Node* constructor,
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 return raw_assembler_->call_descriptor(); 755 return raw_assembler_->call_descriptor();
755 } 756 }
756 757
757 758
758 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } 759 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); }
759 760
760 761
761 } // namespace compiler 762 } // namespace compiler
762 } // namespace internal 763 } // namespace internal
763 } // namespace v8 764 } // 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