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