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

Side by Side Diff: src/interpreter/bytecode-array-builder.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/compiler/code-assembler.cc ('k') | src/interpreter/bytecode-array-builder.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_BYTECODE_ARRAY_BUILDER_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/interpreter/bytecode-array-writer.h" 9 #include "src/interpreter/bytecode-array-writer.h"
10 #include "src/interpreter/bytecode-register-allocator.h" 10 #include "src/interpreter/bytecode-register-allocator.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 BytecodeArrayBuilder& Jump(BytecodeLabel* label); 227 BytecodeArrayBuilder& Jump(BytecodeLabel* label);
228 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label); 228 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label);
229 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label); 229 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label);
230 BytecodeArrayBuilder& JumpIfNotHole(BytecodeLabel* label); 230 BytecodeArrayBuilder& JumpIfNotHole(BytecodeLabel* label);
231 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label); 231 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label);
232 BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label); 232 BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label);
233 233
234 BytecodeArrayBuilder& StackCheck(int position); 234 BytecodeArrayBuilder& StackCheck(int position);
235 235
236 BytecodeArrayBuilder& OsrPoll(int loop_depth);
237
236 BytecodeArrayBuilder& Throw(); 238 BytecodeArrayBuilder& Throw();
237 BytecodeArrayBuilder& ReThrow(); 239 BytecodeArrayBuilder& ReThrow();
238 BytecodeArrayBuilder& Return(); 240 BytecodeArrayBuilder& Return();
239 241
240 // Debugger. 242 // Debugger.
241 BytecodeArrayBuilder& Debugger(); 243 BytecodeArrayBuilder& Debugger();
242 244
243 // Complex flow control. 245 // Complex flow control.
244 BytecodeArrayBuilder& ForInPrepare(Register cache_info_triple); 246 BytecodeArrayBuilder& ForInPrepare(Register cache_info_triple);
245 BytecodeArrayBuilder& ForInDone(Register index, Register cache_length); 247 BytecodeArrayBuilder& ForInDone(Register index, Register cache_length);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 BytecodeSourceInfo latest_source_info_; 382 BytecodeSourceInfo latest_source_info_;
381 383
382 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 384 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
383 }; 385 };
384 386
385 } // namespace interpreter 387 } // namespace interpreter
386 } // namespace internal 388 } // namespace internal
387 } // namespace v8 389 } // namespace v8
388 390
389 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 391 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.cc ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698