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

Side by Side Diff: test/mjsunit/regress/regress-5902.js

Issue 2786143004: [bootstrapper] Ensure RegExp constructor has fast properties. (Closed)
Patch Set: Fix test. Created 3 years, 8 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/bootstrapper.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 the V8 project authors. All rights reserved. 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 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 // Flags: --allow-natives-syntax 5 // Flags: --allow-natives-syntax
6 6
7 var log = []; 7 var log = [];
8 8
9 function check(predicate, item) { 9 function check(predicate, item) {
10 if (!predicate) log.push(item); 10 if (!predicate) log.push(item);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 if (!%IsJSReceiver(prototype_constructor)) return; 48 if (!%IsJSReceiver(prototype_constructor)) return;
49 check( 49 check(
50 %HasFastProperties(prototype_constructor), 50 %HasFastProperties(prototype_constructor),
51 `${name}.prototype.constructor`); 51 `${name}.prototype.constructor`);
52 }); 52 });
53 53
54 // This is the current set of dictionary mode objects. 54 // This is the current set of dictionary mode objects.
55 // Remove items as we fix them. See issue 5902. 55 // Remove items as we fix them. See issue 5902.
56 assertEquals( 56 assertEquals(
57 [ 57 [
58 'RegExp', 'RegExp.prototype.constructor', 'Error.prototype', 58 'Error.prototype',
59 'EvalError.prototype', 'RangeError.prototype', 'ReferenceError.prototype', 59 'EvalError.prototype', 'RangeError.prototype', 'ReferenceError.prototype',
60 'SyntaxError.prototype', 'TypeError.prototype', 'URIError.prototype', 60 'SyntaxError.prototype', 'TypeError.prototype', 'URIError.prototype',
61 'Map', 'Map.prototype.constructor', 'Set', 'Set.prototype.constructor' 61 'Map', 'Map.prototype.constructor', 'Set', 'Set.prototype.constructor'
62 ], 62 ],
63 log); 63 log);
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698