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

Side by Side Diff: src/full-codegen/s390/full-codegen-s390.cc

Issue 2124813002: [debugger] omit exception events for rethrown exceptions in async. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comments 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
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.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 #if V8_TARGET_ARCH_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 STATIC_ASSERT(JSGeneratorObject::kNext < JSGeneratorObject::kReturn); 1743 STATIC_ASSERT(JSGeneratorObject::kNext < JSGeneratorObject::kReturn);
1744 STATIC_ASSERT(JSGeneratorObject::kThrow > JSGeneratorObject::kReturn); 1744 STATIC_ASSERT(JSGeneratorObject::kThrow > JSGeneratorObject::kReturn);
1745 __ CmpSmiLiteral(r3, Smi::FromInt(JSGeneratorObject::kReturn), r0); 1745 __ CmpSmiLiteral(r3, Smi::FromInt(JSGeneratorObject::kReturn), r0);
1746 __ blt(&resume); 1746 __ blt(&resume);
1747 __ Push(result_register()); 1747 __ Push(result_register());
1748 __ bgt(&exception); 1748 __ bgt(&exception);
1749 EmitCreateIteratorResult(true); 1749 EmitCreateIteratorResult(true);
1750 EmitUnwindAndReturn(); 1750 EmitUnwindAndReturn();
1751 1751
1752 __ bind(&exception); 1752 __ bind(&exception);
1753 __ CallRuntime(Runtime::kThrow); 1753 __ CallRuntime(expr->rethrow_on_exception() ? Runtime::kReThrow
1754 : Runtime::kThrow);
1754 1755
1755 __ bind(&suspend); 1756 __ bind(&suspend);
1756 OperandStackDepthIncrement(1); // Not popped on this path. 1757 OperandStackDepthIncrement(1); // Not popped on this path.
1757 VisitForAccumulatorValue(expr->generator_object()); 1758 VisitForAccumulatorValue(expr->generator_object());
1758 DCHECK(continuation.pos() > 0 && Smi::IsValid(continuation.pos())); 1759 DCHECK(continuation.pos() > 0 && Smi::IsValid(continuation.pos()));
1759 __ LoadSmiLiteral(r3, Smi::FromInt(continuation.pos())); 1760 __ LoadSmiLiteral(r3, Smi::FromInt(continuation.pos()));
1760 __ StoreP(r3, FieldMemOperand(r2, JSGeneratorObject::kContinuationOffset), 1761 __ StoreP(r3, FieldMemOperand(r2, JSGeneratorObject::kContinuationOffset),
1761 r0); 1762 r0);
1762 __ StoreP(cp, FieldMemOperand(r2, JSGeneratorObject::kContextOffset), r0); 1763 __ StoreP(cp, FieldMemOperand(r2, JSGeneratorObject::kContextOffset), r0);
1763 __ LoadRR(r3, cp); 1764 __ LoadRR(r3, cp);
(...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after
3674 DCHECK(kOSRBranchInstruction == br_instr); 3675 DCHECK(kOSRBranchInstruction == br_instr);
3675 3676
3676 DCHECK(interrupt_address == 3677 DCHECK(interrupt_address ==
3677 isolate->builtins()->OnStackReplacement()->entry()); 3678 isolate->builtins()->OnStackReplacement()->entry());
3678 return ON_STACK_REPLACEMENT; 3679 return ON_STACK_REPLACEMENT;
3679 } 3680 }
3680 3681
3681 } // namespace internal 3682 } // namespace internal
3682 } // namespace v8 3683 } // namespace v8
3683 #endif // V8_TARGET_ARCH_S390 3684 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698