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

Side by Side Diff: src/generator.js

Issue 450303003: Tag all prototypes as proto, except those set using __proto__ (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove is_shared from Map Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/factory.cc ('k') | src/math.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 "use strict"; 5 "use strict";
6 6
7 // This file relies on the fact that the following declarations have been made 7 // This file relies on the fact that the following declarations have been made
8 // in runtime.js: 8 // in runtime.js:
9 // var $Function = global.Function; 9 // var $Function = global.Function;
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 var GeneratorObjectPrototype = GeneratorFunctionPrototype.prototype; 60 var GeneratorObjectPrototype = GeneratorFunctionPrototype.prototype;
61 InstallFunctions(GeneratorObjectPrototype, 61 InstallFunctions(GeneratorObjectPrototype,
62 DONT_ENUM | DONT_DELETE | READ_ONLY, 62 DONT_ENUM | DONT_DELETE | READ_ONLY,
63 ["next", GeneratorObjectNext, 63 ["next", GeneratorObjectNext,
64 "throw", GeneratorObjectThrow]); 64 "throw", GeneratorObjectThrow]);
65 %FunctionSetName(GeneratorObjectIterator, '[Symbol.iterator]'); 65 %FunctionSetName(GeneratorObjectIterator, '[Symbol.iterator]');
66 %AddNamedProperty(GeneratorObjectPrototype, symbolIterator, 66 %AddNamedProperty(GeneratorObjectPrototype, symbolIterator,
67 GeneratorObjectIterator, DONT_ENUM | DONT_DELETE | READ_ONLY); 67 GeneratorObjectIterator, DONT_ENUM | DONT_DELETE | READ_ONLY);
68 %AddNamedProperty(GeneratorObjectPrototype, "constructor", 68 %AddNamedProperty(GeneratorObjectPrototype, "constructor",
69 GeneratorFunctionPrototype, DONT_ENUM | DONT_DELETE | READ_ONLY); 69 GeneratorFunctionPrototype, DONT_ENUM | DONT_DELETE | READ_ONLY);
70 %SetPrototype(GeneratorFunctionPrototype, $Function.prototype); 70 %InternalSetPrototype(GeneratorFunctionPrototype, $Function.prototype);
71 %SetCode(GeneratorFunctionPrototype, GeneratorFunctionPrototypeConstructor); 71 %SetCode(GeneratorFunctionPrototype, GeneratorFunctionPrototypeConstructor);
72 %AddNamedProperty(GeneratorFunctionPrototype, "constructor", 72 %AddNamedProperty(GeneratorFunctionPrototype, "constructor",
73 GeneratorFunction, DONT_ENUM | DONT_DELETE | READ_ONLY); 73 GeneratorFunction, DONT_ENUM | DONT_DELETE | READ_ONLY);
74 %SetPrototype(GeneratorFunction, $Function); 74 %InternalSetPrototype(GeneratorFunction, $Function);
75 %SetCode(GeneratorFunction, GeneratorFunctionConstructor); 75 %SetCode(GeneratorFunction, GeneratorFunctionConstructor);
76 } 76 }
77 77
78 SetUpGenerators(); 78 SetUpGenerators();
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698