OLD | NEW |
---|---|
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 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1444 kStrongRootListLength = kSymbolTableRootIndex, | 1444 kStrongRootListLength = kSymbolTableRootIndex, |
1445 kRootListLength | 1445 kRootListLength |
1446 }; | 1446 }; |
1447 | 1447 |
1448 STATIC_CHECK(kUndefinedValueRootIndex == Internals::kUndefinedValueRootIndex); | 1448 STATIC_CHECK(kUndefinedValueRootIndex == Internals::kUndefinedValueRootIndex); |
1449 STATIC_CHECK(kNullValueRootIndex == Internals::kNullValueRootIndex); | 1449 STATIC_CHECK(kNullValueRootIndex == Internals::kNullValueRootIndex); |
1450 STATIC_CHECK(kTrueValueRootIndex == Internals::kTrueValueRootIndex); | 1450 STATIC_CHECK(kTrueValueRootIndex == Internals::kTrueValueRootIndex); |
1451 STATIC_CHECK(kFalseValueRootIndex == Internals::kFalseValueRootIndex); | 1451 STATIC_CHECK(kFalseValueRootIndex == Internals::kFalseValueRootIndex); |
1452 STATIC_CHECK(kempty_symbolRootIndex == Internals::kEmptySymbolRootIndex); | 1452 STATIC_CHECK(kempty_symbolRootIndex == Internals::kEmptySymbolRootIndex); |
1453 | 1453 |
1454 // Generated code can embed direct references to non-writable roots if | |
1455 // they are in new space. | |
danno
2012/11/07 21:51:36
I don't think this comment is correct. The comment
| |
1456 static bool RootCanBeWrittenAfterInitialization(RootListIndex root_index); | |
1457 | |
1454 MUST_USE_RESULT MaybeObject* NumberToString( | 1458 MUST_USE_RESULT MaybeObject* NumberToString( |
1455 Object* number, bool check_number_string_cache = true); | 1459 Object* number, bool check_number_string_cache = true); |
1456 MUST_USE_RESULT MaybeObject* Uint32ToString( | 1460 MUST_USE_RESULT MaybeObject* Uint32ToString( |
1457 uint32_t value, bool check_number_string_cache = true); | 1461 uint32_t value, bool check_number_string_cache = true); |
1458 | 1462 |
1459 Map* MapForExternalArrayType(ExternalArrayType array_type); | 1463 Map* MapForExternalArrayType(ExternalArrayType array_type); |
1460 RootListIndex RootIndexForExternalArrayType( | 1464 RootListIndex RootIndexForExternalArrayType( |
1461 ExternalArrayType array_type); | 1465 ExternalArrayType array_type); |
1462 | 1466 |
1463 void RecordStats(HeapStats* stats, bool take_snapshot = false); | 1467 void RecordStats(HeapStats* stats, bool take_snapshot = false); |
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2818 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2822 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2819 | 2823 |
2820 private: | 2824 private: |
2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2825 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2822 }; | 2826 }; |
2823 #endif // DEBUG || LIVE_OBJECT_LIST | 2827 #endif // DEBUG || LIVE_OBJECT_LIST |
2824 | 2828 |
2825 } } // namespace v8::internal | 2829 } } // namespace v8::internal |
2826 | 2830 |
2827 #endif // V8_HEAP_H_ | 2831 #endif // V8_HEAP_H_ |
OLD | NEW |