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

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

Issue 1722593002: [fullcodegen] Lift restriction on --debug-code flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 Split(eq, if_true, if_false, NULL); 764 Split(eq, if_true, if_false, NULL);
765 __ Bind(&skip); 765 __ Bind(&skip);
766 } 766 }
767 } 767 }
768 768
769 769
770 void FullCodeGenerator::EmitDebugCheckDeclarationContext(Variable* variable) { 770 void FullCodeGenerator::EmitDebugCheckDeclarationContext(Variable* variable) {
771 // The variable in the declaration always resides in the current function 771 // The variable in the declaration always resides in the current function
772 // context. 772 // context.
773 DCHECK_EQ(0, scope()->ContextChainLength(variable->scope())); 773 DCHECK_EQ(0, scope()->ContextChainLength(variable->scope()));
774 if (generate_debug_code_) { 774 if (FLAG_debug_code) {
775 // Check that we're not inside a with or catch context. 775 // Check that we're not inside a with or catch context.
776 __ Ldr(x1, FieldMemOperand(cp, HeapObject::kMapOffset)); 776 __ Ldr(x1, FieldMemOperand(cp, HeapObject::kMapOffset));
777 __ CompareRoot(x1, Heap::kWithContextMapRootIndex); 777 __ CompareRoot(x1, Heap::kWithContextMapRootIndex);
778 __ Check(ne, kDeclarationInWithContext); 778 __ Check(ne, kDeclarationInWithContext);
779 __ CompareRoot(x1, Heap::kCatchContextMapRootIndex); 779 __ CompareRoot(x1, Heap::kCatchContextMapRootIndex);
780 __ Check(ne, kDeclarationInCatchContext); 780 __ Check(ne, kDeclarationInCatchContext);
781 } 781 }
782 } 782 }
783 783
784 784
(...skipping 3536 matching lines...) Expand 10 before | Expand all | Expand 10 after
4321 } 4321 }
4322 4322
4323 return INTERRUPT; 4323 return INTERRUPT;
4324 } 4324 }
4325 4325
4326 4326
4327 } // namespace internal 4327 } // namespace internal
4328 } // namespace v8 4328 } // namespace v8
4329 4329
4330 #endif // V8_TARGET_ARCH_ARM64 4330 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698