Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/js/v8natives.js

Issue 1605483002: Remove premature crankshaft optimization of HasInPrototypeChain. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | test/mjsunit/regress/regress-578775.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 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 6
7 %CheckIsBootstrapping(); 7 %CheckIsBootstrapping();
8 8
9 // ---------------------------------------------------------------------------- 9 // ----------------------------------------------------------------------------
10 // Imports 10 // Imports
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 var name = TO_NAME(value); 141 var name = TO_NAME(value);
142 var object = TO_OBJECT(this); 142 var object = TO_OBJECT(this);
143 return %HasOwnProperty(object, name); 143 return %HasOwnProperty(object, name);
144 } 144 }
145 145
146 146
147 // ES6 19.1.3.3 Object.prototype.isPrototypeOf(V) 147 // ES6 19.1.3.3 Object.prototype.isPrototypeOf(V)
148 function ObjectIsPrototypeOf(V) { 148 function ObjectIsPrototypeOf(V) {
149 if (!IS_RECEIVER(V)) return false; 149 if (!IS_RECEIVER(V)) return false;
150 var O = TO_OBJECT(this); 150 var O = TO_OBJECT(this);
151 return %_HasInPrototypeChain(V, O); 151 return %HasInPrototypeChain(V, O);
152 } 152 }
153 153
154 154
155 // ES6 19.1.3.4 155 // ES6 19.1.3.4
156 function ObjectPropertyIsEnumerable(V) { 156 function ObjectPropertyIsEnumerable(V) {
157 var P = TO_NAME(V); 157 var P = TO_NAME(V);
158 return %PropertyIsEnumerable(TO_OBJECT(this), P); 158 return %PropertyIsEnumerable(TO_OBJECT(this), P);
159 } 159 }
160 160
161 161
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1181 to.ObjectDefineProperties = ObjectDefineProperties; 1181 to.ObjectDefineProperties = ObjectDefineProperties;
1182 to.ObjectDefineProperty = ObjectDefineProperty; 1182 to.ObjectDefineProperty = ObjectDefineProperty;
1183 to.ObjectHasOwnProperty = ObjectHasOwnProperty; 1183 to.ObjectHasOwnProperty = ObjectHasOwnProperty;
1184 }); 1184 });
1185 1185
1186 %InstallToContext([ 1186 %InstallToContext([
1187 "object_value_of", ObjectValueOf, 1187 "object_value_of", ObjectValueOf,
1188 ]); 1188 ]);
1189 1189
1190 }) 1190 })
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | test/mjsunit/regress/regress-578775.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698