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

Side by Side Diff: src/v8globals.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: Addresss comments 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // +==================+========+==================+ 231 // +==================+========+==================+
232 // ^ 232 // ^
233 // | 233 // |
234 // buffer 234 // buffer
235 235
236 struct CodeDesc { 236 struct CodeDesc {
237 byte* buffer; 237 byte* buffer;
238 int buffer_size; 238 int buffer_size;
239 int instr_size; 239 int instr_size;
240 int reloc_size; 240 int reloc_size;
241 int constant_pool_64bit_count;
242 int constant_pool_code_ptr_count;
243 int constant_pool_heap_ptr_count;
244 int constant_pool_32bit_count;
241 Assembler* origin; 245 Assembler* origin;
246
247 inline bool has_empty_constant_pool() const {
248 return constant_pool_64bit_count == 0 &&
249 constant_pool_code_ptr_count == 0 &&
250 constant_pool_heap_ptr_count == 0 &&
251 constant_pool_32bit_count == 0;
252 }
242 }; 253 };
243 254
244 255
245 // Callback function used for iterating objects in heap spaces, 256 // Callback function used for iterating objects in heap spaces,
246 // for example, scanning heap objects. 257 // for example, scanning heap objects.
247 typedef int (*HeapObjectCallback)(HeapObject* obj); 258 typedef int (*HeapObjectCallback)(HeapObject* obj);
248 259
249 260
250 // Callback function used for checking constraints when copying/relocating 261 // Callback function used for checking constraints when copying/relocating
251 // objects. Returns true if an object can be copied/relocated from its 262 // objects. Returns true if an object can be copied/relocated from its
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 569
559 570
560 enum MinusZeroMode { 571 enum MinusZeroMode {
561 TREAT_MINUS_ZERO_AS_ZERO, 572 TREAT_MINUS_ZERO_AS_ZERO,
562 FAIL_ON_MINUS_ZERO 573 FAIL_ON_MINUS_ZERO
563 }; 574 };
564 575
565 } } // namespace v8::internal 576 } } // namespace v8::internal
566 577
567 #endif // V8_V8GLOBALS_H_ 578 #endif // V8_V8GLOBALS_H_
OLDNEW
« src/heap.cc ('K') | « src/objects.h ('k') | src/x64/assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698