Revision: 5213
Author: [email protected]
Date: Mon Aug  9 05:44:48 2010
Log: Fix cast that fails to build on Windows.

Review URL: http://codereview.chromium.org/3044055
http://code.google.com/p/v8/source/detail?r=5213

Modified:
 /branches/bleeding_edge/src/ia32/codegen-ia32.cc
 /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc

=======================================
--- /branches/bleeding_edge/src/ia32/codegen-ia32.cc Fri Aug 6 06:04:27 2010 +++ /branches/bleeding_edge/src/ia32/codegen-ia32.cc Mon Aug 9 05:44:48 2010
@@ -7594,9 +7594,7 @@
   __ and_(Operand(tmp), right);
   __ test(Operand(tmp), Immediate(kSmiTagMask));
   destination()->false_target()->Branch(equal);
-  __ mov(tmp, FieldOperand(left, HeapObject::kMapOffset));
-  __ cmpb(FieldOperand(tmp, Map::kInstanceTypeOffset),
-          static_cast<int8_t>(JS_REGEXP_TYPE));
+  __ CmpObjectType(left, JS_REGEXP_TYPE, tmp);
   destination()->false_target()->Branch(not_equal);
   __ cmp(tmp, FieldOperand(right, HeapObject::kMapOffset));
   destination()->false_target()->Branch(not_equal);
=======================================
--- /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc Fri Aug 6 06:04:27 2010 +++ /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc Mon Aug 9 05:44:48 2010
@@ -2696,9 +2696,7 @@
   __ and_(Operand(tmp), right);
   __ test(Operand(tmp), Immediate(kSmiTagMask));
   __ j(zero, &fail);
-  __ mov(tmp, FieldOperand(left, HeapObject::kMapOffset));
-  __ cmpb(FieldOperand(tmp, Map::kInstanceTypeOffset),
-          static_cast<int8_t>(JS_REGEXP_TYPE));
+  __ CmpObjectType(left, JS_REGEXP_TYPE, tmp);
   __ j(not_equal, &fail);
   __ cmp(tmp, FieldOperand(right, HeapObject::kMapOffset));
   __ j(not_equal, &fail);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to