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

Side by Side Diff: src/heap.h

Issue 148573005: A64: Synchronize with r16249. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/handles.cc ('k') | 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 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 1483
1484 // Write barrier support for address[start : start + len[ = o. 1484 // Write barrier support for address[start : start + len[ = o.
1485 INLINE(void RecordWrites(Address address, int start, int len)); 1485 INLINE(void RecordWrites(Address address, int start, int len));
1486 1486
1487 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT }; 1487 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT };
1488 inline HeapState gc_state() { return gc_state_; } 1488 inline HeapState gc_state() { return gc_state_; }
1489 1489
1490 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } 1490 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; }
1491 1491
1492 #ifdef DEBUG 1492 #ifdef DEBUG
1493 void set_allocation_timeout(int timeout) {
1494 allocation_timeout_ = timeout;
1495 }
1496
1493 bool disallow_allocation_failure() { 1497 bool disallow_allocation_failure() {
1494 return disallow_allocation_failure_; 1498 return disallow_allocation_failure_;
1495 } 1499 }
1496 1500
1497 void TracePathToObjectFrom(Object* target, Object* root); 1501 void TracePathToObjectFrom(Object* target, Object* root);
1498 void TracePathToObject(Object* target); 1502 void TracePathToObject(Object* target);
1499 void TracePathToGlobal(); 1503 void TracePathToGlobal();
1500 #endif 1504 #endif
1501 1505
1502 // Callback function passed to Heap::Iterate etc. Copies an object if 1506 // Callback function passed to Heap::Iterate etc. Copies an object if
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 1612
1609 STATIC_CHECK(kUndefinedValueRootIndex == Internals::kUndefinedValueRootIndex); 1613 STATIC_CHECK(kUndefinedValueRootIndex == Internals::kUndefinedValueRootIndex);
1610 STATIC_CHECK(kNullValueRootIndex == Internals::kNullValueRootIndex); 1614 STATIC_CHECK(kNullValueRootIndex == Internals::kNullValueRootIndex);
1611 STATIC_CHECK(kTrueValueRootIndex == Internals::kTrueValueRootIndex); 1615 STATIC_CHECK(kTrueValueRootIndex == Internals::kTrueValueRootIndex);
1612 STATIC_CHECK(kFalseValueRootIndex == Internals::kFalseValueRootIndex); 1616 STATIC_CHECK(kFalseValueRootIndex == Internals::kFalseValueRootIndex);
1613 STATIC_CHECK(kempty_stringRootIndex == Internals::kEmptyStringRootIndex); 1617 STATIC_CHECK(kempty_stringRootIndex == Internals::kEmptyStringRootIndex);
1614 1618
1615 // Generated code can embed direct references to non-writable roots if 1619 // Generated code can embed direct references to non-writable roots if
1616 // they are in new space. 1620 // they are in new space.
1617 static bool RootCanBeWrittenAfterInitialization(RootListIndex root_index); 1621 static bool RootCanBeWrittenAfterInitialization(RootListIndex root_index);
1622 // Generated code can treat direct references to this root as constant.
1623 bool RootCanBeTreatedAsConstant(RootListIndex root_index);
1618 1624
1619 MUST_USE_RESULT MaybeObject* NumberToString( 1625 MUST_USE_RESULT MaybeObject* NumberToString(
1620 Object* number, bool check_number_string_cache = true, 1626 Object* number, bool check_number_string_cache = true,
1621 PretenureFlag pretenure = NOT_TENURED); 1627 PretenureFlag pretenure = NOT_TENURED);
1622 MUST_USE_RESULT MaybeObject* Uint32ToString( 1628 MUST_USE_RESULT MaybeObject* Uint32ToString(
1623 uint32_t value, bool check_number_string_cache = true); 1629 uint32_t value, bool check_number_string_cache = true);
1624 1630
1625 Map* MapForExternalArrayType(ExternalArrayType array_type); 1631 Map* MapForExternalArrayType(ExternalArrayType array_type);
1626 RootListIndex RootIndexForExternalArrayType( 1632 RootListIndex RootIndexForExternalArrayType(
1627 ExternalArrayType array_type); 1633 ExternalArrayType array_type);
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after
3038 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3044 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3039 3045
3040 private: 3046 private:
3041 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3047 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3042 }; 3048 };
3043 #endif // DEBUG 3049 #endif // DEBUG
3044 3050
3045 } } // namespace v8::internal 3051 } } // namespace v8::internal
3046 3052
3047 #endif // V8_HEAP_H_ 3053 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698