Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/assembler.cc

Issue 385583003: Remove GDB JIT hooks from the position recorder. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/assembler.h ('k') | src/d8.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 ExternalReference ExternalReference::debug_step_in_fp_address( 1565 ExternalReference ExternalReference::debug_step_in_fp_address(
1566 Isolate* isolate) { 1566 Isolate* isolate) {
1567 return ExternalReference(isolate->debug()->step_in_fp_addr()); 1567 return ExternalReference(isolate->debug()->step_in_fp_addr());
1568 } 1568 }
1569 1569
1570 1570
1571 void PositionsRecorder::RecordPosition(int pos) { 1571 void PositionsRecorder::RecordPosition(int pos) {
1572 ASSERT(pos != RelocInfo::kNoPosition); 1572 ASSERT(pos != RelocInfo::kNoPosition);
1573 ASSERT(pos >= 0); 1573 ASSERT(pos >= 0);
1574 state_.current_position = pos; 1574 state_.current_position = pos;
1575 #ifdef ENABLE_GDB_JIT_INTERFACE
1576 if (gdbjit_lineinfo_ != NULL) {
1577 gdbjit_lineinfo_->SetPosition(assembler_->pc_offset(), pos, false);
1578 }
1579 #endif
1580 LOG_CODE_EVENT(assembler_->isolate(), 1575 LOG_CODE_EVENT(assembler_->isolate(),
1581 CodeLinePosInfoAddPositionEvent(jit_handler_data_, 1576 CodeLinePosInfoAddPositionEvent(jit_handler_data_,
1582 assembler_->pc_offset(), 1577 assembler_->pc_offset(),
1583 pos)); 1578 pos));
1584 } 1579 }
1585 1580
1586 1581
1587 void PositionsRecorder::RecordStatementPosition(int pos) { 1582 void PositionsRecorder::RecordStatementPosition(int pos) {
1588 ASSERT(pos != RelocInfo::kNoPosition); 1583 ASSERT(pos != RelocInfo::kNoPosition);
1589 ASSERT(pos >= 0); 1584 ASSERT(pos >= 0);
1590 state_.current_statement_position = pos; 1585 state_.current_statement_position = pos;
1591 #ifdef ENABLE_GDB_JIT_INTERFACE
1592 if (gdbjit_lineinfo_ != NULL) {
1593 gdbjit_lineinfo_->SetPosition(assembler_->pc_offset(), pos, true);
1594 }
1595 #endif
1596 LOG_CODE_EVENT(assembler_->isolate(), 1586 LOG_CODE_EVENT(assembler_->isolate(),
1597 CodeLinePosInfoAddStatementPositionEvent( 1587 CodeLinePosInfoAddStatementPositionEvent(
1598 jit_handler_data_, 1588 jit_handler_data_,
1599 assembler_->pc_offset(), 1589 assembler_->pc_offset(),
1600 pos)); 1590 pos));
1601 } 1591 }
1602 1592
1603 1593
1604 bool PositionsRecorder::WriteRecordedPositions() { 1594 bool PositionsRecorder::WriteRecordedPositions() {
1605 bool written = false; 1595 bool written = false;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1656 r2 = r2 - ad; 1646 r2 = r2 - ad;
1657 } 1647 }
1658 delta = ad - r2; 1648 delta = ad - r2;
1659 } while (q1 < delta || (q1 == delta && r1 == 0)); 1649 } while (q1 < delta || (q1 == delta && r1 == 0));
1660 int32_t mul = static_cast<int32_t>(q2 + 1); 1650 int32_t mul = static_cast<int32_t>(q2 + 1);
1661 multiplier_ = (d < 0) ? -mul : mul; 1651 multiplier_ = (d < 0) ? -mul : mul;
1662 shift_ = p - 32; 1652 shift_ = p - 32;
1663 } 1653 }
1664 1654
1665 } } // namespace v8::internal 1655 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698