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

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

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/full-codegen.cc ('k') | src/ia32/assembler-ia32.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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 // Note: The same Label can be used for forward and backward branches 841 // Note: The same Label can be used for forward and backward branches
842 // but it may be bound only once. 842 // but it may be bound only once.
843 843
844 void bind(Label* L); // binds an unbound label L to the current code position 844 void bind(Label* L); // binds an unbound label L to the current code position
845 void bind(NearLabel* L); 845 void bind(NearLabel* L);
846 846
847 // Calls 847 // Calls
848 void call(Label* L); 848 void call(Label* L);
849 void call(byte* entry, RelocInfo::Mode rmode); 849 void call(byte* entry, RelocInfo::Mode rmode);
850 void call(const Operand& adr); 850 void call(const Operand& adr);
851 void call(Handle<Code> code, RelocInfo::Mode rmode); 851 void call(Handle<Code> code,
852 RelocInfo::Mode rmode,
853 unsigned ast_id = kNoASTId);
852 854
853 // Jumps 855 // Jumps
854 void jmp(Label* L); // unconditional jump to L 856 void jmp(Label* L); // unconditional jump to L
855 void jmp(byte* entry, RelocInfo::Mode rmode); 857 void jmp(byte* entry, RelocInfo::Mode rmode);
856 void jmp(const Operand& adr); 858 void jmp(const Operand& adr);
857 void jmp(Handle<Code> code, RelocInfo::Mode rmode); 859 void jmp(Handle<Code> code, RelocInfo::Mode rmode);
858 860
859 // Short jump 861 // Short jump
860 void jmp(NearLabel* L); 862 void jmp(NearLabel* L);
861 863
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 return *reinterpret_cast<uint32_t*>(addr_at(pos)); 1065 return *reinterpret_cast<uint32_t*>(addr_at(pos));
1064 } 1066 }
1065 void long_at_put(int pos, uint32_t x) { 1067 void long_at_put(int pos, uint32_t x) {
1066 *reinterpret_cast<uint32_t*>(addr_at(pos)) = x; 1068 *reinterpret_cast<uint32_t*>(addr_at(pos)) = x;
1067 } 1069 }
1068 1070
1069 // code emission 1071 // code emission
1070 void GrowBuffer(); 1072 void GrowBuffer();
1071 inline void emit(uint32_t x); 1073 inline void emit(uint32_t x);
1072 inline void emit(Handle<Object> handle); 1074 inline void emit(Handle<Object> handle);
1073 inline void emit(uint32_t x, RelocInfo::Mode rmode); 1075 inline void emit(uint32_t x,
1076 RelocInfo::Mode rmode,
1077 unsigned ast_id = kNoASTId);
1074 inline void emit(const Immediate& x); 1078 inline void emit(const Immediate& x);
1075 inline void emit_w(const Immediate& x); 1079 inline void emit_w(const Immediate& x);
1076 1080
1077 // Emit the code-object-relative offset of the label's position 1081 // Emit the code-object-relative offset of the label's position
1078 inline void emit_code_relative_offset(Label* label); 1082 inline void emit_code_relative_offset(Label* label);
1079 1083
1080 // instruction generation 1084 // instruction generation
1081 void emit_arith_b(int op1, int op2, Register dst, int imm8); 1085 void emit_arith_b(int op1, int op2, Register dst, int imm8);
1082 1086
1083 // Emit a basic arithmetic instruction (i.e. first byte of the family is 0x81) 1087 // Emit a basic arithmetic instruction (i.e. first byte of the family is 0x81)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 private: 1154 private:
1151 Assembler* assembler_; 1155 Assembler* assembler_;
1152 #ifdef DEBUG 1156 #ifdef DEBUG
1153 int space_before_; 1157 int space_before_;
1154 #endif 1158 #endif
1155 }; 1159 };
1156 1160
1157 } } // namespace v8::internal 1161 } } // namespace v8::internal
1158 1162
1159 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1163 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698