Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 874dcbc902ea0111d5f49b756f774df7c4b35af4..fa48f4a960e1761590efdb90cc7776e72f29b330 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -167,7 +167,7 @@ class PropertyDetails BASE_EMBEDDED { |
} |
// Conversion for storing details as Object*. |
- inline PropertyDetails(Smi* smi); |
+ explicit inline PropertyDetails(Smi* smi); |
inline Smi* AsSmi(); |
PropertyType type() { return TypeField::decode(value_); } |
@@ -2576,9 +2576,12 @@ class Dictionary: public HashTable<Shape, Key> { |
// Sets the entry to (key, value) pair. |
inline void SetEntry(int entry, |
Object* key, |
+ Object* value); |
+ inline void SetEntry(int entry, |
+ Object* key, |
Object* value, |
PropertyDetails details); |
- |
+ |
MUST_USE_RESULT MaybeObject* Add(Key key, |
Object* value, |
PropertyDetails details); |
@@ -5158,7 +5161,7 @@ enum RobustnessFlag {ROBUST_STRING_TRAVERSAL, FAST_STRING_TRAVERSAL}; |
class StringHasher { |
public: |
- inline StringHasher(int length); |
+ explicit inline StringHasher(int length); |
// Returns true if the hash of this string can be computed without |
// looking at the contents. |
@@ -5905,7 +5908,7 @@ class StringInputBuffer: public unibrow::InputBuffer<String, String*, 1024> { |
public: |
virtual void Seek(unsigned pos); |
inline StringInputBuffer(): unibrow::InputBuffer<String, String*, 1024>() {} |
- inline StringInputBuffer(String* backing): |
+ explicit inline StringInputBuffer(String* backing): |
unibrow::InputBuffer<String, String*, 1024>(backing) {} |
}; |
@@ -5916,7 +5919,7 @@ class SafeStringInputBuffer |
virtual void Seek(unsigned pos); |
inline SafeStringInputBuffer() |
: unibrow::InputBuffer<String, String**, 256>() {} |
- inline SafeStringInputBuffer(String** backing) |
+ explicit inline SafeStringInputBuffer(String** backing) |
: unibrow::InputBuffer<String, String**, 256>(backing) {} |
}; |