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

Side by Side Diff: src/compiler/code-assembler.h

Issue 2247353005: [builtins] support exception handling in TFJ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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 | « no previous file | src/compiler/code-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_COMPILER_CODE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_
6 #define V8_COMPILER_CODE_ASSEMBLER_H_ 6 #define V8_COMPILER_CODE_ASSEMBLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 Node* TailCallBytecodeDispatch(const CallInterfaceDescriptor& descriptor, 399 Node* TailCallBytecodeDispatch(const CallInterfaceDescriptor& descriptor,
400 Node* code_target_address, Node** args); 400 Node* code_target_address, Node** args);
401 401
402 Node* CallJS(Callable const& callable, Node* context, Node* function, 402 Node* CallJS(Callable const& callable, Node* context, Node* function,
403 Node* receiver, size_t result_size = 1); 403 Node* receiver, size_t result_size = 1);
404 Node* CallJS(Callable const& callable, Node* context, Node* function, 404 Node* CallJS(Callable const& callable, Node* context, Node* function,
405 Node* receiver, Node* arg1, size_t result_size = 1); 405 Node* receiver, Node* arg1, size_t result_size = 1);
406 Node* CallJS(Callable const& callable, Node* context, Node* function, 406 Node* CallJS(Callable const& callable, Node* context, Node* function,
407 Node* receiver, Node* arg1, Node* arg2, size_t result_size = 1); 407 Node* receiver, Node* arg1, Node* arg2, size_t result_size = 1);
408 408
409 // Exception handling support.
410 void GotoIfException(Node* node, Label* if_exception,
411 Variable* exception_var = nullptr);
412
409 // Branching helpers. 413 // Branching helpers.
410 void BranchIf(Node* condition, Label* if_true, Label* if_false); 414 void BranchIf(Node* condition, Label* if_true, Label* if_false);
411 415
412 #define BRANCH_HELPER(name) \ 416 #define BRANCH_HELPER(name) \
413 void BranchIf##name(Node* a, Node* b, Label* if_true, Label* if_false) { \ 417 void BranchIf##name(Node* a, Node* b, Label* if_true, Label* if_false) { \
414 BranchIf(name(a, b), if_true, if_false); \ 418 BranchIf(name(a, b), if_true, if_false); \
415 } 419 }
416 CODE_ASSEMBLER_COMPARE_BINARY_OP_LIST(BRANCH_HELPER) 420 CODE_ASSEMBLER_COMPARE_BINARY_OP_LIST(BRANCH_HELPER)
417 #undef BRANCH_HELPER 421 #undef BRANCH_HELPER
418 422
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 // Map of variables to the list of value nodes that have been added from each 478 // Map of variables to the list of value nodes that have been added from each
475 // merge path in their order of merging. 479 // merge path in their order of merging.
476 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; 480 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_;
477 }; 481 };
478 482
479 } // namespace compiler 483 } // namespace compiler
480 } // namespace internal 484 } // namespace internal
481 } // namespace v8 485 } // namespace v8
482 486
483 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 487 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/code-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698