OLD | NEW |
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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 | 500 |
501 Handle<JSFunction> CreateApiFunction( | 501 Handle<JSFunction> CreateApiFunction( |
502 Handle<FunctionTemplateInfo> data, | 502 Handle<FunctionTemplateInfo> data, |
503 ApiInstanceType type = JavaScriptObject); | 503 ApiInstanceType type = JavaScriptObject); |
504 | 504 |
505 Handle<JSFunction> InstallMembers(Handle<JSFunction> function); | 505 Handle<JSFunction> InstallMembers(Handle<JSFunction> function); |
506 | 506 |
507 // Installs interceptors on the instance. 'desc' is a function template, | 507 // Installs interceptors on the instance. 'desc' is a function template, |
508 // and instance is an object instance created by the function of this | 508 // and instance is an object instance created by the function of this |
509 // function template. | 509 // function template. |
510 void ConfigureInstance(Handle<FunctionTemplateInfo> desc, | 510 MUST_USE_RESULT MaybeHandle<FunctionTemplateInfo> ConfigureInstance( |
511 Handle<JSObject> instance, | 511 Handle<FunctionTemplateInfo> desc, Handle<JSObject> instance); |
512 bool* pending_exception); | |
513 | 512 |
514 #define ROOT_ACCESSOR(type, name, camel_name) \ | 513 #define ROOT_ACCESSOR(type, name, camel_name) \ |
515 inline Handle<type> name() { \ | 514 inline Handle<type> name() { \ |
516 return Handle<type>(BitCast<type**>( \ | 515 return Handle<type>(BitCast<type**>( \ |
517 &isolate()->heap()->roots_[Heap::k##camel_name##RootIndex])); \ | 516 &isolate()->heap()->roots_[Heap::k##camel_name##RootIndex])); \ |
518 } | 517 } |
519 ROOT_LIST(ROOT_ACCESSOR) | 518 ROOT_LIST(ROOT_ACCESSOR) |
520 #undef ROOT_ACCESSOR | 519 #undef ROOT_ACCESSOR |
521 | 520 |
522 #define STRUCT_MAP_ACCESSOR(NAME, Name, name) \ | 521 #define STRUCT_MAP_ACCESSOR(NAME, Name, name) \ |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 | 612 |
614 // Update the map cache in the native context with (keys, map) | 613 // Update the map cache in the native context with (keys, map) |
615 Handle<MapCache> AddToMapCache(Handle<Context> context, | 614 Handle<MapCache> AddToMapCache(Handle<Context> context, |
616 Handle<FixedArray> keys, | 615 Handle<FixedArray> keys, |
617 Handle<Map> map); | 616 Handle<Map> map); |
618 }; | 617 }; |
619 | 618 |
620 } } // namespace v8::internal | 619 } } // namespace v8::internal |
621 | 620 |
622 #endif // V8_FACTORY_H_ | 621 #endif // V8_FACTORY_H_ |
OLD | NEW |