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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 2161263003: [debug] use catch prediction flag for promise rejections. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 #include "src/compiler/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 1705
1706 EmitPrepareArguments(&(buffer.pushed_nodes), descriptor, node); 1706 EmitPrepareArguments(&(buffer.pushed_nodes), descriptor, node);
1707 1707
1708 // Pass label of exception handler block. 1708 // Pass label of exception handler block.
1709 CallDescriptor::Flags flags = descriptor->flags(); 1709 CallDescriptor::Flags flags = descriptor->flags();
1710 if (handler) { 1710 if (handler) {
1711 DCHECK_EQ(IrOpcode::kIfException, handler->front()->opcode()); 1711 DCHECK_EQ(IrOpcode::kIfException, handler->front()->opcode());
1712 IfExceptionHint hint = OpParameter<IfExceptionHint>(handler->front()); 1712 IfExceptionHint hint = OpParameter<IfExceptionHint>(handler->front());
1713 if (hint == IfExceptionHint::kLocallyCaught) { 1713 if (hint == IfExceptionHint::kLocallyCaught) {
1714 flags |= CallDescriptor::kHasLocalCatchHandler; 1714 flags |= CallDescriptor::kHasLocalCatchHandler;
1715 } else if (hint == IfExceptionHint::kLocallyCaughtForPromiseReject) {
1716 flags |= CallDescriptor::kHasLocalCatchHandlerForPromiseReject;
1715 } 1717 }
1716 flags |= CallDescriptor::kHasExceptionHandler; 1718 flags |= CallDescriptor::kHasExceptionHandler;
1717 buffer.instruction_args.push_back(g.Label(handler)); 1719 buffer.instruction_args.push_back(g.Label(handler));
1718 } 1720 }
1719 1721
1720 bool from_native_stack = linkage()->GetIncomingDescriptor()->UseNativeStack(); 1722 bool from_native_stack = linkage()->GetIncomingDescriptor()->UseNativeStack();
1721 bool to_native_stack = descriptor->UseNativeStack(); 1723 bool to_native_stack = descriptor->UseNativeStack();
1722 if (from_native_stack != to_native_stack) { 1724 if (from_native_stack != to_native_stack) {
1723 // (arm64 only) Mismatch in the use of stack pointers. One or the other 1725 // (arm64 only) Mismatch in the use of stack pointers. One or the other
1724 // has to be restored manually by the code generator. 1726 // has to be restored manually by the code generator.
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1988 return new (instruction_zone()) FrameStateDescriptor( 1990 return new (instruction_zone()) FrameStateDescriptor(
1989 instruction_zone(), state_info.type(), state_info.bailout_id(), 1991 instruction_zone(), state_info.type(), state_info.bailout_id(),
1990 state_info.state_combine(), parameters, locals, stack, 1992 state_info.state_combine(), parameters, locals, stack,
1991 state_info.shared_info(), outer_state); 1993 state_info.shared_info(), outer_state);
1992 } 1994 }
1993 1995
1994 1996
1995 } // namespace compiler 1997 } // namespace compiler
1996 } // namespace internal 1998 } // namespace internal
1997 } // namespace v8 1999 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698