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

Side by Side Diff: src/generator.js

Issue 1093183006: [es6] Map/Set size getter should have "get size" name (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use IS_UNDEFINED instead Created 5 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/collection-iterator.js ('k') | src/i18n.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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() { 5 (function() {
6 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 %NeverOptimizeFunction(GeneratorObjectNext); 88 %NeverOptimizeFunction(GeneratorObjectNext);
89 %NeverOptimizeFunction(GeneratorObjectThrow); 89 %NeverOptimizeFunction(GeneratorObjectThrow);
90 90
91 // Set up non-enumerable functions on the generator prototype object. 91 // Set up non-enumerable functions on the generator prototype object.
92 var GeneratorObjectPrototype = GeneratorFunctionPrototype.prototype; 92 var GeneratorObjectPrototype = GeneratorFunctionPrototype.prototype;
93 InstallFunctions(GeneratorObjectPrototype, 93 InstallFunctions(GeneratorObjectPrototype,
94 DONT_ENUM, 94 DONT_ENUM,
95 ["next", GeneratorObjectNext, 95 ["next", GeneratorObjectNext,
96 "throw", GeneratorObjectThrow]); 96 "throw", GeneratorObjectThrow]);
97 97
98 %FunctionSetName(GeneratorObjectIterator, '[Symbol.iterator]'); 98 SetFunctionName(GeneratorObjectIterator, symbolIterator);
99 %AddNamedProperty(GeneratorObjectPrototype, symbolIterator, 99 %AddNamedProperty(GeneratorObjectPrototype, symbolIterator,
100 GeneratorObjectIterator, DONT_ENUM | DONT_DELETE | READ_ONLY); 100 GeneratorObjectIterator, DONT_ENUM | DONT_DELETE | READ_ONLY);
101 %AddNamedProperty(GeneratorObjectPrototype, "constructor", 101 %AddNamedProperty(GeneratorObjectPrototype, "constructor",
102 GeneratorFunctionPrototype, DONT_ENUM | READ_ONLY); 102 GeneratorFunctionPrototype, DONT_ENUM | READ_ONLY);
103 %AddNamedProperty(GeneratorObjectPrototype, 103 %AddNamedProperty(GeneratorObjectPrototype,
104 symbolToStringTag, "Generator", DONT_ENUM | READ_ONLY); 104 symbolToStringTag, "Generator", DONT_ENUM | READ_ONLY);
105 %InternalSetPrototype(GeneratorFunctionPrototype, GlobalFunction.prototype); 105 %InternalSetPrototype(GeneratorFunctionPrototype, GlobalFunction.prototype);
106 %AddNamedProperty(GeneratorFunctionPrototype, 106 %AddNamedProperty(GeneratorFunctionPrototype,
107 symbolToStringTag, "GeneratorFunction", DONT_ENUM | READ_ONLY); 107 symbolToStringTag, "GeneratorFunction", DONT_ENUM | READ_ONLY);
108 %AddNamedProperty(GeneratorFunctionPrototype, "constructor", 108 %AddNamedProperty(GeneratorFunctionPrototype, "constructor",
109 GeneratorFunction, DONT_ENUM | READ_ONLY); 109 GeneratorFunction, DONT_ENUM | READ_ONLY);
110 %InternalSetPrototype(GeneratorFunction, GlobalFunction); 110 %InternalSetPrototype(GeneratorFunction, GlobalFunction);
111 %SetCode(GeneratorFunction, GeneratorFunctionConstructor); 111 %SetCode(GeneratorFunction, GeneratorFunctionConstructor);
112 112
113 })(); 113 })();
OLDNEW
« no previous file with comments | « src/collection-iterator.js ('k') | src/i18n.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698