summaryrefslogtreecommitdiff
path: root/deps/v8/src/assembler.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-07-30 17:14:55 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-07-30 17:14:55 +0200
commit2fc47ab10bdbcfb39521d04cf5417520e0035163 (patch)
tree037359365f08c7ba1a7c3f3e5a4e8867b441553d /deps/v8/src/assembler.h
parentb8c04b921b626edd4201f805d0feb384c8e91ea7 (diff)
downloadnode-new-2fc47ab10bdbcfb39521d04cf5417520e0035163.tar.gz
v8: upgrade v8 to 3.20.11
Diffstat (limited to 'deps/v8/src/assembler.h')
-rw-r--r--deps/v8/src/assembler.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/deps/v8/src/assembler.h b/deps/v8/src/assembler.h
index 481add56b8..d70d5aa928 100644
--- a/deps/v8/src/assembler.h
+++ b/deps/v8/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) {}