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

Side by Side Diff: src/factory.h

Issue 2475433008: Set global proxy internal field count based on the global object template. (Closed)
Patch Set: Address comments Created 4 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/globals.h" 8 #include "src/globals.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, 544 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target,
545 Handle<JSReceiver> handler); 545 Handle<JSReceiver> handler);
546 546
547 // Reinitialize an JSGlobalProxy based on a constructor. The object 547 // Reinitialize an JSGlobalProxy based on a constructor. The object
548 // must have the same size as objects allocated using the 548 // must have the same size as objects allocated using the
549 // constructor. The object is reinitialized and behaves as an 549 // constructor. The object is reinitialized and behaves as an
550 // object that has been freshly allocated using the constructor. 550 // object that has been freshly allocated using the constructor.
551 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, 551 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global,
552 Handle<JSFunction> constructor); 552 Handle<JSFunction> constructor);
553 553
554 Handle<JSGlobalProxy> NewUninitializedJSGlobalProxy(); 554 Handle<JSGlobalProxy> NewUninitializedJSGlobalProxy(int size);
555 555
556 Handle<JSFunction> NewFunction(Handle<Map> map, 556 Handle<JSFunction> NewFunction(Handle<Map> map,
557 Handle<SharedFunctionInfo> info, 557 Handle<SharedFunctionInfo> info,
558 Handle<Object> context_or_undefined, 558 Handle<Object> context_or_undefined,
559 PretenureFlag pretenure = TENURED); 559 PretenureFlag pretenure = TENURED);
560 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, 560 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code,
561 Handle<Object> prototype, 561 Handle<Object> prototype,
562 bool is_strict = false); 562 bool is_strict = false);
563 Handle<JSFunction> NewFunction(Handle<String> name); 563 Handle<JSFunction> NewFunction(Handle<String> name);
564 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, 564 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name,
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 FunctionMode function_mode); 788 FunctionMode function_mode);
789 789
790 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 790 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
791 FunctionMode function_mode); 791 FunctionMode function_mode);
792 }; 792 };
793 793
794 } // namespace internal 794 } // namespace internal
795 } // namespace v8 795 } // namespace v8
796 796
797 #endif // V8_FACTORY_H_ 797 #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