Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: src/interpreter/interpreter-assembler.h

Issue 1894063002: [Interpreter] Remove register file register and replace with LoadParentFramePointer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix gcc Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/interpreter/bytecodes.cc ('k') | src/interpreter/interpreter-assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ 5 #ifndef V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_
6 #define V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ 6 #define V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/smart-pointers.h" 9 #include "src/base/smart-pointers.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Accumulator. 45 // Accumulator.
46 compiler::Node* GetAccumulator(); 46 compiler::Node* GetAccumulator();
47 void SetAccumulator(compiler::Node* value); 47 void SetAccumulator(compiler::Node* value);
48 48
49 // Context. 49 // Context.
50 compiler::Node* GetContext(); 50 compiler::Node* GetContext();
51 void SetContext(compiler::Node* value); 51 void SetContext(compiler::Node* value);
52 52
53 // Loads from and stores to the interpreter register file. 53 // Loads from and stores to the interpreter register file.
54 compiler::Node* LoadRegister(int offset);
55 compiler::Node* LoadRegister(Register reg); 54 compiler::Node* LoadRegister(Register reg);
56 compiler::Node* LoadRegister(compiler::Node* reg_index); 55 compiler::Node* LoadRegister(compiler::Node* reg_index);
57 compiler::Node* StoreRegister(compiler::Node* value, int offset);
58 compiler::Node* StoreRegister(compiler::Node* value, Register reg); 56 compiler::Node* StoreRegister(compiler::Node* value, Register reg);
59 compiler::Node* StoreRegister(compiler::Node* value, 57 compiler::Node* StoreRegister(compiler::Node* value,
60 compiler::Node* reg_index); 58 compiler::Node* reg_index);
61 59
62 // Returns the next consecutive register. 60 // Returns the next consecutive register.
63 compiler::Node* NextRegister(compiler::Node* reg_index); 61 compiler::Node* NextRegister(compiler::Node* reg_index);
64 62
65 // Returns the location in memory of the register |reg_index| in the 63 // Returns the location in memory of the register |reg_index| in the
66 // interpreter register file. 64 // interpreter register file.
67 compiler::Node* RegisterLocation(compiler::Node* reg_index); 65 compiler::Node* RegisterLocation(compiler::Node* reg_index);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void DispatchWide(OperandScale operand_scale); 143 void DispatchWide(OperandScale operand_scale);
146 144
147 // Abort with the given bailout reason. 145 // Abort with the given bailout reason.
148 void Abort(BailoutReason bailout_reason); 146 void Abort(BailoutReason bailout_reason);
149 147
150 protected: 148 protected:
151 Bytecode bytecode() const { return bytecode_; } 149 Bytecode bytecode() const { return bytecode_; }
152 static bool TargetSupportsUnalignedAccess(); 150 static bool TargetSupportsUnalignedAccess();
153 151
154 private: 152 private:
155 // Returns a raw pointer to start of the register file on the stack.
156 compiler::Node* RegisterFileRawPointer();
157 // Returns a tagged pointer to the current function's BytecodeArray object. 153 // Returns a tagged pointer to the current function's BytecodeArray object.
158 compiler::Node* BytecodeArrayTaggedPointer(); 154 compiler::Node* BytecodeArrayTaggedPointer();
159 // Returns the offset from the BytecodeArrayPointer of the current bytecode. 155 // Returns the offset from the BytecodeArrayPointer of the current bytecode.
160 compiler::Node* BytecodeOffset(); 156 compiler::Node* BytecodeOffset();
161 // Returns a raw pointer to first entry in the interpreter dispatch table. 157 // Returns a raw pointer to first entry in the interpreter dispatch table.
162 compiler::Node* DispatchTableRawPointer(); 158 compiler::Node* DispatchTableRawPointer();
163 159
164 // Returns the accumulator value without checking whether bytecode 160 // Returns the accumulator value without checking whether bytecode
165 // uses it. This is intended to be used only in dispatch and in 161 // uses it. This is intended to be used only in dispatch and in
166 // tracing as these need to bypass accumulator use validity checks. 162 // tracing as these need to bypass accumulator use validity checks.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 compiler::Node* stack_pointer_before_call_; 235 compiler::Node* stack_pointer_before_call_;
240 236
241 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 237 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
242 }; 238 };
243 239
244 } // namespace interpreter 240 } // namespace interpreter
245 } // namespace internal 241 } // namespace internal
246 } // namespace v8 242 } // namespace v8
247 243
248 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ 244 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecodes.cc ('k') | src/interpreter/interpreter-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698