OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |