| 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 #if defined(V8_OS_AIX) | 7 #if defined(V8_OS_AIX) |
| 8 #include <fenv.h> | 8 #include <fenv.h> |
| 9 #endif | 9 #endif |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 } | 232 } |
| 233 if (print_source) { | 233 if (print_source) { |
| 234 os << "source_position = " << function->start_position() << "\n"; | 234 os << "source_position = " << function->start_position() << "\n"; |
| 235 } | 235 } |
| 236 code->Disassemble(debug_name, os); | 236 code->Disassemble(debug_name, os); |
| 237 os << "--- End code ---\n"; | 237 os << "--- End code ---\n"; |
| 238 } | 238 } |
| 239 #endif // ENABLE_DISASSEMBLER | 239 #endif // ENABLE_DISASSEMBLER |
| 240 } | 240 } |
| 241 | 241 |
| 242 | |
| 243 bool CodeGenerator::RecordPositions(MacroAssembler* masm, | |
| 244 int pos, | |
| 245 bool right_here) { | |
| 246 if (pos != RelocInfo::kNoPosition) { | |
| 247 masm->positions_recorder()->RecordStatementPosition(pos); | |
| 248 masm->positions_recorder()->RecordPosition(pos); | |
| 249 if (right_here) { | |
| 250 return masm->positions_recorder()->WriteRecordedPositions(); | |
| 251 } | |
| 252 } | |
| 253 return false; | |
| 254 } | |
| 255 | |
| 256 } // namespace internal | 242 } // namespace internal |
| 257 } // namespace v8 | 243 } // namespace v8 |
| OLD | NEW |