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

Side by Side Diff: src/ia32/assembler-ia32.cc

Issue 6793016: Record AST ids in relocation info at spots where we collect dynamic type feedback. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: last change Created 9 years, 8 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/ia32/assembler-ia32.h ('k') | src/ia32/assembler-ia32-inl.h » ('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 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are 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 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 1582
1583 void Assembler::call(const Operand& adr) { 1583 void Assembler::call(const Operand& adr) {
1584 positions_recorder()->WriteRecordedPositions(); 1584 positions_recorder()->WriteRecordedPositions();
1585 EnsureSpace ensure_space(this); 1585 EnsureSpace ensure_space(this);
1586 last_pc_ = pc_; 1586 last_pc_ = pc_;
1587 EMIT(0xFF); 1587 EMIT(0xFF);
1588 emit_operand(edx, adr); 1588 emit_operand(edx, adr);
1589 } 1589 }
1590 1590
1591 1591
1592 void Assembler::call(Handle<Code> code, RelocInfo::Mode rmode) { 1592 void Assembler::call(Handle<Code> code,
1593 RelocInfo::Mode rmode,
1594 unsigned ast_id) {
1593 positions_recorder()->WriteRecordedPositions(); 1595 positions_recorder()->WriteRecordedPositions();
1594 EnsureSpace ensure_space(this); 1596 EnsureSpace ensure_space(this);
1595 last_pc_ = pc_; 1597 last_pc_ = pc_;
1596 ASSERT(RelocInfo::IsCodeTarget(rmode)); 1598 ASSERT(RelocInfo::IsCodeTarget(rmode));
1597 EMIT(0xE8); 1599 EMIT(0xE8);
1598 emit(reinterpret_cast<intptr_t>(code.location()), rmode); 1600 emit(reinterpret_cast<intptr_t>(code.location()), rmode, ast_id);
1599 } 1601 }
1600 1602
1601 1603
1602 void Assembler::jmp(Label* L) { 1604 void Assembler::jmp(Label* L) {
1603 EnsureSpace ensure_space(this); 1605 EnsureSpace ensure_space(this);
1604 last_pc_ = pc_; 1606 last_pc_ = pc_;
1605 if (L->is_bound()) { 1607 if (L->is_bound()) {
1606 const int short_size = 2; 1608 const int short_size = 2;
1607 const int long_size = 5; 1609 const int long_size = 5;
1608 int offs = L->pos() - pc_offset(); 1610 int offs = L->pos() - pc_offset();
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
2837 fprintf(coverage_log, "%s\n", file_line); 2839 fprintf(coverage_log, "%s\n", file_line);
2838 fflush(coverage_log); 2840 fflush(coverage_log);
2839 } 2841 }
2840 } 2842 }
2841 2843
2842 #endif 2844 #endif
2843 2845
2844 } } // namespace v8::internal 2846 } } // namespace v8::internal
2845 2847
2846 #endif // V8_TARGET_ARCH_IA32 2848 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698