OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 // a do while loop. | 876 // a do while loop. |
877 bool position_recorded = CodeGenerator::RecordPositions( | 877 bool position_recorded = CodeGenerator::RecordPositions( |
878 masm_, expr->position(), !checker.is_breakable()); | 878 masm_, expr->position(), !checker.is_breakable()); |
879 // If the position recording did record a new position generate a debug | 879 // If the position recording did record a new position generate a debug |
880 // break slot to make the statement breakable. | 880 // break slot to make the statement breakable. |
881 if (position_recorded) { | 881 if (position_recorded) { |
882 Debug::GenerateSlot(masm_); | 882 Debug::GenerateSlot(masm_); |
883 } | 883 } |
884 } | 884 } |
885 #else | 885 #else |
886 CodeGenerator::RecordPositions(masm_, pos); | 886 CodeGenerator::RecordPositions(masm_, expr->position()); |
887 #endif | 887 #endif |
888 } | 888 } |
889 | 889 |
890 | 890 |
891 void FullCodeGenerator::SetStatementPosition(int pos) { | 891 void FullCodeGenerator::SetStatementPosition(int pos) { |
892 CodeGenerator::RecordPositions(masm_, pos); | 892 CodeGenerator::RecordPositions(masm_, pos); |
893 } | 893 } |
894 | 894 |
895 | 895 |
896 void FullCodeGenerator::SetSourcePosition(int pos) { | 896 void FullCodeGenerator::SetSourcePosition(int pos) { |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1758 } | 1758 } |
1759 return true; | 1759 return true; |
1760 } | 1760 } |
1761 #endif // DEBUG | 1761 #endif // DEBUG |
1762 | 1762 |
1763 | 1763 |
1764 #undef __ | 1764 #undef __ |
1765 | 1765 |
1766 | 1766 |
1767 } } // namespace v8::internal | 1767 } } // namespace v8::internal |
OLD | NEW |