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

Side by Side Diff: src/x64/assembler-x64.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/x64/assembler-x64.h ('k') | src/x64/assembler-x64-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 L->link_to(pc_offset() - sizeof(int32_t)); 862 L->link_to(pc_offset() - sizeof(int32_t));
863 } else { 863 } else {
864 ASSERT(L->is_unused()); 864 ASSERT(L->is_unused());
865 int32_t current = pc_offset(); 865 int32_t current = pc_offset();
866 emitl(current); 866 emitl(current);
867 L->link_to(current); 867 L->link_to(current);
868 } 868 }
869 } 869 }
870 870
871 871
872 void Assembler::call(Handle<Code> target, RelocInfo::Mode rmode) { 872 void Assembler::call(Handle<Code> target,
873 RelocInfo::Mode rmode,
874 unsigned ast_id) {
873 positions_recorder()->WriteRecordedPositions(); 875 positions_recorder()->WriteRecordedPositions();
874 EnsureSpace ensure_space(this); 876 EnsureSpace ensure_space(this);
875 // 1110 1000 #32-bit disp. 877 // 1110 1000 #32-bit disp.
876 emit(0xE8); 878 emit(0xE8);
877 emit_code_target(target, rmode); 879 emit_code_target(target, rmode, ast_id);
878 } 880 }
879 881
880 882
881 void Assembler::call(Register adr) { 883 void Assembler::call(Register adr) {
882 positions_recorder()->WriteRecordedPositions(); 884 positions_recorder()->WriteRecordedPositions();
883 EnsureSpace ensure_space(this); 885 EnsureSpace ensure_space(this);
884 // Opcode: FF /2 r64. 886 // Opcode: FF /2 r64.
885 emit_optional_rex_32(adr); 887 emit_optional_rex_32(adr);
886 emit(0xFF); 888 emit(0xFF);
887 emit_modrm(0x2, adr); 889 emit_modrm(0x2, adr);
(...skipping 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after
2969 // specially coded on x64 means that it is a relative 32 bit address, as used 2971 // specially coded on x64 means that it is a relative 32 bit address, as used
2970 // by branch instructions. 2972 // by branch instructions.
2971 return (1 << rmode_) & kApplyMask; 2973 return (1 << rmode_) & kApplyMask;
2972 } 2974 }
2973 2975
2974 2976
2975 2977
2976 } } // namespace v8::internal 2978 } } // namespace v8::internal
2977 2979
2978 #endif // V8_TARGET_ARCH_X64 2980 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/assembler-x64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698