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

Side by Side Diff: src/compiler/raw-machine-assembler.h

Issue 2247353005: [builtins] support exception handling in TFJ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Refactor a bit 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 void Switch(Node* index, RawMachineLabel* default_label, 751 void Switch(Node* index, RawMachineLabel* default_label,
752 const int32_t* case_values, RawMachineLabel** case_labels, 752 const int32_t* case_values, RawMachineLabel** case_labels,
753 size_t case_count); 753 size_t case_count);
754 void Return(Node* value); 754 void Return(Node* value);
755 void Return(Node* v1, Node* v2); 755 void Return(Node* v1, Node* v2);
756 void Return(Node* v1, Node* v2, Node* v3); 756 void Return(Node* v1, Node* v2, Node* v3);
757 void Bind(RawMachineLabel* label); 757 void Bind(RawMachineLabel* label);
758 void Deoptimize(Node* state); 758 void Deoptimize(Node* state);
759 void DebugBreak(); 759 void DebugBreak();
760 void Comment(const char* msg); 760 void Comment(const char* msg);
761 // Add success / exception successor blocks to a block ending with a throwing
Michael Starzinger 2016/08/19 18:37:43 nit: What do you think about phrasing the comment
caitp 2016/08/19 20:37:11 sgtm, done
762 // opcode.
763 void Continuations(Node* call, RawMachineLabel* if_success,
764 RawMachineLabel* if_exception);
761 765
762 // Variables. 766 // Variables.
763 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2) { 767 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2) {
764 return AddNode(common()->Phi(rep, 2), n1, n2, graph()->start()); 768 return AddNode(common()->Phi(rep, 2), n1, n2, graph()->start());
765 } 769 }
766 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3) { 770 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3) {
767 return AddNode(common()->Phi(rep, 3), n1, n2, n3, graph()->start()); 771 return AddNode(common()->Phi(rep, 3), n1, n2, n3, graph()->start());
768 } 772 }
769 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3, Node* n4) { 773 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2, Node* n3, Node* n4) {
770 return AddNode(common()->Phi(rep, 4), n1, n2, n3, n4, graph()->start()); 774 return AddNode(common()->Phi(rep, 4), n1, n2, n3, n4, graph()->start());
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 bool deferred_; 830 bool deferred_;
827 friend class RawMachineAssembler; 831 friend class RawMachineAssembler;
828 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 832 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
829 }; 833 };
830 834
831 } // namespace compiler 835 } // namespace compiler
832 } // namespace internal 836 } // namespace internal
833 } // namespace v8 837 } // namespace v8
834 838
835 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 839 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698