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

Side by Side Diff: src/factory.h

Issue 2099983004: Revert of Refactor CreateApiFunction (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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') | 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 499
500 // Reinitialize an JSGlobalProxy based on a constructor. The object 500 // Reinitialize an JSGlobalProxy based on a constructor. The object
501 // must have the same size as objects allocated using the 501 // must have the same size as objects allocated using the
502 // constructor. The object is reinitialized and behaves as an 502 // constructor. The object is reinitialized and behaves as an
503 // object that has been freshly allocated using the constructor. 503 // object that has been freshly allocated using the constructor.
504 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, 504 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global,
505 Handle<JSFunction> constructor); 505 Handle<JSFunction> constructor);
506 506
507 Handle<JSGlobalProxy> NewUninitializedJSGlobalProxy(); 507 Handle<JSGlobalProxy> NewUninitializedJSGlobalProxy();
508 508
509 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code,
510 Handle<Object> prototype,
511 bool is_strict = false);
509 Handle<JSFunction> NewFunction(Handle<String> name); 512 Handle<JSFunction> NewFunction(Handle<String> name);
510 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, 513 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name,
511 Handle<Code> code, 514 Handle<Code> code,
512 bool is_strict = false); 515 bool is_strict = false);
513 516
514 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( 517 Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
515 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info, 518 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info,
516 Handle<Context> context, PretenureFlag pretenure = TENURED); 519 Handle<Context> context, PretenureFlag pretenure = TENURED);
517 520
518 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( 521 Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 721
719 // Create a JSArray with no elements and no length. 722 // Create a JSArray with no elements and no length.
720 Handle<JSArray> NewJSArray(ElementsKind elements_kind, 723 Handle<JSArray> NewJSArray(ElementsKind elements_kind,
721 PretenureFlag pretenure = NOT_TENURED); 724 PretenureFlag pretenure = NOT_TENURED);
722 }; 725 };
723 726
724 } // namespace internal 727 } // namespace internal
725 } // namespace v8 728 } // namespace v8
726 729
727 #endif // V8_FACTORY_H_ 730 #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