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* 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 Loading... |
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 |
OLD | NEW |