| OLD | NEW |
| 1 // Copyright 2006-2012 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 (function(global, utils) { | 5 (function(global, utils) { |
| 6 "use strict"; | 6 "use strict"; |
| 7 | 7 |
| 8 // ---------------------------------------------------------------------------- | 8 // ---------------------------------------------------------------------------- |
| 9 // Imports | 9 // Imports |
| 10 | 10 |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 */ | 805 */ |
| 806 ObjectMirror.prototype.lookupProperty = function(value) { | 806 ObjectMirror.prototype.lookupProperty = function(value) { |
| 807 var properties = this.properties(); | 807 var properties = this.properties(); |
| 808 | 808 |
| 809 // Look for property value in properties. | 809 // Look for property value in properties. |
| 810 for (var i = 0; i < properties.length; i++) { | 810 for (var i = 0; i < properties.length; i++) { |
| 811 | 811 |
| 812 // Skip properties which are defined through accessors. | 812 // Skip properties which are defined through accessors. |
| 813 var property = properties[i]; | 813 var property = properties[i]; |
| 814 if (property.propertyType() != PropertyType.AccessorConstant) { | 814 if (property.propertyType() != PropertyType.AccessorConstant) { |
| 815 if (%_ObjectEquals(property.value_, value.value_)) { | 815 if (property.value_ === value.value_) { |
| 816 return property; | 816 return property; |
| 817 } | 817 } |
| 818 } | 818 } |
| 819 } | 819 } |
| 820 | 820 |
| 821 // Nothing found. | 821 // Nothing found. |
| 822 return GetUndefinedMirror(); | 822 return GetUndefinedMirror(); |
| 823 }; | 823 }; |
| 824 | 824 |
| 825 | 825 |
| (...skipping 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3044 // Functions needed by the debugger runtime. | 3044 // Functions needed by the debugger runtime. |
| 3045 utils.InstallFunctions(utils, DONT_ENUM, [ | 3045 utils.InstallFunctions(utils, DONT_ENUM, [ |
| 3046 "ClearMirrorCache", ClearMirrorCache | 3046 "ClearMirrorCache", ClearMirrorCache |
| 3047 ]); | 3047 ]); |
| 3048 | 3048 |
| 3049 // Export to debug.js | 3049 // Export to debug.js |
| 3050 utils.Export(function(to) { | 3050 utils.Export(function(to) { |
| 3051 to.MirrorType = MirrorType; | 3051 to.MirrorType = MirrorType; |
| 3052 }); | 3052 }); |
| 3053 }) | 3053 }) |
| OLD | NEW |