X87: [runtime] Remove useless IN builtin.
authorchunyang.dai <chunyang.dai@intel.com>
Mon, 7 Sep 2015 08:25:58 +0000 (01:25 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 7 Sep 2015 08:26:15 +0000 (08:26 +0000)
port 3dc9b122fa9f7d551e05f5b9d7415bcfdcac92db (r30582).

original commit message:

    Similar to DELETE, the IN builtin is just a thin wrapper for %HasElement
    and %HasProperty anyway, and cannot be optimized, plus it had a weird
    special fast case (which also involved at least one LOAD_IC plus some
    intrinsic magic).

BUG=

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

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

src/full-codegen/x87/full-codegen-x87.cc

index dfa6b07..55c227e 100644 (file)
@@ -4952,7 +4952,7 @@ void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) {
   switch (op) {
     case Token::IN:
       VisitForStackValue(expr->right());
-      __ CallRuntime(Runtime::kHasPropert, 2);
+      __ CallRuntime(Runtime::kHasProperty, 2);
       PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
       __ cmp(eax, isolate()->factory()->true_value());
       Split(equal, if_true, if_false, fall_through);