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

Side by Side Diff: src/heap.h

Issue 10116030: Revert r11376 and r11379 due to compile failures on Windows. (Closed) Base URL: https://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 | « include/v8.h ('k') | src/isolate.h » ('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 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 1411
1412 #define SYMBOL_INDEX_DECLARATION(name, str) k##name##RootIndex, 1412 #define SYMBOL_INDEX_DECLARATION(name, str) k##name##RootIndex,
1413 SYMBOL_LIST(SYMBOL_INDEX_DECLARATION) 1413 SYMBOL_LIST(SYMBOL_INDEX_DECLARATION)
1414 #undef SYMBOL_DECLARATION 1414 #undef SYMBOL_DECLARATION
1415 1415
1416 kSymbolTableRootIndex, 1416 kSymbolTableRootIndex,
1417 kStrongRootListLength = kSymbolTableRootIndex, 1417 kStrongRootListLength = kSymbolTableRootIndex,
1418 kRootListLength 1418 kRootListLength
1419 }; 1419 };
1420 1420
1421 STATIC_CHECK(kUndefinedValueRootIndex == Internals::kUndefinedValueRootIndex);
1422 STATIC_CHECK(kNullValueRootIndex == Internals::kNullValueRootIndex);
1423 STATIC_CHECK(kTrueValueRootIndex == Internals::kTrueValueRootIndex);
1424 STATIC_CHECK(kFalseValueRootIndex == Internals::kFalseValueRootIndex);
1425
1426 MUST_USE_RESULT MaybeObject* NumberToString( 1421 MUST_USE_RESULT MaybeObject* NumberToString(
1427 Object* number, bool check_number_string_cache = true); 1422 Object* number, bool check_number_string_cache = true);
1428 MUST_USE_RESULT MaybeObject* Uint32ToString( 1423 MUST_USE_RESULT MaybeObject* Uint32ToString(
1429 uint32_t value, bool check_number_string_cache = true); 1424 uint32_t value, bool check_number_string_cache = true);
1430 1425
1431 Map* MapForExternalArrayType(ExternalArrayType array_type); 1426 Map* MapForExternalArrayType(ExternalArrayType array_type);
1432 RootListIndex RootIndexForExternalArrayType( 1427 RootListIndex RootIndexForExternalArrayType(
1433 ExternalArrayType array_type); 1428 ExternalArrayType array_type);
1434 1429
1435 void RecordStats(HeapStats* stats, bool take_snapshot = false); 1430 void RecordStats(HeapStats* stats, bool take_snapshot = false);
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1610 ++global_ic_age_; 1605 ++global_ic_age_;
1611 } 1606 }
1612 1607
1613 private: 1608 private:
1614 Heap(); 1609 Heap();
1615 1610
1616 // This can be calculated directly from a pointer to the heap; however, it is 1611 // This can be calculated directly from a pointer to the heap; however, it is
1617 // more expedient to get at the isolate directly from within Heap methods. 1612 // more expedient to get at the isolate directly from within Heap methods.
1618 Isolate* isolate_; 1613 Isolate* isolate_;
1619 1614
1620 Object* roots_[kRootListLength];
1621
1622 intptr_t code_range_size_; 1615 intptr_t code_range_size_;
1623 int reserved_semispace_size_; 1616 int reserved_semispace_size_;
1624 int max_semispace_size_; 1617 int max_semispace_size_;
1625 int initial_semispace_size_; 1618 int initial_semispace_size_;
1626 intptr_t max_old_generation_size_; 1619 intptr_t max_old_generation_size_;
1627 intptr_t max_executable_size_; 1620 intptr_t max_executable_size_;
1628 1621
1629 // For keeping track of how much data has survived 1622 // For keeping track of how much data has survived
1630 // scavenge since last new space expansion. 1623 // scavenge since last new space expansion.
1631 int survived_since_last_expansion_; 1624 int survived_since_last_expansion_;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1727 // by global handles 1720 // by global handles
1728 intptr_t amount_of_external_allocated_memory_; 1721 intptr_t amount_of_external_allocated_memory_;
1729 1722
1730 // Caches the amount of external memory registered at the last global gc. 1723 // Caches the amount of external memory registered at the last global gc.
1731 intptr_t amount_of_external_allocated_memory_at_last_global_gc_; 1724 intptr_t amount_of_external_allocated_memory_at_last_global_gc_;
1732 1725
1733 // Indicates that an allocation has failed in the old generation since the 1726 // Indicates that an allocation has failed in the old generation since the
1734 // last GC. 1727 // last GC.
1735 int old_gen_exhausted_; 1728 int old_gen_exhausted_;
1736 1729
1730 Object* roots_[kRootListLength];
1731
1737 Object* global_contexts_list_; 1732 Object* global_contexts_list_;
1738 1733
1739 StoreBufferRebuilder store_buffer_rebuilder_; 1734 StoreBufferRebuilder store_buffer_rebuilder_;
1740 1735
1741 struct StringTypeTable { 1736 struct StringTypeTable {
1742 InstanceType type; 1737 InstanceType type;
1743 int size; 1738 int size;
1744 RootListIndex index; 1739 RootListIndex index;
1745 }; 1740 };
1746 1741
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
2718 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2713 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2719 2714
2720 private: 2715 private:
2721 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2716 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2722 }; 2717 };
2723 #endif // DEBUG || LIVE_OBJECT_LIST 2718 #endif // DEBUG || LIVE_OBJECT_LIST
2724 2719
2725 } } // namespace v8::internal 2720 } } // namespace v8::internal
2726 2721
2727 #endif // V8_HEAP_H_ 2722 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698