| 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 Int32Constant(Context::kHeaderSize - kHeapObjectTag)); | 424 Int32Constant(Context::kHeaderSize - kHeapObjectTag)); |
| 425 return raw_assembler_->Store(MachineRepresentation::kTagged, context, offset, | 425 return raw_assembler_->Store(MachineRepresentation::kTagged, context, offset, |
| 426 value, kFullWriteBarrier); | 426 value, kFullWriteBarrier); |
| 427 } | 427 } |
| 428 | 428 |
| 429 | 429 |
| 430 Node* InterpreterAssembler::LoadTypeFeedbackVector() { | 430 Node* InterpreterAssembler::LoadTypeFeedbackVector() { |
| 431 Node* function = raw_assembler_->Load( | 431 Node* function = raw_assembler_->Load( |
| 432 MachineType::AnyTagged(), RegisterFileRawPointer(), | 432 MachineType::AnyTagged(), RegisterFileRawPointer(), |
| 433 IntPtrConstant(InterpreterFrameConstants::kFunctionFromRegisterPointer)); | 433 IntPtrConstant(InterpreterFrameConstants::kFunctionFromRegisterPointer)); |
| 434 Node* shared_info = | 434 Node* literals = LoadObjectField(function, JSFunction::kLiteralsOffset); |
| 435 LoadObjectField(function, JSFunction::kSharedFunctionInfoOffset); | |
| 436 Node* vector = | 435 Node* vector = |
| 437 LoadObjectField(shared_info, SharedFunctionInfo::kFeedbackVectorOffset); | 436 LoadObjectField(literals, LiteralsArray::kFeedbackVectorOffset); |
| 438 return vector; | 437 return vector; |
| 439 } | 438 } |
| 440 | 439 |
| 441 | 440 |
| 442 Node* InterpreterAssembler::Projection(int index, Node* node) { | 441 Node* InterpreterAssembler::Projection(int index, Node* node) { |
| 443 return raw_assembler_->Projection(index, node); | 442 return raw_assembler_->Projection(index, node); |
| 444 } | 443 } |
| 445 | 444 |
| 446 | 445 |
| 447 Node* InterpreterAssembler::CallConstruct(Node* new_target, Node* constructor, | 446 Node* InterpreterAssembler::CallConstruct(Node* new_target, Node* constructor, |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 return raw_assembler_->call_descriptor(); | 741 return raw_assembler_->call_descriptor(); |
| 743 } | 742 } |
| 744 | 743 |
| 745 | 744 |
| 746 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } | 745 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } |
| 747 | 746 |
| 748 | 747 |
| 749 } // namespace compiler | 748 } // namespace compiler |
| 750 } // namespace internal | 749 } // namespace internal |
| 751 } // namespace v8 | 750 } // namespace v8 |
| OLD | NEW |