| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 Node* InterpreterAssembler::GetAccumulator() { return accumulator_; } | 74 Node* InterpreterAssembler::GetAccumulator() { return accumulator_; } |
| 75 | 75 |
| 76 | 76 |
| 77 void InterpreterAssembler::SetAccumulator(Node* value) { accumulator_ = value; } | 77 void InterpreterAssembler::SetAccumulator(Node* value) { accumulator_ = value; } |
| 78 | 78 |
| 79 | 79 |
| 80 Node* InterpreterAssembler::GetContext() { return context_; } | 80 Node* InterpreterAssembler::GetContext() { return context_; } |
| 81 | 81 |
| 82 | 82 |
| 83 void InterpreterAssembler::SetContext(Node* value) { context_ = value; } | 83 void InterpreterAssembler::SetContext(Node* value) { |
| 84 StoreRegister(value, interpreter::Register::current_context()); |
| 85 context_ = value; |
| 86 } |
| 84 | 87 |
| 85 | 88 |
| 86 Node* InterpreterAssembler::BytecodeOffset() { return bytecode_offset_; } | 89 Node* InterpreterAssembler::BytecodeOffset() { return bytecode_offset_; } |
| 87 | 90 |
| 88 | 91 |
| 89 Node* InterpreterAssembler::RegisterFileRawPointer() { | 92 Node* InterpreterAssembler::RegisterFileRawPointer() { |
| 90 return raw_assembler_->Parameter(Linkage::kInterpreterRegisterFileParameter); | 93 return raw_assembler_->Parameter(Linkage::kInterpreterRegisterFileParameter); |
| 91 } | 94 } |
| 92 | 95 |
| 93 | 96 |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 return raw_assembler_->call_descriptor(); | 755 return raw_assembler_->call_descriptor(); |
| 753 } | 756 } |
| 754 | 757 |
| 755 | 758 |
| 756 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } | 759 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } |
| 757 | 760 |
| 758 | 761 |
| 759 } // namespace compiler | 762 } // namespace compiler |
| 760 } // namespace internal | 763 } // namespace internal |
| 761 } // namespace v8 | 764 } // namespace v8 |
| OLD | NEW |