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

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

Issue 1817033002: [Interpreter] Add dispatch counters for each bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix-abort
Patch Set: Rebase on master. Created 4 years, 9 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Returns the offset from the BytecodeArrayPointer of the current bytecode. 160 // Returns the offset from the BytecodeArrayPointer of the current bytecode.
161 compiler::Node* BytecodeOffset(); 161 compiler::Node* BytecodeOffset();
162 // Returns a raw pointer to first entry in the interpreter dispatch table. 162 // Returns a raw pointer to first entry in the interpreter dispatch table.
163 compiler::Node* DispatchTableRawPointer(); 163 compiler::Node* DispatchTableRawPointer();
164 164
165 // Saves and restores interpreter bytecode offset to the interpreter stack 165 // Saves and restores interpreter bytecode offset to the interpreter stack
166 // frame when performing a call. 166 // frame when performing a call.
167 void CallPrologue() override; 167 void CallPrologue() override;
168 void CallEpilogue() override; 168 void CallEpilogue() override;
169 169
170 void IncrementDispatchCounter();
171
170 // Traces the current bytecode by calling |function_id|. 172 // Traces the current bytecode by calling |function_id|.
171 void TraceBytecode(Runtime::FunctionId function_id); 173 void TraceBytecode(Runtime::FunctionId function_id);
172 174
173 // Updates the bytecode array's interrupt budget by |weight| and calls 175 // Updates the bytecode array's interrupt budget by |weight| and calls
174 // Runtime::kInterrupt if counter reaches zero. 176 // Runtime::kInterrupt if counter reaches zero.
175 void UpdateInterruptBudget(compiler::Node* weight); 177 void UpdateInterruptBudget(compiler::Node* weight);
176 178
177 // Returns the offset of register |index| relative to RegisterFilePointer(). 179 // Returns the offset of register |index| relative to RegisterFilePointer().
178 compiler::Node* RegisterFrameOffset(compiler::Node* index); 180 compiler::Node* RegisterFrameOffset(compiler::Node* index);
179 181
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 compiler::Node* stack_pointer_before_call_; 226 compiler::Node* stack_pointer_before_call_;
225 227
226 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 228 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
227 }; 229 };
228 230
229 } // namespace interpreter 231 } // namespace interpreter
230 } // namespace internal 232 } // namespace internal
231 } // namespace v8 233 } // namespace v8
232 234
233 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ 235 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698