Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index b98d2a654ea9ebab3284a142b587b22517270c8b..1093b3c8dcc749ec109191ba63f4000b6071a065 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -234,33 +234,6 @@ bool ObjectLiteral::Property::emit_store() { |
} |
-bool IsEqualString(void* first, void* second) { |
- ASSERT((*reinterpret_cast<String**>(first))->IsString()); |
- ASSERT((*reinterpret_cast<String**>(second))->IsString()); |
- Handle<String> h1(reinterpret_cast<String**>(first)); |
- Handle<String> h2(reinterpret_cast<String**>(second)); |
- return (*h1)->Equals(*h2); |
-} |
- |
- |
-bool IsEqualNumber(void* first, void* second) { |
- ASSERT((*reinterpret_cast<Object**>(first))->IsNumber()); |
- ASSERT((*reinterpret_cast<Object**>(second))->IsNumber()); |
- |
- Handle<Object> h1(reinterpret_cast<Object**>(first)); |
- Handle<Object> h2(reinterpret_cast<Object**>(second)); |
- if (h1->IsSmi()) { |
- return h2->IsSmi() && *h1 == *h2; |
- } |
- if (h2->IsSmi()) return false; |
- Handle<HeapNumber> n1 = Handle<HeapNumber>::cast(h1); |
- Handle<HeapNumber> n2 = Handle<HeapNumber>::cast(h2); |
- ASSERT(std::isfinite(n1->value())); |
- ASSERT(std::isfinite(n2->value())); |
- return n1->value() == n2->value(); |
-} |
- |
- |
void ObjectLiteral::CalculateEmitStore(Zone* zone) { |
ZoneAllocationPolicy allocator(zone); |