OLD | NEW |
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 #include "src/api-natives.h" | 5 #include "src/api-natives.h" |
6 #include "src/isolate-inl.h" | 6 |
| 7 #include "src/api.h" |
| 8 #include "src/isolate.h" |
| 9 #include "src/lookup.h" |
7 | 10 |
8 namespace v8 { | 11 namespace v8 { |
9 namespace internal { | 12 namespace internal { |
10 | 13 |
| 14 |
11 namespace { | 15 namespace { |
12 | 16 |
13 MaybeHandle<JSObject> InstantiateObject(Isolate* isolate, | 17 MaybeHandle<JSObject> InstantiateObject(Isolate* isolate, |
14 Handle<ObjectTemplateInfo> data); | 18 Handle<ObjectTemplateInfo> data); |
15 | 19 |
16 | 20 |
17 MaybeHandle<JSFunction> InstantiateFunction(Isolate* isolate, | 21 MaybeHandle<JSFunction> InstantiateFunction(Isolate* isolate, |
18 Handle<FunctionTemplateInfo> data, | 22 Handle<FunctionTemplateInfo> data, |
19 Handle<Name> name = Handle<Name>()); | 23 Handle<Name> name = Handle<Name>()); |
20 | 24 |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 Handle<AccessorInfo> accessor(AccessorInfo::cast(array->get(i))); | 579 Handle<AccessorInfo> accessor(AccessorInfo::cast(array->get(i))); |
576 JSObject::SetAccessor(result, accessor).Assert(); | 580 JSObject::SetAccessor(result, accessor).Assert(); |
577 } | 581 } |
578 | 582 |
579 DCHECK(result->shared()->IsApiFunction()); | 583 DCHECK(result->shared()->IsApiFunction()); |
580 return result; | 584 return result; |
581 } | 585 } |
582 | 586 |
583 } // namespace internal | 587 } // namespace internal |
584 } // namespace v8 | 588 } // namespace v8 |
OLD | NEW |