OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 2041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2052 | 2052 |
2053 static Address cache_array_address() { | 2053 static Address cache_array_address() { |
2054 // Used to create an external reference. | 2054 // Used to create an external reference. |
2055 return reinterpret_cast<Address>(caches_); | 2055 return reinterpret_cast<Address>(caches_); |
2056 } | 2056 } |
2057 | 2057 |
2058 // Allow access to the caches_ array as an ExternalReference. | 2058 // Allow access to the caches_ array as an ExternalReference. |
2059 friend class ExternalReference; | 2059 friend class ExternalReference; |
2060 // Inline implementation of the cache. | 2060 // Inline implementation of the cache. |
2061 friend class TranscendentalCacheStub; | 2061 friend class TranscendentalCacheStub; |
2062 friend class TranscendentalCacheSSE2Stub; | |
2063 | 2062 |
2064 static TranscendentalCache* caches_[kNumberOfCaches]; | 2063 static TranscendentalCache* caches_[kNumberOfCaches]; |
2065 Element elements_[kCacheSize]; | 2064 Element elements_[kCacheSize]; |
2066 Type type_; | 2065 Type type_; |
2067 }; | 2066 }; |
2068 | 2067 |
2069 | 2068 |
2070 // External strings table is a place where all external strings are | 2069 // External strings table is a place where all external strings are |
2071 // registered. We need to keep track of such strings to properly | 2070 // registered. We need to keep track of such strings to properly |
2072 // finalize them. | 2071 // finalize them. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2109 // Return whether this object should be retained. If NULL is returned the | 2108 // Return whether this object should be retained. If NULL is returned the |
2110 // object has no references. Otherwise the address of the retained object | 2109 // object has no references. Otherwise the address of the retained object |
2111 // should be returned as in some GC situations the object has been moved. | 2110 // should be returned as in some GC situations the object has been moved. |
2112 virtual Object* RetainAs(Object* object) = 0; | 2111 virtual Object* RetainAs(Object* object) = 0; |
2113 }; | 2112 }; |
2114 | 2113 |
2115 | 2114 |
2116 } } // namespace v8::internal | 2115 } } // namespace v8::internal |
2117 | 2116 |
2118 #endif // V8_HEAP_H_ | 2117 #endif // V8_HEAP_H_ |
OLD | NEW |