1. V8_WARN_UNUSED_RESULT MaybeHandle<Object> Invoke(Isolate* isolate, 2. const InvokeParams& params) { 3. if (params.target->IsJSFunction()) { 4. //...省略很多... 5. } 6. Object value; 7. Handle<Code> code = 8. JSEntry(isolate, params.execution_target, params.is_construct);...
V8_WARN_UNUSED_RESULT Maybe<bool>Has(Local<Context>context, Local<Value>key); V8_DEPRECATE_SOON("Use maybe version", bool Delete(Local<Value>key)); // TODO(dcarney): mark V8_WARN_UNUSED_RESULT Maybe<bool>Delete(Local<Context>context, Local<Value>key); V8_DEPRECATED("Use maybe version",...
1.V8_WARN_UNUSED_RESULT MaybeHandle<Object>Invoke(Isolate* isolate,2.constInvokeParams& params){3.if(params.target->IsJSFunction()) {4.//...省略很多...5.}6.Object value;7.Handle<Code> code =8.JSEntry(isolate, params.execution_target, params.is_construct);9.{10.SaveContextsave(isolate...
从V8_WARN_UNUSED_RESULT MaybeHandle<Object> Invoke(Isolate* isolate,const InvokeParams& params)讲起,因为Ignition即将从这里开始工作,源码如下: 1. InvokeParams InvokeParams::SetUpForCall(Isolate* isolate, 2. Handle<Object> callable, 3. Handle<Object> receiver, int argc, 4. Handle<Object>* argv)...
V8_WARN_UNUSED_RESULTMaybe<bool>Set(Local<Context>context, uint32_tindex,Local<Value>value); 在快速模式下对象的 properties 是由 Heap::AllocateFixedArray 创建的普通 FixedArray。在字典模式下,对象的 properties 是由 NameDictionary::Allocate 创建的 NameDictionary。
V8_EXPORT_PRIVATE static V8_WARN_UNUSED_RESULT MaybeHandle<JSObject> New( Handle<JSFunction> constructor, Handle<JSReceiver> new_target, Handle<AllocationSite> site); // 9.1.12 ObjectCreate ( proto [ , internalSlotsList ] ) // Notice: This is NOT 19.1.2.2 Object.create ( O, Properties ...
从V8_WARN_UNUSED_RESULT MaybeHandle<Object> Invoke(Isolate* isolate,const InvokeParams& params)讲起,因为Ignition即将从这里开始工作,源码如下: 1. InvokeParams InvokeParams::SetUpForCall(Isolate* isolate, 2. Handle<Object> callable, 3. Handle<Object> receiver, int argc, ...
V8_WARN_UNUSED_RESULT Maybe<bool> DefineOwnProperty( Local<Context> context, Local<Name> key, Local<Value> value, PropertyAttribute attributes = None); // Sets an own property on this object bypassing interceptors and // overriding accessors or read-only properties. ...
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, Local<Value> value); 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 在快速模式下对象的 properties 是由 Heap::AllocateFixedArray 创建的普通 FixedArray。在字典模式下,对象的 properties 是由 NameDictionary...
V8_EXPORT_PRIVATE V8_WARN_UNUSED_RESULT static MaybeHandle<Object> Call( Isolate* isolate, Handle<Object> callable, Handle<Object> receiver, int argc, Handle<Object> argv[]); //省略很多 从图5中标记的位置跟踪进入能看到执行的细节,目前我们还没提到AST如何生成字节码,但已基本梳理了v8从启动到运行...