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

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

Issue 2172233002: [interpreter] Add explicit OSR polling bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_interpreter-osr-1
Patch Set: Rebased. Created 4 years, 4 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/builtins/builtins.h" 9 #include "src/builtins/builtins.h"
10 #include "src/code-stub-assembler.h" 10 #include "src/code-stub-assembler.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // word values |lhs| and |rhs| are not equal. 138 // word values |lhs| and |rhs| are not equal.
139 void JumpIfWordNotEqual(compiler::Node* lhs, compiler::Node* rhs, 139 void JumpIfWordNotEqual(compiler::Node* lhs, compiler::Node* rhs,
140 compiler::Node* jump_offset); 140 compiler::Node* jump_offset);
141 141
142 // Returns true if the stack guard check triggers an interrupt. 142 // Returns true if the stack guard check triggers an interrupt.
143 compiler::Node* StackCheckTriggeredInterrupt(); 143 compiler::Node* StackCheckTriggeredInterrupt();
144 144
145 // Updates the profiler interrupt budget for a return. 145 // Updates the profiler interrupt budget for a return.
146 void UpdateInterruptBudgetOnReturn(); 146 void UpdateInterruptBudgetOnReturn();
147 147
148 // Returns the OSR nesting level from the bytecode header.
149 compiler::Node* LoadOSRNestingLevel();
150
148 // Dispatch to the bytecode. 151 // Dispatch to the bytecode.
149 compiler::Node* Dispatch(); 152 compiler::Node* Dispatch();
150 153
151 // Dispatch to bytecode handler. 154 // Dispatch to bytecode handler.
152 compiler::Node* DispatchToBytecodeHandler(compiler::Node* handler) { 155 compiler::Node* DispatchToBytecodeHandler(compiler::Node* handler) {
153 return DispatchToBytecodeHandler(handler, BytecodeOffset()); 156 return DispatchToBytecodeHandler(handler, BytecodeOffset());
154 } 157 }
155 158
156 // Dispatch bytecode as wide operand variant. 159 // Dispatch bytecode as wide operand variant.
157 void DispatchWide(OperandScale operand_scale); 160 void DispatchWide(OperandScale operand_scale);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 compiler::Node* stack_pointer_before_call_; 280 compiler::Node* stack_pointer_before_call_;
278 281
279 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 282 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
280 }; 283 };
281 284
282 } // namespace interpreter 285 } // namespace interpreter
283 } // namespace internal 286 } // namespace internal
284 } // namespace v8 287 } // namespace v8
285 288
286 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ 289 #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