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

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 2501503005: [Interpreter] Add SetPendingMessage bytecode. (Closed)
Patch Set: cl format Created 4 years, 1 month 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/globals.h" 7 #include "src/globals.h"
8 #include "src/interpreter/bytecode-array-writer.h" 8 #include "src/interpreter/bytecode-array-writer.h"
9 #include "src/interpreter/bytecode-dead-code-optimizer.h" 9 #include "src/interpreter/bytecode-dead-code-optimizer.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 // A Nop could be inserted for empty statements, but since no code 735 // A Nop could be inserted for empty statements, but since no code
736 // is associated with these positions, instead we force the stack 736 // is associated with these positions, instead we force the stack
737 // check's expression position which eliminates the empty 737 // check's expression position which eliminates the empty
738 // statement's position. 738 // statement's position.
739 latest_source_info_.ForceExpressionPosition(position); 739 latest_source_info_.ForceExpressionPosition(position);
740 } 740 }
741 OutputStackCheck(); 741 OutputStackCheck();
742 return *this; 742 return *this;
743 } 743 }
744 744
745 BytecodeArrayBuilder& BytecodeArrayBuilder::SetPendingMessage() {
746 OutputSetPendingMessage();
747 return *this;
748 }
749
745 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() { 750 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() {
746 OutputThrow(); 751 OutputThrow();
747 return *this; 752 return *this;
748 } 753 }
749 754
750 BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() { 755 BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() {
751 OutputReThrow(); 756 OutputReThrow();
752 return *this; 757 return *this;
753 } 758 }
754 759
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 RegisterList reg_list) { 1008 RegisterList reg_list) {
1004 DCHECK(RegisterListIsValid(reg_list)); 1009 DCHECK(RegisterListIsValid(reg_list));
1005 if (register_optimizer_) 1010 if (register_optimizer_)
1006 register_optimizer_->PrepareOutputRegisterList(reg_list); 1011 register_optimizer_->PrepareOutputRegisterList(reg_list);
1007 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1012 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1008 } 1013 }
1009 1014
1010 } // namespace interpreter 1015 } // namespace interpreter
1011 } // namespace internal 1016 } // namespace internal
1012 } // namespace v8 1017 } // 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