Fix cast warning on Win32
authorrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 1 Mar 2013 14:31:01 +0000 (14:31 +0000)
committerrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 1 Mar 2013 14:31:01 +0000 (14:31 +0000)
R=mstarzinger@chromium.org
BUG=

Review URL: https://codereview.chromium.org/12385046

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13787 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/ia32/code-stubs-ia32.cc
src/x64/code-stubs-x64.cc

index f16c807..a52685b 100644 (file)
@@ -6913,14 +6913,14 @@ void ICCompareStub::GenerateUniqueNames(MacroAssembler* masm) {
   Label succeed1;
   __ test(tmp1, Immediate(kIsInternalizedMask));
   __ j(not_zero, &succeed1);
-  __ cmpb(tmp1, static_cast<int8_t>(SYMBOL_TYPE));
+  __ cmpb(tmp1, static_cast<uint8_t>(SYMBOL_TYPE));
   __ j(not_equal, &miss);
   __ bind(&succeed1);
 
   Label succeed2;
   __ test(tmp2, Immediate(kIsInternalizedMask));
   __ j(not_zero, &succeed2);
-  __ cmpb(tmp2, static_cast<int8_t>(SYMBOL_TYPE));
+  __ cmpb(tmp2, static_cast<uint8_t>(SYMBOL_TYPE));
   __ j(not_equal, &miss);
   __ bind(&succeed2);
 
index 23f9603..638e23d 100644 (file)
@@ -5902,14 +5902,14 @@ void ICCompareStub::GenerateUniqueNames(MacroAssembler* masm) {
   Label succeed1;
   __ testb(tmp1, Immediate(kIsInternalizedMask));
   __ j(not_zero, &succeed1, Label::kNear);
-  __ cmpb(tmp1, Immediate(static_cast<int8_t>(SYMBOL_TYPE)));
+  __ cmpb(tmp1, Immediate(static_cast<uint8_t>(SYMBOL_TYPE)));
   __ j(not_equal, &miss, Label::kNear);
   __ bind(&succeed1);
 
   Label succeed2;
   __ testb(tmp2, Immediate(kIsInternalizedMask));
   __ j(not_zero, &succeed2, Label::kNear);
-  __ cmpb(tmp2, Immediate(static_cast<int8_t>(SYMBOL_TYPE)));
+  __ cmpb(tmp2, Immediate(static_cast<uint8_t>(SYMBOL_TYPE)));
   __ j(not_equal, &miss, Label::kNear);
   __ bind(&succeed2);