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

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

Issue 1707693003: [Interpreter] Enable runtime profiler support for Ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update on forward edges too Created 4 years, 10 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/base/smart-pointers.h" 9 #include "src/base/smart-pointers.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 compiler::Node* DispatchTableRawPointer(); 148 compiler::Node* DispatchTableRawPointer();
149 149
150 // Saves and restores interpreter bytecode offset to the interpreter stack 150 // Saves and restores interpreter bytecode offset to the interpreter stack
151 // frame when performing a call. 151 // frame when performing a call.
152 void CallPrologue() override; 152 void CallPrologue() override;
153 void CallEpilogue() override; 153 void CallEpilogue() override;
154 154
155 // Traces the current bytecode by calling |function_id|. 155 // Traces the current bytecode by calling |function_id|.
156 void TraceBytecode(Runtime::FunctionId function_id); 156 void TraceBytecode(Runtime::FunctionId function_id);
157 157
158 // Updates the profiling counter by |weight| and calls InteruptCheck if
Jakob Kummerow 2016/02/17 17:45:36 nit: s/Interupt/Interrupt/
rmcilroy 2016/02/18 16:05:56 Done.
159 // counter reaches zero.
160 void UpdateProfilingCount(compiler::Node* weight);
161
158 // Returns the offset of register |index| relative to RegisterFilePointer(). 162 // Returns the offset of register |index| relative to RegisterFilePointer().
159 compiler::Node* RegisterFrameOffset(compiler::Node* index); 163 compiler::Node* RegisterFrameOffset(compiler::Node* index);
160 164
161 compiler::Node* BytecodeOperand(int operand_index); 165 compiler::Node* BytecodeOperand(int operand_index);
162 compiler::Node* BytecodeOperandSignExtended(int operand_index); 166 compiler::Node* BytecodeOperandSignExtended(int operand_index);
163 compiler::Node* BytecodeOperandShort(int operand_index); 167 compiler::Node* BytecodeOperandShort(int operand_index);
164 compiler::Node* BytecodeOperandShortSignExtended(int operand_index); 168 compiler::Node* BytecodeOperandShortSignExtended(int operand_index);
165 169
166 // Returns BytecodeOffset() advanced by delta bytecodes. Note: this does not 170 // Returns BytecodeOffset() advanced by delta bytecodes. Note: this does not
167 // update BytecodeOffset() itself. 171 // update BytecodeOffset() itself.
(...skipping 16 matching lines...) Expand all
184 compiler::Node* stack_pointer_before_call_; 188 compiler::Node* stack_pointer_before_call_;
185 189
186 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 190 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
187 }; 191 };
188 192
189 } // namespace interpreter 193 } // namespace interpreter
190 } // namespace internal 194 } // namespace internal
191 } // namespace v8 195 } // namespace v8
192 196
193 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ 197 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698