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