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

Side by Side Diff: src/heap.h

Issue 385004: Remove sliced string string type... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 V(Map, long_symbol_map, LongSymbolMap) \ 70 V(Map, long_symbol_map, LongSymbolMap) \
71 V(Map, short_ascii_symbol_map, ShortAsciiSymbolMap) \ 71 V(Map, short_ascii_symbol_map, ShortAsciiSymbolMap) \
72 V(Map, medium_ascii_symbol_map, MediumAsciiSymbolMap) \ 72 V(Map, medium_ascii_symbol_map, MediumAsciiSymbolMap) \
73 V(Map, long_ascii_symbol_map, LongAsciiSymbolMap) \ 73 V(Map, long_ascii_symbol_map, LongAsciiSymbolMap) \
74 V(Map, short_cons_symbol_map, ShortConsSymbolMap) \ 74 V(Map, short_cons_symbol_map, ShortConsSymbolMap) \
75 V(Map, medium_cons_symbol_map, MediumConsSymbolMap) \ 75 V(Map, medium_cons_symbol_map, MediumConsSymbolMap) \
76 V(Map, long_cons_symbol_map, LongConsSymbolMap) \ 76 V(Map, long_cons_symbol_map, LongConsSymbolMap) \
77 V(Map, short_cons_ascii_symbol_map, ShortConsAsciiSymbolMap) \ 77 V(Map, short_cons_ascii_symbol_map, ShortConsAsciiSymbolMap) \
78 V(Map, medium_cons_ascii_symbol_map, MediumConsAsciiSymbolMap) \ 78 V(Map, medium_cons_ascii_symbol_map, MediumConsAsciiSymbolMap) \
79 V(Map, long_cons_ascii_symbol_map, LongConsAsciiSymbolMap) \ 79 V(Map, long_cons_ascii_symbol_map, LongConsAsciiSymbolMap) \
80 V(Map, short_sliced_symbol_map, ShortSlicedSymbolMap) \
81 V(Map, medium_sliced_symbol_map, MediumSlicedSymbolMap) \
82 V(Map, long_sliced_symbol_map, LongSlicedSymbolMap) \
83 V(Map, short_sliced_ascii_symbol_map, ShortSlicedAsciiSymbolMap) \
84 V(Map, medium_sliced_ascii_symbol_map, MediumSlicedAsciiSymbolMap) \
85 V(Map, long_sliced_ascii_symbol_map, LongSlicedAsciiSymbolMap) \
86 V(Map, short_external_symbol_map, ShortExternalSymbolMap) \ 80 V(Map, short_external_symbol_map, ShortExternalSymbolMap) \
87 V(Map, medium_external_symbol_map, MediumExternalSymbolMap) \ 81 V(Map, medium_external_symbol_map, MediumExternalSymbolMap) \
88 V(Map, long_external_symbol_map, LongExternalSymbolMap) \ 82 V(Map, long_external_symbol_map, LongExternalSymbolMap) \
89 V(Map, short_external_ascii_symbol_map, ShortExternalAsciiSymbolMap) \ 83 V(Map, short_external_ascii_symbol_map, ShortExternalAsciiSymbolMap) \
90 V(Map, medium_external_ascii_symbol_map, MediumExternalAsciiSymbolMap) \ 84 V(Map, medium_external_ascii_symbol_map, MediumExternalAsciiSymbolMap) \
91 V(Map, long_external_ascii_symbol_map, LongExternalAsciiSymbolMap) \ 85 V(Map, long_external_ascii_symbol_map, LongExternalAsciiSymbolMap) \
92 V(Map, short_cons_string_map, ShortConsStringMap) \ 86 V(Map, short_cons_string_map, ShortConsStringMap) \
93 V(Map, medium_cons_string_map, MediumConsStringMap) \ 87 V(Map, medium_cons_string_map, MediumConsStringMap) \
94 V(Map, long_cons_string_map, LongConsStringMap) \ 88 V(Map, long_cons_string_map, LongConsStringMap) \
95 V(Map, short_cons_ascii_string_map, ShortConsAsciiStringMap) \ 89 V(Map, short_cons_ascii_string_map, ShortConsAsciiStringMap) \
96 V(Map, medium_cons_ascii_string_map, MediumConsAsciiStringMap) \ 90 V(Map, medium_cons_ascii_string_map, MediumConsAsciiStringMap) \
97 V(Map, long_cons_ascii_string_map, LongConsAsciiStringMap) \ 91 V(Map, long_cons_ascii_string_map, LongConsAsciiStringMap) \
98 V(Map, short_sliced_string_map, ShortSlicedStringMap) \
99 V(Map, medium_sliced_string_map, MediumSlicedStringMap) \
100 V(Map, long_sliced_string_map, LongSlicedStringMap) \
101 V(Map, short_sliced_ascii_string_map, ShortSlicedAsciiStringMap) \
102 V(Map, medium_sliced_ascii_string_map, MediumSlicedAsciiStringMap) \
103 V(Map, long_sliced_ascii_string_map, LongSlicedAsciiStringMap) \
104 V(Map, short_external_string_map, ShortExternalStringMap) \ 92 V(Map, short_external_string_map, ShortExternalStringMap) \
105 V(Map, medium_external_string_map, MediumExternalStringMap) \ 93 V(Map, medium_external_string_map, MediumExternalStringMap) \
106 V(Map, long_external_string_map, LongExternalStringMap) \ 94 V(Map, long_external_string_map, LongExternalStringMap) \
107 V(Map, short_external_ascii_string_map, ShortExternalAsciiStringMap) \ 95 V(Map, short_external_ascii_string_map, ShortExternalAsciiStringMap) \
108 V(Map, medium_external_ascii_string_map, MediumExternalAsciiStringMap) \ 96 V(Map, medium_external_ascii_string_map, MediumExternalAsciiStringMap) \
109 V(Map, long_external_ascii_string_map, LongExternalAsciiStringMap) \ 97 V(Map, long_external_ascii_string_map, LongExternalAsciiStringMap) \
110 V(Map, undetectable_short_string_map, UndetectableShortStringMap) \ 98 V(Map, undetectable_short_string_map, UndetectableShortStringMap) \
111 V(Map, undetectable_medium_string_map, UndetectableMediumStringMap) \ 99 V(Map, undetectable_medium_string_map, UndetectableMediumStringMap) \
112 V(Map, undetectable_long_string_map, UndetectableLongStringMap) \ 100 V(Map, undetectable_long_string_map, UndetectableLongStringMap) \
113 V(Map, undetectable_short_ascii_string_map, UndetectableShortAsciiStringMap) \ 101 V(Map, undetectable_short_ascii_string_map, UndetectableShortAsciiStringMap) \
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 // failed. 568 // failed.
581 // Please note this does not perform a garbage collection. 569 // Please note this does not perform a garbage collection.
582 static Object* AllocateSharedFunctionInfo(Object* name); 570 static Object* AllocateSharedFunctionInfo(Object* name);
583 571
584 // Allocates a new cons string object. 572 // Allocates a new cons string object.
585 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 573 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
586 // failed. 574 // failed.
587 // Please note this does not perform a garbage collection. 575 // Please note this does not perform a garbage collection.
588 static Object* AllocateConsString(String* first, String* second); 576 static Object* AllocateConsString(String* first, String* second);
589 577
590 // Allocates a new sliced string object which is a slice of an underlying
591 // string buffer stretching from the index start (inclusive) to the index
592 // end (exclusive).
593 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
594 // failed.
595 // Please note this does not perform a garbage collection.
596 static Object* AllocateSlicedString(String* buffer,
597 int start,
598 int end);
599
600 // Allocates a new sub string object which is a substring of an underlying 578 // Allocates a new sub string object which is a substring of an underlying
601 // string buffer stretching from the index start (inclusive) to the index 579 // string buffer stretching from the index start (inclusive) to the index
602 // end (exclusive). 580 // end (exclusive).
603 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 581 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
604 // failed. 582 // failed.
605 // Please note this does not perform a garbage collection. 583 // Please note this does not perform a garbage collection.
606 static Object* AllocateSubString(String* buffer, 584 static Object* AllocateSubString(String* buffer,
607 int start, 585 int start,
608 int end); 586 int end);
609 587
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 } 1617 }
1640 static TranscendentalCache* caches_[kNumberOfCaches]; 1618 static TranscendentalCache* caches_[kNumberOfCaches];
1641 Element elements_[kCacheSize]; 1619 Element elements_[kCacheSize];
1642 Type type_; 1620 Type type_;
1643 }; 1621 };
1644 1622
1645 1623
1646 } } // namespace v8::internal 1624 } } // namespace v8::internal
1647 1625
1648 #endif // V8_HEAP_H_ 1626 #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