| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 | 424 |
| 425 void CodeGenerator::CodeForReturnPosition(FunctionLiteral* fun) { | 425 void CodeGenerator::CodeForReturnPosition(FunctionLiteral* fun) { |
| 426 if (FLAG_debug_info) RecordPositions(masm(), fun->end_position()); | 426 if (FLAG_debug_info) RecordPositions(masm(), fun->end_position()); |
| 427 } | 427 } |
| 428 | 428 |
| 429 | 429 |
| 430 void CodeGenerator::CodeForStatementPosition(Statement* stmt) { | 430 void CodeGenerator::CodeForStatementPosition(Statement* stmt) { |
| 431 if (FLAG_debug_info) RecordPositions(masm(), stmt->statement_pos()); | 431 if (FLAG_debug_info) RecordPositions(masm(), stmt->statement_pos()); |
| 432 } | 432 } |
| 433 | 433 |
| 434 void CodeGenerator::CodeForDoWhileConditionPosition(DoWhileStatement* stmt) { |
| 435 if (FLAG_debug_info) RecordPositions(masm(), stmt->condition_position()); |
| 436 } |
| 434 | 437 |
| 435 void CodeGenerator::CodeForSourcePosition(int pos) { | 438 void CodeGenerator::CodeForSourcePosition(int pos) { |
| 436 if (FLAG_debug_info && pos != RelocInfo::kNoPosition) { | 439 if (FLAG_debug_info && pos != RelocInfo::kNoPosition) { |
| 437 masm()->RecordPosition(pos); | 440 masm()->RecordPosition(pos); |
| 438 } | 441 } |
| 439 } | 442 } |
| 440 | 443 |
| 441 | 444 |
| 442 const char* RuntimeStub::GetName() { | 445 const char* RuntimeStub::GetName() { |
| 443 return Runtime::FunctionForId(id_)->stub_name; | 446 return Runtime::FunctionForId(id_)->stub_name; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 471 } | 474 } |
| 472 } | 475 } |
| 473 | 476 |
| 474 | 477 |
| 475 void ApiGetterEntryStub::SetCustomCache(Code* value) { | 478 void ApiGetterEntryStub::SetCustomCache(Code* value) { |
| 476 info()->set_load_stub_cache(value); | 479 info()->set_load_stub_cache(value); |
| 477 } | 480 } |
| 478 | 481 |
| 479 | 482 |
| 480 } } // namespace v8::internal | 483 } } // namespace v8::internal |
| OLD | NEW |