X87: fix debug checks for api callbacks returning symbols
authorcdai2 <chunyang.dai@intel.com>
Wed, 21 Jan 2015 05:25:05 +0000 (13:25 +0800)
committercdai2 <chunyang.dai@intel.com>
Wed, 21 Jan 2015 05:26:03 +0000 (05:26 +0000)
port 3eb589976a979fa80f0934a3754ebc79d289b713.

original commit message:

  fix debug checks for api callbacks returning symbols

BUG=
R=weiliang.lin@intel.com

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

Cr-Commit-Position: refs/heads/master@{#26176}

src/x87/macro-assembler-x87.cc

index 5615d4d..b9693d1 100644 (file)
@@ -2153,8 +2153,8 @@ void MacroAssembler::CallApiFunctionAndReturn(
   JumpIfSmi(return_value, &ok, Label::kNear);
   mov(map, FieldOperand(return_value, HeapObject::kMapOffset));
 
-  CmpInstanceType(map, FIRST_NONSTRING_TYPE);
-  j(below, &ok, Label::kNear);
+  CmpInstanceType(map, LAST_NAME_TYPE);
+  j(below_equal, &ok, Label::kNear);
 
   CmpInstanceType(map, FIRST_SPEC_OBJECT_TYPE);
   j(above_equal, &ok, Label::kNear);