Lines Matching refs:Handle

25 void SetElementSloppy(Handle<JSObject> object,  in SetElementSloppy()
27 Handle<Object> value) { in SetElementSloppy()
244 static bool CompareSubstrings(Handle<String> s1, int pos1, in CompareSubstrings()
245 Handle<String> s2, int pos2, int len) { in CompareSubstrings()
326 Handle<JSArray> GetResult() { in GetResult()
334 Handle<Object>(Smi::FromInt(char_pos1), isolate)); in WriteChunk()
337 Handle<Object>(Smi::FromInt(char_pos1 + char_len1), in WriteChunk()
341 Handle<Object>(Smi::FromInt(char_pos2 + char_len2), in WriteChunk()
347 Handle<JSArray> array_;
357 TokensCompareInput(Handle<String> s1, int offset1, int len1, in TokensCompareInput()
358 Handle<String> s2, int offset2, int len2) in TokensCompareInput()
373 Handle<String> s1_;
376 Handle<String> s2_;
406 explicit LineEndsWrapper(Handle<String> string) in LineEndsWrapper()
434 Handle<FixedArray> ends_array_;
446 LineArrayCompareInput(Handle<String> s1, Handle<String> s2, in LineArrayCompareInput()
486 Handle<String> s1_;
487 Handle<String> s2_;
503 Handle<String> s1, Handle<String> s2) in TokenizingLineArrayCompareOutput()
539 Handle<JSArray> GetResult() { in GetResult()
549 Handle<String> s1_;
550 Handle<String> s2_;
556 Handle<JSArray> LiveEdit::CompareStrings(Handle<String> s1, in CompareStrings()
557 Handle<String> s2) { in CompareStrings()
576 static Handle<Object> UnwrapJSValue(Handle<JSValue> jsValue) { in UnwrapJSValue()
577 return Handle<Object>(jsValue->value(), jsValue->GetIsolate()); in UnwrapJSValue()
583 static Handle<JSValue> WrapInJSValue(Handle<HeapObject> object) { in WrapInJSValue()
585 Handle<JSFunction> constructor = isolate->opaque_reference_function(); in WrapInJSValue()
586 Handle<JSValue> result = in WrapInJSValue()
587 Handle<JSValue>::cast(isolate->factory()->NewJSObject(constructor)); in WrapInJSValue()
593 static Handle<SharedFunctionInfo> UnwrapSharedFunctionInfoFromJSValue( in UnwrapSharedFunctionInfoFromJSValue()
594 Handle<JSValue> jsValue) { in UnwrapSharedFunctionInfoFromJSValue()
597 return Handle<SharedFunctionInfo>(SharedFunctionInfo::cast(shared)); in UnwrapSharedFunctionInfoFromJSValue()
601 static int GetArrayLength(Handle<JSArray> array) { in GetArrayLength()
608 void FunctionInfoWrapper::SetInitialProperties(Handle<String> name, in SetInitialProperties()
626 void FunctionInfoWrapper::SetFunctionCode(Handle<Code> function_code, in SetFunctionCode()
627 Handle<HeapObject> code_scope_info) { in SetFunctionCode()
628 Handle<JSValue> code_wrapper = WrapInJSValue(function_code); in SetFunctionCode()
631 Handle<JSValue> scope_wrapper = WrapInJSValue(code_scope_info); in SetFunctionCode()
637 Handle<SharedFunctionInfo> info) { in SetSharedFunctionInfo()
638 Handle<JSValue> info_holder = WrapInJSValue(info); in SetSharedFunctionInfo()
643 Handle<Code> FunctionInfoWrapper::GetFunctionCode() { in GetFunctionCode()
644 Handle<Object> element = this->GetField(kCodeOffset_); in GetFunctionCode()
645 Handle<JSValue> value_wrapper = Handle<JSValue>::cast(element); in GetFunctionCode()
646 Handle<Object> raw_result = UnwrapJSValue(value_wrapper); in GetFunctionCode()
648 return Handle<Code>::cast(raw_result); in GetFunctionCode()
652 Handle<TypeFeedbackVector> FunctionInfoWrapper::GetFeedbackVector() { in GetFeedbackVector()
653 Handle<Object> element = this->GetField(kSharedFunctionInfoOffset_); in GetFeedbackVector()
654 Handle<TypeFeedbackVector> result; in GetFeedbackVector()
656 Handle<JSValue> value_wrapper = Handle<JSValue>::cast(element); in GetFeedbackVector()
657 Handle<Object> raw_result = UnwrapJSValue(value_wrapper); in GetFeedbackVector()
658 Handle<SharedFunctionInfo> shared = in GetFeedbackVector()
659 Handle<SharedFunctionInfo>::cast(raw_result); in GetFeedbackVector()
660 result = Handle<TypeFeedbackVector>(shared->feedback_vector(), isolate()); in GetFeedbackVector()
672 Handle<Object> FunctionInfoWrapper::GetCodeScopeInfo() { in GetCodeScopeInfo()
673 Handle<Object> element = this->GetField(kCodeScopeInfoOffset_); in GetCodeScopeInfo()
674 return UnwrapJSValue(Handle<JSValue>::cast(element)); in GetCodeScopeInfo()
678 void SharedInfoWrapper::SetProperties(Handle<String> name, in SetProperties()
681 Handle<SharedFunctionInfo> info) { in SetProperties()
684 Handle<JSValue> info_holder = WrapInJSValue(info); in SetProperties()
691 Handle<SharedFunctionInfo> SharedInfoWrapper::GetInfo() { in GetInfo()
692 Handle<Object> element = this->GetField(kSharedInfoOffset_); in GetInfo()
693 Handle<JSValue> value_wrapper = Handle<JSValue>::cast(element); in GetInfo()
730 void FunctionCode(Handle<Code> function_code) { in FunctionCode()
736 Handle<HeapObject>(isolate()->heap()->null_value())); in FunctionCode()
741 void FunctionInfo(Handle<SharedFunctionInfo> shared, Scope* scope, in FunctionInfo()
750 info.SetFunctionCode(Handle<Code>(shared->code()), in FunctionInfo()
751 Handle<HeapObject>(shared->scope_info())); in FunctionInfo()
754 Handle<Object> scope_info_list = SerializeFunctionScope(scope, zone); in FunctionInfo()
758 Handle<JSArray> GetResult() { return result_; } in GetResult()
763 Handle<Object> SerializeFunctionScope(Scope* scope, Zone* zone) { in SerializeFunctionScope()
764 Handle<JSArray> scope_info_list = isolate()->factory()->NewJSArray(10); in SerializeFunctionScope()
787 Handle<Smi>(Smi::FromInt(context_list[i]->index()), isolate())); in SerializeFunctionScope()
792 Handle<Object>(isolate()->heap()->null_value(), in SerializeFunctionScope()
802 Handle<JSArray> result_;
843 MaybeHandle<JSArray> LiveEdit::GatherCompileInfo(Handle<Script> script, in GatherCompileInfo()
844 Handle<String> source) { in GatherCompileInfo()
848 Handle<Object> original_source = in GatherCompileInfo()
849 Handle<Object>(script->source(), isolate); in GatherCompileInfo()
864 Handle<JSObject> rethrow_exception; in GatherCompileInfo()
866 Handle<Object> exception(isolate->pending_exception(), isolate); in GatherCompileInfo()
874 rethrow_exception = Handle<JSObject>::cast(exception); in GatherCompileInfo()
877 Handle<String> start_pos_key = factory->InternalizeOneByteString( in GatherCompileInfo()
879 Handle<String> end_pos_key = in GatherCompileInfo()
881 Handle<String> script_obj_key = in GatherCompileInfo()
883 Handle<Smi> start_pos( in GatherCompileInfo()
885 Handle<Smi> end_pos(Smi::FromInt(message_location.end_pos()), isolate); in GatherCompileInfo()
886 Handle<JSObject> script_obj = in GatherCompileInfo()
909 void LiveEdit::WrapSharedFunctionInfos(Handle<JSArray> array) { in WrapSharedFunctionInfos()
914 Handle<SharedFunctionInfo> info( in WrapSharedFunctionInfos()
918 Handle<String> name_handle(String::cast(info->name())); in WrapSharedFunctionInfos()
969 static void ReplaceCodeObject(Handle<Code> original, in ReplaceCodeObject()
970 Handle<Code> substitution) { in ReplaceCodeObject()
1004 Handle<SharedFunctionInfo> shared_info, in PatchLiterals()
1021 Handle<FixedArray> function_instances = in PatchLiterals()
1024 Handle<JSFunction> fun(JSFunction::cast(function_instances->get(i))); in PatchLiterals()
1025 Handle<FixedArray> old_literals(fun->literals()); in PatchLiterals()
1026 Handle<FixedArray> new_literals = in PatchLiterals()
1029 Handle<Context> native_context; in PatchLiterals()
1032 native_context = Handle<Context>( in PatchLiterals()
1035 native_context = Handle<Context>(fun->context()->native_context()); in PatchLiterals()
1051 static void IterateJSFunctions(Handle<SharedFunctionInfo> shared_info, in IterateJSFunctions()
1067 static Handle<FixedArray> CollectJSFunctions( in CollectJSFunctions()
1068 Handle<SharedFunctionInfo> shared_info, Isolate* isolate) { in CollectJSFunctions()
1074 Handle<FixedArray> result = isolate->factory()->NewFixedArray(size); in CollectJSFunctions()
1103 explicit CollectVisitor(Handle<FixedArray> output) in CollectVisitor()
1111 Handle<FixedArray> m_output;
1188 Handle<JSArray> new_compile_info_array, in ReplaceFunctionCode()
1189 Handle<JSArray> shared_info_array) { in ReplaceFunctionCode()
1195 Handle<SharedFunctionInfo> shared_info = shared_info_wrapper.GetInfo(); in ReplaceFunctionCode()
1198 Handle<Code> code = compile_info_wrapper.GetFunctionCode(); in ReplaceFunctionCode()
1199 ReplaceCodeObject(Handle<Code>(shared_info->code()), code); in ReplaceFunctionCode()
1200 Handle<Object> code_scope_info = compile_info_wrapper.GetCodeScopeInfo(); in ReplaceFunctionCode()
1206 Handle<TypeFeedbackVector> feedback_vector = in ReplaceFunctionCode()
1212 Handle<DebugInfo> debug_info(DebugInfo::cast(shared_info->debug_info())); in ReplaceFunctionCode()
1213 Handle<Code> new_original_code = in ReplaceFunctionCode()
1233 void LiveEdit::FunctionSourceUpdated(Handle<JSArray> shared_info_array) { in FunctionSourceUpdated()
1235 Handle<SharedFunctionInfo> shared_info = shared_info_wrapper.GetInfo(); in FunctionSourceUpdated()
1242 void LiveEdit::SetFunctionScript(Handle<JSValue> function_wrapper, in SetFunctionScript()
1243 Handle<Object> script_handle) { in SetFunctionScript()
1244 Handle<SharedFunctionInfo> shared_info = in SetFunctionScript()
1263 Handle<JSArray> position_change_array) { in TranslatePosition()
1270 Handle<Object> element = Object::GetElement( in TranslatePosition()
1273 int chunk_start = Handle<Smi>::cast(element)->value(); in TranslatePosition()
1280 int chunk_end = Handle<Smi>::cast(element)->value(); in TranslatePosition()
1286 int chunk_changed_end = Handle<Smi>::cast(element)->value(); in TranslatePosition()
1372 static Handle<Code> PatchPositionsInCode( in PatchPositionsInCode()
1373 Handle<Code> code, in PatchPositionsInCode()
1374 Handle<JSArray> position_change_array) { in PatchPositionsInCode()
1409 Handle<Code> result(isolate->factory()->CopyCode(code, buffer)); in PatchPositionsInCode()
1415 void LiveEdit::PatchFunctionPositions(Handle<JSArray> shared_info_array, in PatchFunctionPositions()
1416 Handle<JSArray> position_change_array) { in PatchFunctionPositions()
1418 Handle<SharedFunctionInfo> info = shared_info_wrapper.GetInfo(); in PatchFunctionPositions()
1434 Handle<Code> patched_code = PatchPositionsInCode(Handle<Code>(info->code()), in PatchFunctionPositions()
1442 ReplaceCodeObject(Handle<Code>(info->code()), patched_code); in PatchFunctionPositions()
1448 static Handle<Script> CreateScriptCopy(Handle<Script> original) { in CreateScriptCopy()
1451 Handle<String> original_source(String::cast(original->source())); in CreateScriptCopy()
1452 Handle<Script> copy = isolate->factory()->NewScript(original_source); in CreateScriptCopy()
1471 Handle<Object> LiveEdit::ChangeScriptSource(Handle<Script> original_script, in ChangeScriptSource()
1472 Handle<String> new_source, in ChangeScriptSource()
1473 Handle<Object> old_script_name) { in ChangeScriptSource()
1475 Handle<Object> old_script_object; in ChangeScriptSource()
1477 Handle<Script> old_script = CreateScriptCopy(original_script); in ChangeScriptSource()
1496 Handle<JSValue> parent_function_wrapper, in ReplaceRefToNestedFunction()
1497 Handle<JSValue> orig_function_wrapper, in ReplaceRefToNestedFunction()
1498 Handle<JSValue> subst_function_wrapper) { in ReplaceRefToNestedFunction()
1500 Handle<SharedFunctionInfo> parent_shared = in ReplaceRefToNestedFunction()
1502 Handle<SharedFunctionInfo> orig_shared = in ReplaceRefToNestedFunction()
1504 Handle<SharedFunctionInfo> subst_shared = in ReplaceRefToNestedFunction()
1519 static bool CheckActivation(Handle<JSArray> shared_info_array, in CheckActivation()
1520 Handle<JSArray> result, in CheckActivation()
1525 Handle<JSFunction> function(JavaScriptFrame::cast(frame)->function()); in CheckActivation()
1531 Handle<Object> element = in CheckActivation()
1533 Handle<JSValue> jsvalue = Handle<JSValue>::cast(element); in CheckActivation()
1534 Handle<SharedFunctionInfo> shared = in CheckActivation()
1538 SetElementSloppy(result, i, Handle<Smi>(Smi::FromInt(status), isolate)); in CheckActivation()
1581 Handle<Code> code) { in SetUpFrameDropperFrame()
1717 Handle<Code> code = isolate->builtins()->FrameDropper_LiveEdit(); in DropFrames()
1740 MultipleFunctionTarget(Handle<JSArray> shared_info_array, in MultipleFunctionTarget()
1741 Handle<JSArray> result) in MultipleFunctionTarget()
1752 Handle<JSArray> m_shared_info_array;
1753 Handle<JSArray> m_result;
1866 Handle<JSArray> shared_info_array, Handle<JSArray> result, bool do_drop) { in DropActivationsInActiveThread()
1880 Handle<Object> obj = in DropActivationsInActiveThread()
1883 Handle<Object> replaced( in DropActivationsInActiveThread()
1892 bool LiveEdit::FindActiveGenerators(Handle<FixedArray> shared_info_array, in FindActiveGenerators()
1893 Handle<FixedArray> result, in FindActiveGenerators()
1914 Handle<JSValue> jsvalue = in FindActiveGenerators()
1915 Handle<JSValue>::cast(FixedArray::get(shared_info_array, i)); in FindActiveGenerators()
1916 Handle<SharedFunctionInfo> shared = in FindActiveGenerators()
1932 InactiveThreadActivationsChecker(Handle<JSArray> shared_info_array, in InactiveThreadActivationsChecker()
1933 Handle<JSArray> result) in InactiveThreadActivationsChecker()
1949 Handle<JSArray> shared_info_array_;
1950 Handle<JSArray> result_;
1955 Handle<JSArray> LiveEdit::CheckAndDropActivations( in CheckAndDropActivations()
1956 Handle<JSArray> shared_info_array, bool do_drop) { in CheckAndDropActivations()
1961 Handle<FixedArray> shared_info_array_elements( in CheckAndDropActivations()
1964 Handle<JSArray> result = isolate->factory()->NewJSArray(len); in CheckAndDropActivations()
1965 Handle<FixedArray> result_elements = in CheckAndDropActivations()
1996 Handle<String> str = in CheckAndDropActivations()
2069 Handle<SharedFunctionInfo> info, FunctionLiteral* lit, in RecordFunctionInfo()
2078 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) { in RecordRootFunctionInfo()