Index: src/assembler.h |
diff --git a/src/assembler.h b/src/assembler.h |
index b258330a583b4eca322b7429606e7b19d84f1162..90258e5ab23cf020f97cb6a9fd39b9d788c0da33 100644 |
--- a/src/assembler.h |
+++ b/src/assembler.h |
@@ -684,6 +684,8 @@ class ExternalReference BASE_EMBEDDED { |
typedef void* ExternalReferenceRedirector(void* original, Type type); |
+ ExternalReference() : address_(NULL) {} |
+ |
ExternalReference(Builtins::CFunctionId id, Isolate* isolate); |
ExternalReference(ApiFunction* ptr, Type type, Isolate* isolate); |
@@ -829,7 +831,7 @@ class ExternalReference BASE_EMBEDDED { |
static ExternalReference cpu_features(); |
- Address address() const {return reinterpret_cast<Address>(address_);} |
+ Address address() const { return reinterpret_cast<Address>(address_); } |
#ifdef ENABLE_DEBUGGER_SUPPORT |
// Function Debug::Break() |
@@ -868,6 +870,14 @@ class ExternalReference BASE_EMBEDDED { |
static ExternalReference stress_deopt_count(Isolate* isolate); |
+ bool operator==(const ExternalReference& other) const { |
+ return address_ == other.address_; |
+ } |
+ |
+ bool operator!=(const ExternalReference& other) const { |
+ return !(*this == other); |
+ } |
+ |
private: |
explicit ExternalReference(void* address) |
: address_(address) {} |