| OLD | NEW | 
|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef V8_STUB_CACHE_H_ | 5 #ifndef V8_STUB_CACHE_H_ | 
| 6 #define V8_STUB_CACHE_H_ | 6 #define V8_STUB_CACHE_H_ | 
| 7 | 7 | 
| 8 #include "src/macro-assembler.h" | 8 #include "src/macro-assembler.h" | 
| 9 | 9 | 
| 10 namespace v8 { | 10 namespace v8 { | 
| 11 namespace internal { | 11 namespace internal { | 
| 12 | 12 | 
|  | 13 class SmallMapList; | 
| 13 | 14 | 
| 14 // The stub cache is used for megamorphic property accesses. | 15 // The stub cache is used for megamorphic property accesses. | 
| 15 // It maps (map, name, type) to property access handlers. The cache does not | 16 // It maps (map, name, type) to property access handlers. The cache does not | 
| 16 // need explicit invalidation when a prototype chain is modified, since the | 17 // need explicit invalidation when a prototype chain is modified, since the | 
| 17 // handlers verify the chain. | 18 // handlers verify the chain. | 
| 18 | 19 | 
| 19 | 20 | 
| 20 class SCTableReference { | 21 class SCTableReference { | 
| 21  public: | 22  public: | 
| 22   Address address() const { return address_; } | 23   Address address() const { return address_; } | 
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 167 | 168 | 
| 168   friend class Isolate; | 169   friend class Isolate; | 
| 169   friend class SCTableReference; | 170   friend class SCTableReference; | 
| 170 | 171 | 
| 171   DISALLOW_COPY_AND_ASSIGN(StubCache); | 172   DISALLOW_COPY_AND_ASSIGN(StubCache); | 
| 172 }; | 173 }; | 
| 173 }  // namespace internal | 174 }  // namespace internal | 
| 174 }  // namespace v8 | 175 }  // namespace v8 | 
| 175 | 176 | 
| 176 #endif  // V8_STUB_CACHE_H_ | 177 #endif  // V8_STUB_CACHE_H_ | 
| OLD | NEW | 
|---|