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

Side by Side Diff: src/factory.h

Issue 268063008: Replace NewFunctionWithPrototype(name, prototype) by NewFunction(name) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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/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 "isolate.h" 8 #include "isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 // constructor. The object is reinitialized and behaves as an 445 // constructor. The object is reinitialized and behaves as an
446 // object that has been freshly allocated using the constructor. 446 // object that has been freshly allocated using the constructor.
447 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, 447 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global,
448 Handle<JSFunction> constructor); 448 Handle<JSFunction> constructor);
449 449
450 // Change the type of the argument into a JS object/function and reinitialize. 450 // Change the type of the argument into a JS object/function and reinitialize.
451 void BecomeJSObject(Handle<JSReceiver> object); 451 void BecomeJSObject(Handle<JSReceiver> object);
452 void BecomeJSFunction(Handle<JSReceiver> object); 452 void BecomeJSFunction(Handle<JSReceiver> object);
453 453
454 Handle<JSFunction> NewFunction(Handle<String> name, 454 Handle<JSFunction> NewFunction(Handle<String> name,
455 Handle<Code> code, 455 MaybeHandle<Object> maybe_prototype,
456 MaybeHandle<Object> maybe_prototype = 456 MaybeHandle<Code> maybe_code);
457 MaybeHandle<Object>()); 457 Handle<JSFunction> NewFunction(Handle<String> name);
458
459 Handle<JSFunction> NewFunctionWithPrototype(Handle<String> name,
460 Handle<Object> prototype);
461 458
462 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( 459 Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
463 Handle<SharedFunctionInfo> function_info, 460 Handle<SharedFunctionInfo> function_info,
464 Handle<Context> context, 461 Handle<Context> context,
465 PretenureFlag pretenure = TENURED); 462 PretenureFlag pretenure = TENURED);
466 463
467 Handle<JSFunction> NewFunction(MaybeHandle<Object> maybe_prototype, 464 Handle<JSFunction> NewFunction(MaybeHandle<Object> maybe_prototype,
468 Handle<String> name, 465 Handle<String> name,
469 InstanceType type, 466 InstanceType type,
470 int instance_size, 467 int instance_size,
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 // the string representation of the number. Otherwise return undefined. 686 // the string representation of the number. Otherwise return undefined.
690 Handle<Object> GetNumberStringCache(Handle<Object> number); 687 Handle<Object> GetNumberStringCache(Handle<Object> number);
691 688
692 // Update the cache with a new number-string pair. 689 // Update the cache with a new number-string pair.
693 void SetNumberStringCache(Handle<Object> number, Handle<String> string); 690 void SetNumberStringCache(Handle<Object> number, Handle<String> string);
694 }; 691 };
695 692
696 } } // namespace v8::internal 693 } } // namespace v8::internal
697 694
698 #endif // V8_FACTORY_H_ 695 #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