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

Side by Side Diff: src/isolate.h

Issue 7374002: Refactor allocation policies. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/ia32/lithium-ia32.cc ('k') | src/isolate.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 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 /* SerializerDeserializer state. */ \ 306 /* SerializerDeserializer state. */ \
307 V(Object*, serialize_partial_snapshot_cache, kPartialSnapshotCacheCapacity) \ 307 V(Object*, serialize_partial_snapshot_cache, kPartialSnapshotCacheCapacity) \
308 V(int, jsregexp_static_offsets_vector, kJSRegexpStaticOffsetsVectorSize) \ 308 V(int, jsregexp_static_offsets_vector, kJSRegexpStaticOffsetsVectorSize) \
309 V(int, bad_char_shift_table, kUC16AlphabetSize) \ 309 V(int, bad_char_shift_table, kUC16AlphabetSize) \
310 V(int, good_suffix_shift_table, (kBMMaxShift + 1)) \ 310 V(int, good_suffix_shift_table, (kBMMaxShift + 1)) \
311 V(int, suffix_table, (kBMMaxShift + 1)) \ 311 V(int, suffix_table, (kBMMaxShift + 1)) \
312 V(uint32_t, random_seed, 2) \ 312 V(uint32_t, random_seed, 2) \
313 V(uint32_t, private_random_seed, 2) \ 313 V(uint32_t, private_random_seed, 2) \
314 ISOLATE_INIT_DEBUG_ARRAY_LIST(V) 314 ISOLATE_INIT_DEBUG_ARRAY_LIST(V)
315 315
316 typedef List<HeapObject*, PreallocatedStorage> DebugObjectCache; 316 typedef List<HeapObject*, PreallocatedStorageAllocator> DebugObjectCache;
317 317
318 #define ISOLATE_INIT_LIST(V) \ 318 #define ISOLATE_INIT_LIST(V) \
319 /* AssertNoZoneAllocation state. */ \ 319 /* AssertNoZoneAllocation state. */ \
320 V(bool, zone_allow_allocation, true) \ 320 V(bool, zone_allow_allocation, true) \
321 /* SerializerDeserializer state. */ \ 321 /* SerializerDeserializer state. */ \
322 V(int, serialize_partial_snapshot_cache_length, 0) \ 322 V(int, serialize_partial_snapshot_cache_length, 0) \
323 /* Assembler state. */ \ 323 /* Assembler state. */ \
324 /* A previously allocated buffer of kMinimalBufferSize bytes, or NULL. */ \ 324 /* A previously allocated buffer of kMinimalBufferSize bytes, or NULL. */ \
325 V(byte*, assembler_spare_buffer, NULL) \ 325 V(byte*, assembler_spare_buffer, NULL) \
326 V(FatalErrorCallback, exception_behavior, NULL) \ 326 V(FatalErrorCallback, exception_behavior, NULL) \
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 1321
1322 // Mark the global context with out of memory. 1322 // Mark the global context with out of memory.
1323 inline void Context::mark_out_of_memory() { 1323 inline void Context::mark_out_of_memory() {
1324 global_context()->set_out_of_memory(HEAP->true_value()); 1324 global_context()->set_out_of_memory(HEAP->true_value());
1325 } 1325 }
1326 1326
1327 1327
1328 } } // namespace v8::internal 1328 } } // namespace v8::internal
1329 1329
1330 #endif // V8_ISOLATE_H_ 1330 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698