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

Side by Side Diff: src/heap.h

Issue 10053009: Fix compile errors on 64 bit platforms. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 | « no previous file | src/heap.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 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 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 1319
1320 // Attempt to find the number in a small cache. If we finds it, return 1320 // Attempt to find the number in a small cache. If we finds it, return
1321 // the string representation of the number. Otherwise return undefined. 1321 // the string representation of the number. Otherwise return undefined.
1322 Object* GetNumberStringCache(Object* number); 1322 Object* GetNumberStringCache(Object* number);
1323 1323
1324 // Update the cache with a new number-string pair. 1324 // Update the cache with a new number-string pair.
1325 void SetNumberStringCache(Object* number, String* str); 1325 void SetNumberStringCache(Object* number, String* str);
1326 1326
1327 // Adjusts the amount of registered external memory. 1327 // Adjusts the amount of registered external memory.
1328 // Returns the adjusted value. 1328 // Returns the adjusted value.
1329 inline int AdjustAmountOfExternalAllocatedMemory(int change_in_bytes); 1329 inline intptr_t AdjustAmountOfExternalAllocatedMemory(
1330 intptr_t change_in_bytes);
1330 1331
1331 // Allocate uninitialized fixed array. 1332 // Allocate uninitialized fixed array.
1332 MUST_USE_RESULT MaybeObject* AllocateRawFixedArray(int length); 1333 MUST_USE_RESULT MaybeObject* AllocateRawFixedArray(int length);
1333 MUST_USE_RESULT MaybeObject* AllocateRawFixedArray(int length, 1334 MUST_USE_RESULT MaybeObject* AllocateRawFixedArray(int length,
1334 PretenureFlag pretenure); 1335 PretenureFlag pretenure);
1335 1336
1336 inline intptr_t PromotedTotalSize() { 1337 inline intptr_t PromotedTotalSize() {
1337 return PromotedSpaceSize() + PromotedExternalMemorySize(); 1338 return PromotedSpaceSize() + PromotedExternalMemorySize();
1338 } 1339 }
1339 1340
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 OldSpace* old_pointer_space_; 1640 OldSpace* old_pointer_space_;
1640 OldSpace* old_data_space_; 1641 OldSpace* old_data_space_;
1641 OldSpace* code_space_; 1642 OldSpace* code_space_;
1642 MapSpace* map_space_; 1643 MapSpace* map_space_;
1643 CellSpace* cell_space_; 1644 CellSpace* cell_space_;
1644 LargeObjectSpace* lo_space_; 1645 LargeObjectSpace* lo_space_;
1645 HeapState gc_state_; 1646 HeapState gc_state_;
1646 int gc_post_processing_depth_; 1647 int gc_post_processing_depth_;
1647 1648
1648 // Returns the amount of external memory registered since last global gc. 1649 // Returns the amount of external memory registered since last global gc.
1649 int PromotedExternalMemorySize(); 1650 intptr_t PromotedExternalMemorySize();
1650 1651
1651 int ms_count_; // how many mark-sweep collections happened 1652 int ms_count_; // how many mark-sweep collections happened
1652 unsigned int gc_count_; // how many gc happened 1653 unsigned int gc_count_; // how many gc happened
1653 1654
1654 // For post mortem debugging. 1655 // For post mortem debugging.
1655 static const int kRememberedUnmappedPages = 128; 1656 static const int kRememberedUnmappedPages = 128;
1656 int remembered_unmapped_pages_index_; 1657 int remembered_unmapped_pages_index_;
1657 Address remembered_unmapped_pages_[kRememberedUnmappedPages]; 1658 Address remembered_unmapped_pages_[kRememberedUnmappedPages];
1658 1659
1659 // Total length of the strings we failed to flatten since the last GC. 1660 // Total length of the strings we failed to flatten since the last GC.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1707 1708
1708 // Limit on the amount of externally allocated memory allowed 1709 // Limit on the amount of externally allocated memory allowed
1709 // between global GCs. If reached a global GC is forced. 1710 // between global GCs. If reached a global GC is forced.
1710 intptr_t external_allocation_limit_; 1711 intptr_t external_allocation_limit_;
1711 1712
1712 // The amount of external memory registered through the API kept alive 1713 // The amount of external memory registered through the API kept alive
1713 // by global handles 1714 // by global handles
1714 intptr_t amount_of_external_allocated_memory_; 1715 intptr_t amount_of_external_allocated_memory_;
1715 1716
1716 // Caches the amount of external memory registered at the last global gc. 1717 // Caches the amount of external memory registered at the last global gc.
1717 int amount_of_external_allocated_memory_at_last_global_gc_; 1718 intptr_t amount_of_external_allocated_memory_at_last_global_gc_;
1718 1719
1719 // Indicates that an allocation has failed in the old generation since the 1720 // Indicates that an allocation has failed in the old generation since the
1720 // last GC. 1721 // last GC.
1721 int old_gen_exhausted_; 1722 int old_gen_exhausted_;
1722 1723
1723 Object* roots_[kRootListLength]; 1724 Object* roots_[kRootListLength];
1724 1725
1725 Object* global_contexts_list_; 1726 Object* global_contexts_list_;
1726 1727
1727 StoreBufferRebuilder store_buffer_rebuilder_; 1728 StoreBufferRebuilder store_buffer_rebuilder_;
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
2706 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2707 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2707 2708
2708 private: 2709 private:
2709 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2710 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2710 }; 2711 };
2711 #endif // DEBUG || LIVE_OBJECT_LIST 2712 #endif // DEBUG || LIVE_OBJECT_LIST
2712 2713
2713 } } // namespace v8::internal 2714 } } // namespace v8::internal
2714 2715
2715 #endif // V8_HEAP_H_ 2716 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698