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

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

Issue 2336643002: [Interpreter] Move context chain search loop to handler (Closed)
Patch Set: Address comments Created 4 years, 3 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
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/builtins/builtins.h" 9 #include "src/builtins/builtins.h"
10 #include "src/code-stub-assembler.h" 10 #include "src/code-stub-assembler.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 compiler::Node* BytecodeOperandIntrinsicId(int operand_index); 46 compiler::Node* BytecodeOperandIntrinsicId(int operand_index);
47 47
48 // Accumulator. 48 // Accumulator.
49 compiler::Node* GetAccumulator(); 49 compiler::Node* GetAccumulator();
50 void SetAccumulator(compiler::Node* value); 50 void SetAccumulator(compiler::Node* value);
51 51
52 // Context. 52 // Context.
53 compiler::Node* GetContext(); 53 compiler::Node* GetContext();
54 void SetContext(compiler::Node* value); 54 void SetContext(compiler::Node* value);
55 55
56 // Context at |depth| from the given |root_context|
57 compiler::Node* GetContextAtDepth(compiler::Node* root_context,
Michael Starzinger 2016/09/13 09:53:08 nit: Likewise about "root_context" vs "context" he
Leszek Swirski 2016/09/13 10:17:51 Done.
58 compiler::Node* depth);
59
56 // Number of registers. 60 // Number of registers.
57 compiler::Node* RegisterCount(); 61 compiler::Node* RegisterCount();
58 62
59 // Backup/restore register file to/from a fixed array of the correct length. 63 // Backup/restore register file to/from a fixed array of the correct length.
60 compiler::Node* ExportRegisterFile(compiler::Node* array); 64 compiler::Node* ExportRegisterFile(compiler::Node* array);
61 compiler::Node* ImportRegisterFile(compiler::Node* array); 65 compiler::Node* ImportRegisterFile(compiler::Node* array);
62 66
63 // Loads from and stores to the interpreter register file. 67 // Loads from and stores to the interpreter register file.
64 compiler::Node* LoadRegister(Register reg); 68 compiler::Node* LoadRegister(Register reg);
65 compiler::Node* LoadRegister(compiler::Node* reg_index); 69 compiler::Node* LoadRegister(compiler::Node* reg_index);
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 compiler::Node* stack_pointer_before_call_; 295 compiler::Node* stack_pointer_before_call_;
292 296
293 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 297 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
294 }; 298 };
295 299
296 } // namespace interpreter 300 } // namespace interpreter
297 } // namespace internal 301 } // namespace internal
298 } // namespace v8 302 } // namespace v8
299 303
300 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ 304 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698