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 // If the position recording did record a new position generate a debug | 815 // If the position recording did record a new position generate a debug |
816 // break slot to make the statement breakable. | 816 // break slot to make the statement breakable. |
817 if (position_recorded) { | 817 if (position_recorded) { |
818 DebugCodegen::GenerateSlot(masm_); | 818 DebugCodegen::GenerateSlot(masm_); |
819 } | 819 } |
820 } | 820 } |
821 } | 821 } |
822 | 822 |
823 | 823 |
824 void FullCodeGenerator::VisitSuperReference(SuperReference* super) { | 824 void FullCodeGenerator::VisitSuperReference(SuperReference* super) { |
825 DCHECK(FLAG_harmony_classes); | 825 __ CallRuntime(Runtime::kThrowUnsupportedSuperError, 0); |
826 UNIMPLEMENTED(); | |
827 } | 826 } |
828 | 827 |
829 | 828 |
830 void FullCodeGenerator::SetExpressionPosition(Expression* expr) { | 829 void FullCodeGenerator::SetExpressionPosition(Expression* expr) { |
831 if (!info_->is_debug()) { | 830 if (!info_->is_debug()) { |
832 CodeGenerator::RecordPositions(masm_, expr->position()); | 831 CodeGenerator::RecordPositions(masm_, expr->position()); |
833 } else { | 832 } else { |
834 // Check if the expression will be breakable without adding a debug break | 833 // Check if the expression will be breakable without adding a debug break |
835 // slot. | 834 // slot. |
836 BreakableStatementChecker checker(zone()); | 835 BreakableStatementChecker checker(zone()); |
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1692 } | 1691 } |
1693 return true; | 1692 return true; |
1694 } | 1693 } |
1695 #endif // DEBUG | 1694 #endif // DEBUG |
1696 | 1695 |
1697 | 1696 |
1698 #undef __ | 1697 #undef __ |
1699 | 1698 |
1700 | 1699 |
1701 } } // namespace v8::internal | 1700 } } // namespace v8::internal |
OLD | NEW |