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

Side by Side Diff: src/factory.h

Issue 1415683007: Reland "[es6] Fix Function and GeneratorFunction built-ins subclassing." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix-subclass
Patch Set: Improved test Created 5 years, 1 month 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') | src/factory.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 #include "src/type-feedback-vector.h" 10 #include "src/type-feedback-vector.h"
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, 500 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code,
501 Handle<Object> prototype, 501 Handle<Object> prototype,
502 bool read_only_prototype = false, 502 bool read_only_prototype = false,
503 bool is_strict = false); 503 bool is_strict = false);
504 Handle<JSFunction> NewFunction(Handle<String> name); 504 Handle<JSFunction> NewFunction(Handle<String> name);
505 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, 505 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name,
506 Handle<Code> code, 506 Handle<Code> code,
507 bool is_strict = false); 507 bool is_strict = false);
508 508
509 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( 509 Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
510 Handle<SharedFunctionInfo> function_info, 510 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info,
511 Handle<Context> context, 511 Handle<Context> context, PretenureFlag pretenure = TENURED);
512
513 Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
514 Handle<SharedFunctionInfo> function_info, Handle<Context> context,
512 PretenureFlag pretenure = TENURED); 515 PretenureFlag pretenure = TENURED);
513 516
514 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, 517 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code,
515 Handle<Object> prototype, InstanceType type, 518 Handle<Object> prototype, InstanceType type,
516 int instance_size, 519 int instance_size,
517 bool read_only_prototype = false, 520 bool read_only_prototype = false,
518 bool install_constructor = false, 521 bool install_constructor = false,
519 bool is_strict = false); 522 bool is_strict = false);
520 Handle<JSFunction> NewFunction(Handle<String> name, 523 Handle<JSFunction> NewFunction(Handle<String> name,
521 Handle<Code> code, 524 Handle<Code> code,
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 // size, but keeping the original prototype. The receiver must have at least 718 // size, but keeping the original prototype. The receiver must have at least
716 // the size of the new object. The object is reinitialized and behaves as an 719 // the size of the new object. The object is reinitialized and behaves as an
717 // object that has been freshly allocated. 720 // object that has been freshly allocated.
718 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 721 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
719 }; 722 };
720 723
721 } // namespace internal 724 } // namespace internal
722 } // namespace v8 725 } // namespace v8
723 726
724 #endif // V8_FACTORY_H_ 727 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698