Lines Matching refs:Handle
38 // Interface for handle based allocation.
43 Handle<FixedArray> NewFixedArray(
48 Handle<FixedArray> NewFixedArrayWithHoles(
53 Handle<FixedDoubleArray> NewFixedDoubleArray(
57 Handle<SeededNumberDictionary> NewSeededNumberDictionary(
60 Handle<UnseededNumberDictionary> NewUnseededNumberDictionary(
63 Handle<StringDictionary> NewStringDictionary(int at_least_space_for);
65 Handle<ObjectHashSet> NewObjectHashSet(int at_least_space_for);
67 Handle<ObjectHashTable> NewObjectHashTable(int at_least_space_for);
69 Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors);
70 Handle<DeoptimizationInputData> NewDeoptimizationInputData(
73 Handle<DeoptimizationOutputData> NewDeoptimizationOutputData(
77 Handle<AccessorPair> NewAccessorPair();
79 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo();
81 Handle<String> LookupSymbol(Vector<const char> str);
82 Handle<String> LookupSymbol(Handle<String> str);
83 Handle<String> LookupAsciiSymbol(Vector<const char> str);
84 Handle<String> LookupAsciiSymbol(Handle<SeqAsciiString>,
87 Handle<String> LookupTwoByteSymbol(Vector<const uc16> str);
88 Handle<String> LookupAsciiSymbol(const char* str) {
115 Handle<String> NewStringFromAscii(
121 Handle<String> NewStringFromUtf8(
125 Handle<String> NewStringFromTwoByte(
132 Handle<SeqAsciiString> NewRawAsciiString(
135 Handle<SeqTwoByteString> NewRawTwoByteString(
140 Handle<String> NewConsString(Handle<String> first,
141 Handle<String> second);
144 Handle<String> NewSubString(Handle<String> str,
149 Handle<String> NewProperSubString(Handle<String> str,
157 Handle<String> NewExternalStringFromAscii(
159 Handle<String> NewExternalStringFromTwoByte(
163 Handle<Context> NewGlobalContext();
166 Handle<Context> NewFunctionContext(int length,
167 Handle<JSFunction> function);
170 Handle<Context> NewCatchContext(Handle<JSFunction> function,
171 Handle<Context> previous,
172 Handle<String> name,
173 Handle<Object> thrown_object);
176 Handle<Context> NewWithContext(Handle<JSFunction> function,
177 Handle<Context> previous,
178 Handle<JSObject> extension);
181 Handle<Context> NewBlockContext(Handle<JSFunction> function,
182 Handle<Context> previous,
183 Handle<ScopeInfo> scope_info);
186 Handle<String> SymbolFromString(Handle<String> value);
190 Handle<Struct> NewStruct(InstanceType type);
192 Handle<AccessorInfo> NewAccessorInfo();
194 Handle<Script> NewScript(Handle<String> source);
197 Handle<Foreign> NewForeign(Address addr,
202 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign);
204 Handle<ByteArray> NewByteArray(int length,
207 Handle<ExternalArray> NewExternalArray(
213 Handle<JSGlobalPropertyCell> NewJSGlobalPropertyCell(
214 Handle<Object> value);
216 Handle<Map> NewMap(InstanceType type,
220 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function);
222 Handle<Map> CopyMapDropDescriptors(Handle<Map> map);
226 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props);
228 Handle<Map> CopyMapDropTransitions(Handle<Map> map);
230 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object,
233 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
235 Handle<FixedDoubleArray> CopyFixedDoubleArray(
236 Handle<FixedDoubleArray> array);
239 Handle<Object> NewNumber(double value,
242 Handle<Object> NewNumberFromInt(int32_t value,
244 Handle<Object> NewNumberFromUint(uint32_t value,
249 Handle<JSObject> NewNeanderObject();
251 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length);
255 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor,
259 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor);
263 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map);
266 Handle<JSArray> NewJSArray(int capacity,
270 Handle<JSArray> NewJSArrayWithElements(
271 Handle<FixedArrayBase> elements,
275 void SetElementsCapacityAndLength(Handle<JSArray> array,
279 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements);
281 void EnsureCanContainHeapObjectElements(Handle<JSArray> array);
282 void EnsureCanContainElements(Handle<JSArray> array,
283 Handle<FixedArrayBase> elements,
286 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype);
289 void BecomeJSObject(Handle<JSReceiver> object);
290 void BecomeJSFunction(Handle<JSReceiver> object);
292 void SetIdentityHash(Handle<JSObject> object, Object* hash);
294 Handle<JSFunction> NewFunction(Handle<String> name,
295 Handle<Object> prototype);
297 Handle<JSFunction> NewFunctionWithoutPrototype(
298 Handle<String> name,
301 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global);
303 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo(
304 Handle<SharedFunctionInfo> function_info,
305 Handle<Map> function_map,
308 Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
309 Handle<SharedFunctionInfo> function_info,
310 Handle<Context> context,
313 Handle<ScopeInfo> NewScopeInfo(int length);
315 Handle<Code> NewCode(const CodeDesc& desc,
317 Handle<Object> self_reference,
320 Handle<Code> CopyCode(Handle<Code> code);
322 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info);
324 Handle<Object> ToObject(Handle<Object> object);
325 Handle<Object> ToObject(Handle<Object> object,
326 Handle<Context> global_context);
330 Handle<Object> NewError(const char* maker, const char* type,
331 Handle<JSArray> args);
332 Handle<Object> NewError(const char* maker, const char* type,
333 Vector< Handle<Object> > args);
334 Handle<Object> NewError(const char* type,
335 Vector< Handle<Object> > args);
336 Handle<Object> NewError(Handle<String> message);
337 Handle<Object> NewError(const char* constructor,
338 Handle<String> message);
340 Handle<Object> NewTypeError(const char* type,
341 Vector< Handle<Object> > args);
342 Handle<Object> NewTypeError(Handle<String> message);
344 Handle<Object> NewRangeError(const char* type,
345 Vector< Handle<Object> > args);
346 Handle<Object> NewRangeError(Handle<String> message);
348 Handle<Object> NewSyntaxError(const char* type, Handle<JSArray> args);
349 Handle<Object> NewSyntaxError(Handle<String> message);
351 Handle<Object> NewReferenceError(const char* type,
352 Vector< Handle<Object> > args);
353 Handle<Object> NewReferenceError(Handle<String> message);
355 Handle<Object> NewEvalError(const char* type,
356 Vector< Handle<Object> > args);
359 Handle<JSFunction> NewFunction(Handle<String> name,
362 Handle<Code> code,
365 Handle<JSFunction> NewFunction(Handle<Map> function_map,
366 Handle<SharedFunctionInfo> shared, Handle<Object> prototype);
369 Handle<JSFunction> NewFunctionWithPrototype(Handle<String> name,
372 Handle<JSObject> prototype,
373 Handle<Code> code,
376 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name,
377 Handle<Code> code);
379 Handle<DescriptorArray> CopyAppendForeignDescriptor(
380 Handle<DescriptorArray> array,
381 Handle<String> key,
382 Handle<Object> value,
385 Handle<String> NumberToString(Handle<Object> number);
386 Handle<String> Uint32ToString(uint32_t value);
394 Handle<JSFunction> CreateApiFunction(
395 Handle<FunctionTemplateInfo> data,
398 Handle<JSFunction> InstallMembers(Handle<JSFunction> function);
403 void ConfigureInstance(Handle<FunctionTemplateInfo> desc,
404 Handle<JSObject> instance,
408 inline Handle<type> name() { \
409 return Handle<type>(BitCast<type**>( \
416 inline Handle<String> name() { \
417 return Handle<String>(BitCast<String**>( \
423 Handle<String> hidden_symbol() {
424 return Handle<String>(&isolate()->heap()->hidden_symbol_);
427 Handle<SharedFunctionInfo> NewSharedFunctionInfo(
428 Handle<String> name,
430 Handle<Code> code,
431 Handle<ScopeInfo> scope_info);
432 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name);
434 Handle<JSMessageObject> NewJSMessageObject(
435 Handle<String> type,
436 Handle<JSArray> arguments,
439 Handle<Object> script,
440 Handle<Object> stack_trace,
441 Handle<Object> stack_frames);
443 Handle<SeededNumberDictionary> DictionaryAtNumberPut(
444 Handle<SeededNumberDictionary>,
446 Handle<Object> value);
448 Handle<UnseededNumberDictionary> DictionaryAtNumberPut(
449 Handle<UnseededNumberDictionary>,
451 Handle<Object> value);
454 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared);
459 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context,
460 Handle<FixedArray> keys);
464 void SetRegExpAtomData(Handle<JSRegExp> regexp,
466 Handle<String> source,
468 Handle<Object> match_pattern);
472 void SetRegExpIrregexpData(Handle<JSRegExp> regexp,
474 Handle<String> source,
480 // Returns a null handle when the given name is unknown.
481 Handle<Object> GlobalConstantFor(Handle<String> name);
484 Handle<Object> ToBoolean(bool value);
489 Handle<JSFunction> NewFunctionHelper(Handle<String> name,
490 Handle<Object> prototype);
492 Handle<JSFunction> NewFunctionWithoutPrototypeHelper(
493 Handle<String> name,
496 Handle<DescriptorArray> CopyAppendCallbackDescriptors(
497 Handle<DescriptorArray> array,
498 Handle<Object> descriptors);
501 Handle<MapCache> NewMapCache(int at_least_space_for);
504 Handle<MapCache> AddToMapCache(Handle<Context> context,
505 Handle<FixedArray> keys,
506 Handle<Map> map);