Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 552e96f18fab6259c0c2661098c552c44b7fdca5..c57613587a2e703699fa78d49a5fdcee5a2ff304 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -7903,15 +7903,15 @@ class Module : public Struct { |
| // Embedder-specified data |
| DECL_ACCESSORS(embedder_data, Object) |
| + // Hash code for this object (a random non-zero Smi). |
|
neis
2016/10/07 09:21:50
s/code // to avoid confusion in the following comm
adamk
2016/10/07 17:37:35
Done.
|
| + DECL_INT_ACCESSORS(hash) |
| + |
| // Get the SharedFunctionInfo associated with the code. |
| inline SharedFunctionInfo* shared() const; |
| // Get the ModuleInfo associated with the code. |
| inline ModuleInfo* info() const; |
| - // Compute a hash for this object. |
| - inline uint32_t Hash() const; |
| - |
| // Implementation of spec operation ModuleDeclarationInstantiation. |
| // Returns false if an exception occurred during instantiation, true |
| // otherwise. |
| @@ -7935,7 +7935,8 @@ class Module : public Struct { |
| static const int kRequestedModulesOffset = kExportsOffset + kPointerSize; |
| static const int kFlagsOffset = kRequestedModulesOffset + kPointerSize; |
| static const int kEmbedderDataOffset = kFlagsOffset + kPointerSize; |
| - static const int kSize = kEmbedderDataOffset + kPointerSize; |
| + static const int kHashOffset = kEmbedderDataOffset + kPointerSize; |
| + static const int kSize = kHashOffset + kPointerSize; |
| private: |
| enum { kEvaluatedBit }; |