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

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

Issue 6902066: Add AST ID to RelocInfo for type-recording ICs. Changes 7644 and 7632, combined. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix an issue where a switch statement label ID could be used for both a load IC and a compare IC. Created 9 years, 7 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 2144 matching lines...) Expand 10 before | Expand all | Expand 10 after
3032 // specially coded on x64 means that it is a relative 32 bit address, as used 3034 // specially coded on x64 means that it is a relative 32 bit address, as used
3033 // by branch instructions. 3035 // by branch instructions.
3034 return (1 << rmode_) & kApplyMask; 3036 return (1 << rmode_) & kApplyMask;
3035 } 3037 }
3036 3038
3037 3039
3038 3040
3039 } } // namespace v8::internal 3041 } } // namespace v8::internal
3040 3042
3041 #endif // V8_TARGET_ARCH_X64 3043 #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