| OLD | NEW | 
| (Empty) |  | 
 |   1 // Copyright 2017 the V8 project authors. All rights reserved. | 
 |   2 // Use of this source code is governed by a BSD-style license that can be | 
 |   3 // found in the LICENSE file. | 
 |   4  | 
 |   5 // Flags: --allow-natives-syntax | 
 |   6  | 
 |   7 var A = {} | 
 |   8  | 
 |   9 A[Symbol.hasInstance] = function(x) { | 
 |  10   %DeoptimizeFunction(foo); | 
 |  11   return 1; | 
 |  12 } | 
 |  13  | 
 |  14 var a = {} | 
 |  15  | 
 |  16 function foo(o) { | 
 |  17   return o instanceof A; | 
 |  18 } | 
 |  19  | 
 |  20 foo(a); | 
 |  21 foo(a); | 
 |  22 assertTrue(foo(a) !== 1); | 
 |  23 %OptimizeFunctionOnNextCall(foo); | 
 |  24 assertTrue(foo(a) !== 1); | 
| OLD | NEW |