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

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

Issue 1923253002: [generators] Create the fixed array holding the registers only once. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments Created 4 years, 7 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/interpreter.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Number of registers. 53 // Number of registers.
54 compiler::Node* RegisterCount(); 54 compiler::Node* RegisterCount();
55 55
56 // Backup/restore register file to/from a fixed array. 56 // Backup/restore register file to/from a fixed array of the correct length.
57 compiler::Node* ExportRegisterFile(); 57 compiler::Node* ExportRegisterFile(compiler::Node* array);
58 compiler::Node* ImportRegisterFile(compiler::Node* array); 58 compiler::Node* ImportRegisterFile(compiler::Node* array);
59 59
60 // Loads from and stores to the interpreter register file. 60 // Loads from and stores to the interpreter register file.
61 compiler::Node* LoadRegister(Register reg); 61 compiler::Node* LoadRegister(Register reg);
62 compiler::Node* LoadRegister(compiler::Node* reg_index); 62 compiler::Node* LoadRegister(compiler::Node* reg_index);
63 compiler::Node* StoreRegister(compiler::Node* value, Register reg); 63 compiler::Node* StoreRegister(compiler::Node* value, Register reg);
64 compiler::Node* StoreRegister(compiler::Node* value, 64 compiler::Node* StoreRegister(compiler::Node* value,
65 compiler::Node* reg_index); 65 compiler::Node* reg_index);
66 66
67 // Returns the next consecutive register. 67 // Returns the next consecutive register.
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 compiler::Node* stack_pointer_before_call_; 239 compiler::Node* stack_pointer_before_call_;
240 240
241 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 241 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
242 }; 242 };
243 243
244 } // namespace interpreter 244 } // namespace interpreter
245 } // namespace internal 245 } // namespace internal
246 } // namespace v8 246 } // namespace v8
247 247
248 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ 248 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/interpreter/interpreter-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698