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

Side by Side Diff: src/api-natives.h

Issue 2107673003: Add an API to create a detached global object (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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_API_NATIVES_H_ 5 #ifndef V8_API_NATIVES_H_
6 #define V8_API_NATIVES_H_ 6 #define V8_API_NATIVES_H_
7 7
8 #include "src/handles.h" 8 #include "src/handles.h"
9 #include "src/property-details.h" 9 #include "src/property-details.h"
10 10
(...skipping 19 matching lines...) Expand all
30 JavaScriptObjectType, 30 JavaScriptObjectType,
31 GlobalObjectType, 31 GlobalObjectType,
32 GlobalProxyType 32 GlobalProxyType
33 }; 33 };
34 34
35 static Handle<JSFunction> CreateApiFunction(Isolate* isolate, 35 static Handle<JSFunction> CreateApiFunction(Isolate* isolate,
36 Handle<FunctionTemplateInfo> obj, 36 Handle<FunctionTemplateInfo> obj,
37 Handle<Object> prototype, 37 Handle<Object> prototype,
38 ApiInstanceType instance_type); 38 ApiInstanceType instance_type);
39 39
40 static Handle<JSFunction> CreateApiFunctionWithMap(
41 Isolate* isolate, Handle<Object> context_or_undefined,
42 Handle<FunctionTemplateInfo> obj, Handle<Map> initial_map,
43 Handle<Object> prototype, ApiInstanceType instance_type);
44
40 static void AddDataProperty(Isolate* isolate, Handle<TemplateInfo> info, 45 static void AddDataProperty(Isolate* isolate, Handle<TemplateInfo> info,
41 Handle<Name> name, Handle<Object> value, 46 Handle<Name> name, Handle<Object> value,
42 PropertyAttributes attributes); 47 PropertyAttributes attributes);
43 48
44 static void AddDataProperty(Isolate* isolate, Handle<TemplateInfo> info, 49 static void AddDataProperty(Isolate* isolate, Handle<TemplateInfo> info,
45 Handle<Name> name, v8::Intrinsic intrinsic, 50 Handle<Name> name, v8::Intrinsic intrinsic,
46 PropertyAttributes attributes); 51 PropertyAttributes attributes);
47 52
48 static void AddAccessorProperty(Isolate* isolate, Handle<TemplateInfo> info, 53 static void AddAccessorProperty(Isolate* isolate, Handle<TemplateInfo> info,
49 Handle<Name> name, 54 Handle<Name> name,
50 Handle<FunctionTemplateInfo> getter, 55 Handle<FunctionTemplateInfo> getter,
51 Handle<FunctionTemplateInfo> setter, 56 Handle<FunctionTemplateInfo> setter,
52 PropertyAttributes attributes); 57 PropertyAttributes attributes);
53 58
54 static void AddNativeDataProperty(Isolate* isolate, Handle<TemplateInfo> info, 59 static void AddNativeDataProperty(Isolate* isolate, Handle<TemplateInfo> info,
55 Handle<AccessorInfo> property); 60 Handle<AccessorInfo> property);
56 }; 61 };
57 62
58 } // namespace internal 63 } // namespace internal
59 } // namespace v8 64 } // namespace v8
60 65
61 #endif 66 #endif
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/api-natives.cc » ('j') | src/api-natives.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698