Chromium Code Reviews| Index: src/interpreter/interpreter-assembler.h |
| diff --git a/src/interpreter/interpreter-assembler.h b/src/interpreter/interpreter-assembler.h |
| index 03a6a97c4ed74bd895fab53eaed174d451e878e4..a2f7eb8da82d786762a565649361ffc3ba3f62eb 100644 |
| --- a/src/interpreter/interpreter-assembler.h |
| +++ b/src/interpreter/interpreter-assembler.h |
| @@ -50,6 +50,13 @@ class InterpreterAssembler : public CodeStubAssembler { |
| compiler::Node* GetContext(); |
| void SetContext(compiler::Node* value); |
| + // Number of registers. |
| + compiler::Node* RegisterCount(); |
| + |
| + // Backup/restore register file to/from a fixed array. |
| + compiler::Node* ExportRegisterFile(); |
| + compiler::Node* ImportRegisterFile(compiler::Node* array); |
| + |
| // Loads from and stores to the interpreter register file. |
| compiler::Node* LoadRegister(Register reg); |
| compiler::Node* LoadRegister(compiler::Node* reg_index); |
| @@ -69,6 +76,11 @@ class InterpreterAssembler : public CodeStubAssembler { |
| // Load a field from an object on the heap. |
| compiler::Node* LoadObjectField(compiler::Node* object, int offset); |
| + compiler::Node* LoadObjectFieldInt32(compiler::Node* object, int offset); |
| + |
| + // Store into a field of an object on the heap. |
| + compiler::Node* StoreObjectField(compiler::Node* object, int offset, |
| + compiler::Node* value); |
|
rmcilroy
2016/04/21 10:21:32
Should these live in CodeStubAssembler instead (th
neis
2016/04/21 11:30:15
Agreed, removed them from here.
|
| // Load |slot_index| from |context|. |
| compiler::Node* LoadContextSlot(compiler::Node* context, int slot_index); |