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

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: 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
« no previous file with comments | « no previous file | src/compiler/code-assembler.cc » ('j') | src/compiler/code-assembler.cc » ('J')
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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Branching helpers. 409 // Branching helpers.
410 void BranchIf(Node* condition, Label* if_true, Label* if_false); 410 void BranchIf(Node* condition, Label* if_true, Label* if_false);
411 411
412 void GotoIfException(Node* node, Label* if_exception,
Michael Starzinger 2016/08/19 18:37:43 nit: Lets move this up one function to not have it
caitp 2016/08/19 20:37:11 done
413 Variable* exception_var = nullptr);
414
412 #define BRANCH_HELPER(name) \ 415 #define BRANCH_HELPER(name) \
413 void BranchIf##name(Node* a, Node* b, Label* if_true, Label* if_false) { \ 416 void BranchIf##name(Node* a, Node* b, Label* if_true, Label* if_false) { \
414 BranchIf(name(a, b), if_true, if_false); \ 417 BranchIf(name(a, b), if_true, if_false); \
415 } 418 }
416 CODE_ASSEMBLER_COMPARE_BINARY_OP_LIST(BRANCH_HELPER) 419 CODE_ASSEMBLER_COMPARE_BINARY_OP_LIST(BRANCH_HELPER)
417 #undef BRANCH_HELPER 420 #undef BRANCH_HELPER
418 421
419 // Helpers which delegate to RawMachineAssembler. 422 // Helpers which delegate to RawMachineAssembler.
420 Factory* factory() const; 423 Factory* factory() const;
421 Isolate* isolate() const; 424 Isolate* isolate() const;
(...skipping 52 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 477 // Map of variables to the list of value nodes that have been added from each
475 // merge path in their order of merging. 478 // merge path in their order of merging.
476 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; 479 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_;
477 }; 480 };
478 481
479 } // namespace compiler 482 } // namespace compiler
480 } // namespace internal 483 } // namespace internal
481 } // namespace v8 484 } // namespace v8
482 485
483 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ 486 #endif // V8_COMPILER_CODE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/code-assembler.cc » ('j') | src/compiler/code-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698