| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
| 9 #include "src/debug.h" | 9 #include "src/debug.h" |
| 10 #include "src/full-codegen.h" | 10 #include "src/full-codegen.h" |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 masm_, stmt->position(), !checker.is_breakable()); | 815 masm_, stmt->position(), !checker.is_breakable()); |
| 816 // If the position recording did record a new position generate a debug | 816 // If the position recording did record a new position generate a debug |
| 817 // break slot to make the statement breakable. | 817 // break slot to make the statement breakable. |
| 818 if (position_recorded) { | 818 if (position_recorded) { |
| 819 DebugCodegen::GenerateSlot(masm_); | 819 DebugCodegen::GenerateSlot(masm_); |
| 820 } | 820 } |
| 821 } | 821 } |
| 822 } | 822 } |
| 823 | 823 |
| 824 | 824 |
| 825 void FullCodeGenerator::VisitSuperReference(SuperReference* super) { | |
| 826 DCHECK(FLAG_harmony_classes); | |
| 827 UNIMPLEMENTED(); | |
| 828 } | |
| 829 | |
| 830 | |
| 831 void FullCodeGenerator::SetExpressionPosition(Expression* expr) { | 825 void FullCodeGenerator::SetExpressionPosition(Expression* expr) { |
| 832 if (!info_->is_debug()) { | 826 if (!info_->is_debug()) { |
| 833 CodeGenerator::RecordPositions(masm_, expr->position()); | 827 CodeGenerator::RecordPositions(masm_, expr->position()); |
| 834 } else { | 828 } else { |
| 835 // Check if the expression will be breakable without adding a debug break | 829 // Check if the expression will be breakable without adding a debug break |
| 836 // slot. | 830 // slot. |
| 837 BreakableStatementChecker checker(zone()); | 831 BreakableStatementChecker checker(zone()); |
| 838 checker.Check(expr); | 832 checker.Check(expr); |
| 839 // Record a statement position right here if the expression is not | 833 // Record a statement position right here if the expression is not |
| 840 // breakable. For breakable expressions the actual recording of the | 834 // breakable. For breakable expressions the actual recording of the |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1691 } | 1685 } |
| 1692 return true; | 1686 return true; |
| 1693 } | 1687 } |
| 1694 #endif // DEBUG | 1688 #endif // DEBUG |
| 1695 | 1689 |
| 1696 | 1690 |
| 1697 #undef __ | 1691 #undef __ |
| 1698 | 1692 |
| 1699 | 1693 |
| 1700 } } // namespace v8::internal | 1694 } } // namespace v8::internal |
| OLD | NEW |