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/bytecode-array-builder.cc

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/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.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 #include "src/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/globals.h" 8 #include "src/globals.h"
9 #include "src/interpreter/bytecode-array-writer.h" 9 #include "src/interpreter/bytecode-array-writer.h"
10 #include "src/interpreter/bytecode-dead-code-optimizer.h" 10 #include "src/interpreter/bytecode-dead-code-optimizer.h"
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // A Nop could be inserted for empty statements, but since no code 463 // A Nop could be inserted for empty statements, but since no code
464 // is associated with these positions, instead we force the stack 464 // is associated with these positions, instead we force the stack
465 // check's expression position which eliminates the empty 465 // check's expression position which eliminates the empty
466 // statement's position. 466 // statement's position.
467 latest_source_info_.ForceExpressionPosition(position); 467 latest_source_info_.ForceExpressionPosition(position);
468 } 468 }
469 Output(Bytecode::kStackCheck); 469 Output(Bytecode::kStackCheck);
470 return *this; 470 return *this;
471 } 471 }
472 472
473 BytecodeArrayBuilder& BytecodeArrayBuilder::OsrPoll(int loop_depth) {
474 Output(Bytecode::kOsrPoll, UnsignedOperand(loop_depth));
475 return *this;
476 }
477
473 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() { 478 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() {
474 Output(Bytecode::kThrow); 479 Output(Bytecode::kThrow);
475 return *this; 480 return *this;
476 } 481 }
477 482
478 BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() { 483 BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() {
479 Output(Bytecode::kReThrow); 484 Output(Bytecode::kReThrow);
480 return *this; 485 return *this;
481 } 486 }
482 487
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 return Bytecode::kTailCall; 954 return Bytecode::kTailCall;
950 default: 955 default:
951 UNREACHABLE(); 956 UNREACHABLE();
952 } 957 }
953 return Bytecode::kIllegal; 958 return Bytecode::kIllegal;
954 } 959 }
955 960
956 } // namespace interpreter 961 } // namespace interpreter
957 } // namespace internal 962 } // namespace internal
958 } // namespace v8 963 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698