| Index: src/codegen.cc
|
| diff --git a/src/codegen.cc b/src/codegen.cc
|
| index bda697abafdb2cc9e6fa85c0f5c8d891476ef7e9..2e32418034bea4d55ae8fb01c7eb403e6cd68a4d 100644
|
| --- a/src/codegen.cc
|
| +++ b/src/codegen.cc
|
| @@ -70,9 +70,10 @@ void CodeGenerator::ProcessDeferred() {
|
| DeferredCode* code = deferred_.RemoveLast();
|
| ASSERT(masm_ == code->masm());
|
| // Record position of deferred code stub.
|
| - masm_->RecordStatementPosition(code->statement_position());
|
| + masm_->positions_recorder()->RecordStatementPosition(
|
| + code->statement_position());
|
| if (code->position() != RelocInfo::kNoPosition) {
|
| - masm_->RecordPosition(code->position());
|
| + masm_->positions_recorder()->RecordPosition(code->position());
|
| }
|
| // Generate the code.
|
| Comment cmnt(masm_, code->comment());
|
| @@ -402,10 +403,10 @@ bool CodeGenerator::RecordPositions(MacroAssembler* masm,
|
| int pos,
|
| bool right_here) {
|
| if (pos != RelocInfo::kNoPosition) {
|
| - masm->RecordStatementPosition(pos);
|
| - masm->RecordPosition(pos);
|
| + masm->positions_recorder()->RecordStatementPosition(pos);
|
| + masm->positions_recorder()->RecordPosition(pos);
|
| if (right_here) {
|
| - return masm->WriteRecordedPositions();
|
| + return masm->positions_recorder()->WriteRecordedPositions();
|
| }
|
| }
|
| return false;
|
| @@ -435,7 +436,7 @@ void CodeGenerator::CodeForDoWhileConditionPosition(DoWhileStatement* stmt) {
|
|
|
| void CodeGenerator::CodeForSourcePosition(int pos) {
|
| if (FLAG_debug_info && pos != RelocInfo::kNoPosition) {
|
| - masm()->RecordPosition(pos);
|
| + masm()->positions_recorder()->RecordPosition(pos);
|
| }
|
| }
|
|
|
|
|