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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 if (position_recorded) { | 859 if (position_recorded) { |
860 DebugCodegen::GenerateSlot(masm_); | 860 DebugCodegen::GenerateSlot(masm_); |
861 } | 861 } |
862 } | 862 } |
863 } | 863 } |
864 | 864 |
865 | 865 |
866 void FullCodeGenerator::SetSourcePosition(int pos) { | 866 void FullCodeGenerator::SetSourcePosition(int pos) { |
867 if (pos != RelocInfo::kNoPosition) { | 867 if (pos != RelocInfo::kNoPosition) { |
868 masm_->positions_recorder()->RecordPosition(pos); | 868 masm_->positions_recorder()->RecordPosition(pos); |
| 869 masm_->positions_recorder()->WriteRecordedPositions(); |
869 } | 870 } |
870 } | 871 } |
871 | 872 |
872 | 873 |
873 // Lookup table for code generators for special runtime calls which are | 874 // Lookup table for code generators for special runtime calls which are |
874 // generated inline. | 875 // generated inline. |
875 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \ | 876 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \ |
876 &FullCodeGenerator::Emit##Name, | 877 &FullCodeGenerator::Emit##Name, |
877 | 878 |
878 const FullCodeGenerator::InlineFunctionGenerator | 879 const FullCodeGenerator::InlineFunctionGenerator |
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1710 } | 1711 } |
1711 return true; | 1712 return true; |
1712 } | 1713 } |
1713 #endif // DEBUG | 1714 #endif // DEBUG |
1714 | 1715 |
1715 | 1716 |
1716 #undef __ | 1717 #undef __ |
1717 | 1718 |
1718 | 1719 |
1719 } } // namespace v8::internal | 1720 } } // namespace v8::internal |
OLD | NEW |