| 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/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
| 10 #include "src/debug.h" | 10 #include "src/debug.h" |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 // If the position recording did record a new position generate a debug | 826 // If the position recording did record a new position generate a debug |
| 827 // break slot to make the statement breakable. | 827 // break slot to make the statement breakable. |
| 828 if (position_recorded) { | 828 if (position_recorded) { |
| 829 DebugCodegen::GenerateSlot(masm_); | 829 DebugCodegen::GenerateSlot(masm_); |
| 830 } | 830 } |
| 831 } | 831 } |
| 832 } | 832 } |
| 833 | 833 |
| 834 | 834 |
| 835 void FullCodeGenerator::VisitSuperReference(SuperReference* super) { | 835 void FullCodeGenerator::VisitSuperReference(SuperReference* super) { |
| 836 DCHECK(FLAG_harmony_classes); | 836 __ CallRuntime(Runtime::kThrowUnsupportedSuperError, 0); |
| 837 UNIMPLEMENTED(); | |
| 838 } | 837 } |
| 839 | 838 |
| 840 | 839 |
| 841 void FullCodeGenerator::SetExpressionPosition(Expression* expr) { | 840 void FullCodeGenerator::SetExpressionPosition(Expression* expr) { |
| 842 if (!info_->is_debug()) { | 841 if (!info_->is_debug()) { |
| 843 CodeGenerator::RecordPositions(masm_, expr->position()); | 842 CodeGenerator::RecordPositions(masm_, expr->position()); |
| 844 } else { | 843 } else { |
| 845 // Check if the expression will be breakable without adding a debug break | 844 // Check if the expression will be breakable without adding a debug break |
| 846 // slot. | 845 // slot. |
| 847 BreakableStatementChecker checker(zone()); | 846 BreakableStatementChecker checker(zone()); |
| (...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1711 } | 1710 } |
| 1712 return true; | 1711 return true; |
| 1713 } | 1712 } |
| 1714 #endif // DEBUG | 1713 #endif // DEBUG |
| 1715 | 1714 |
| 1716 | 1715 |
| 1717 #undef __ | 1716 #undef __ |
| 1718 | 1717 |
| 1719 | 1718 |
| 1720 } } // namespace v8::internal | 1719 } } // namespace v8::internal |
| OLD | NEW |