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

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

Issue 191233003: Add out-of-line constant pool support to Arm. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix other Arches. Created 6 years, 9 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/heap.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 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 int relocation_writer_size() { 1182 int relocation_writer_size() {
1183 return (buffer_ + buffer_size_) - reloc_info_writer.pos(); 1183 return (buffer_ + buffer_size_) - reloc_info_writer.pos();
1184 } 1184 }
1185 1185
1186 // Avoid overflows for displacements etc. 1186 // Avoid overflows for displacements etc.
1187 static const int kMaximalBufferSize = 512*MB; 1187 static const int kMaximalBufferSize = 512*MB;
1188 1188
1189 byte byte_at(int pos) { return buffer_[pos]; } 1189 byte byte_at(int pos) { return buffer_[pos]; }
1190 void set_byte_at(int pos, byte value) { buffer_[pos] = value; } 1190 void set_byte_at(int pos, byte value) { buffer_[pos] = value; }
1191 1191
1192 // Allocate a constant pool of the correct size for the generated code.
1193 MaybeObject* AllocateConstantPool(Heap* heap);
1194
1195 // Generate the constant pool for the generated code.
1196 void PopulateConstantPool(ConstantPoolArray* constant_pool);
1197
1192 protected: 1198 protected:
1193 void emit_sse_operand(XMMRegister reg, const Operand& adr); 1199 void emit_sse_operand(XMMRegister reg, const Operand& adr);
1194 void emit_sse_operand(XMMRegister dst, XMMRegister src); 1200 void emit_sse_operand(XMMRegister dst, XMMRegister src);
1195 void emit_sse_operand(Register dst, XMMRegister src); 1201 void emit_sse_operand(Register dst, XMMRegister src);
1196 void emit_sse_operand(XMMRegister dst, Register src); 1202 void emit_sse_operand(XMMRegister dst, Register src);
1197 1203
1198 byte* addr_at(int pos) { return buffer_ + pos; } 1204 byte* addr_at(int pos) { return buffer_ + pos; }
1199 1205
1200 1206
1201 private: 1207 private:
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 private: 1288 private:
1283 Assembler* assembler_; 1289 Assembler* assembler_;
1284 #ifdef DEBUG 1290 #ifdef DEBUG
1285 int space_before_; 1291 int space_before_;
1286 #endif 1292 #endif
1287 }; 1293 };
1288 1294
1289 } } // namespace v8::internal 1295 } } // namespace v8::internal
1290 1296
1291 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1297 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698