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

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

Issue 2470253003: [ignition] Reuse code-stub-assembler's context load operations. (Closed)
Patch Set: Created 4 years, 1 month 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/builtins/builtins.h" 9 #include "src/builtins/builtins.h"
10 #include "src/code-stub-assembler.h" 10 #include "src/code-stub-assembler.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // interpreter register file. 87 // interpreter register file.
88 compiler::Node* RegisterLocation(compiler::Node* reg_index); 88 compiler::Node* RegisterLocation(compiler::Node* reg_index);
89 89
90 // Load constant at |index| in the constant pool. 90 // Load constant at |index| in the constant pool.
91 compiler::Node* LoadConstantPoolEntry(compiler::Node* index); 91 compiler::Node* LoadConstantPoolEntry(compiler::Node* index);
92 92
93 // Load and untag constant at |index| in the constant pool. 93 // Load and untag constant at |index| in the constant pool.
94 compiler::Node* LoadAndUntagConstantPoolEntry(compiler::Node* index); 94 compiler::Node* LoadAndUntagConstantPoolEntry(compiler::Node* index);
95 95
96 // Load |slot_index| from |context|. 96 // Load |slot_index| from |context|.
97 compiler::Node* LoadContextSlot(compiler::Node* context, int slot_index);
98 compiler::Node* LoadContextSlot(compiler::Node* context, 97 compiler::Node* LoadContextSlot(compiler::Node* context,
99 compiler::Node* slot_index); 98 compiler::Node* slot_index);
100 // Stores |value| into |slot_index| of |context|. 99 // Stores |value| into |slot_index| of |context|.
101 compiler::Node* StoreContextSlot(compiler::Node* context, 100 compiler::Node* StoreContextSlot(compiler::Node* context,
102 compiler::Node* slot_index, 101 compiler::Node* slot_index,
103 compiler::Node* value); 102 compiler::Node* value);
rmcilroy 2016/11/04 11:29:56 Optional - Could we move all of these to the code-
neis 2016/11/04 13:00:33 Fine with me, I can do that in a followup.
104 103
105 // Load the TypeFeedbackVector for the current function. 104 // Load the TypeFeedbackVector for the current function.
106 compiler::Node* LoadTypeFeedbackVector(); 105 compiler::Node* LoadTypeFeedbackVector();
107 106
108 // Increment the call count for a CALL_IC or construct call. 107 // Increment the call count for a CALL_IC or construct call.
109 // The call count is located at feedback_vector[slot_id + 1]. 108 // The call count is located at feedback_vector[slot_id + 1].
110 compiler::Node* IncrementCallCount(compiler::Node* type_feedback_vector, 109 compiler::Node* IncrementCallCount(compiler::Node* type_feedback_vector,
111 compiler::Node* slot_id); 110 compiler::Node* slot_id);
112 111
113 // Call JSFunction or Callable |function| with |arg_count| 112 // Call JSFunction or Callable |function| with |arg_count|
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 compiler::Node* stack_pointer_before_call_; 308 compiler::Node* stack_pointer_before_call_;
310 309
311 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 310 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
312 }; 311 };
313 312
314 } // namespace interpreter 313 } // namespace interpreter
315 } // namespace internal 314 } // namespace internal
316 } // namespace v8 315 } // namespace v8
317 316
318 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ 317 #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