OLD | NEW |
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 Loading... |
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* shared_info = | 447 Node* literals = LoadObjectField(function, JSFunction::kLiteralsOffset); |
448 LoadObjectField(function, JSFunction::kSharedFunctionInfoOffset); | |
449 Node* vector = | 448 Node* vector = |
450 LoadObjectField(shared_info, SharedFunctionInfo::kFeedbackVectorOffset); | 449 LoadObjectField(literals, LiteralsArray::kFeedbackVectorOffset); |
451 return vector; | 450 return vector; |
452 } | 451 } |
453 | 452 |
454 | 453 |
455 Node* InterpreterAssembler::Projection(int index, Node* node) { | 454 Node* InterpreterAssembler::Projection(int index, Node* node) { |
456 return raw_assembler_->Projection(index, node); | 455 return raw_assembler_->Projection(index, node); |
457 } | 456 } |
458 | 457 |
459 | 458 |
460 Node* InterpreterAssembler::CallConstruct(Node* new_target, Node* constructor, | 459 Node* InterpreterAssembler::CallConstruct(Node* new_target, Node* constructor, |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 return raw_assembler_->call_descriptor(); | 754 return raw_assembler_->call_descriptor(); |
756 } | 755 } |
757 | 756 |
758 | 757 |
759 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } | 758 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } |
760 | 759 |
761 | 760 |
762 } // namespace compiler | 761 } // namespace compiler |
763 } // namespace internal | 762 } // namespace internal |
764 } // namespace v8 | 763 } // namespace v8 |
OLD | NEW |