Revision: 17160
Author:   [email protected]
Date:     Fri Oct 11 13:40:08 2013 UTC
Log:      Remove dead IsEqualString and IsEqualNumber method.

[email protected]

Review URL: https://codereview.chromium.org/26833002
http://code.google.com/p/v8/source/detail?r=17160

Modified:
 /branches/bleeding_edge/src/ast.cc

=======================================
--- /branches/bleeding_edge/src/ast.cc  Tue Oct  1 09:47:37 2013 UTC
+++ /branches/bleeding_edge/src/ast.cc  Fri Oct 11 13:40:08 2013 UTC
@@ -232,33 +232,6 @@
 bool ObjectLiteral::Property::emit_store() {
   return 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) {

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to