Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 71853 invoked from network); 17 Feb 2009 09:06:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2009 09:06:19 -0000 Received: (qmail 62596 invoked by uid 500); 17 Feb 2009 09:06:17 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 62567 invoked by uid 500); 17 Feb 2009 09:06:17 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 62556 invoked by uid 99); 17 Feb 2009 09:06:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 01:06:17 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pmcfirst@gmail.com designates 209.85.134.188 as permitted sender) Received: from [209.85.134.188] (HELO mu-out-0910.google.com) (209.85.134.188) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 09:06:09 +0000 Received: by mu-out-0910.google.com with SMTP id i2so1115132mue.0 for ; Tue, 17 Feb 2009 01:05:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=AiFo2j7VLfecAD0ptvUQsJhN4djw7SUG8Ey7TQ1dP6Y=; b=hL0UBCwMr30Khm5Wdusg3XSaIUuX8Iq87PAZvRrGoPw4QuVq2/n3sdS8iZM903g9wu 7ReoXLSPQxLkxP22FMjGZR0fleksVB9kHI0Hy4gPY17XdD8Ipor/2lgyn2Ooq1O/mYqQ HczSGlsn7vrof2bsEA+/LtH2d/+WzUmdti8kY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=jjLvwB5rUn4uhZAGl3aP0r7Veb7EiANZO0pBeK508AGJDiOGv3Uo7cvRhEGNGHhV1z lRfIkoSs6cyeZ7gZrFR4X1e+RVB6gfycWMAVUFlmPy0AU1G+e+M6hUt5xAFMHf2+M10g VhJE5kFwOQBlW3So7YVUD5mBinxN188V9acdo= MIME-Version: 1.0 Received: by 10.103.222.1 with SMTP id z1mr1419245muq.121.1234861549483; Tue, 17 Feb 2009 01:05:49 -0800 (PST) In-Reply-To: <499A7BD8.2050009@gmail.com> References: <5948b71e0902162346s654a3a03xe457dfcc24ffb042@mail.gmail.com> <211709bc0902170003mf4d69cdyf6439489518e9461@mail.gmail.com> <499A7BD8.2050009@gmail.com> Date: Tue, 17 Feb 2009 12:05:49 +0300 Message-ID: Subject: Re: A question about gen_invoke_common_managed_func From: Pavel Pervov To: dev@harmony.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Yixun, The function you've mentioned is used to produce native to managed transition (i.e. the call from VM code to JITted method). It uses encoder to produce assembly for N2M transition. You can find encoder sources in working_vm/vm/port/src/encoder. Pavel. On Tue, Feb 17, 2009 at 11:56 AM, YixunZhou wrote: > Hi all, > I have a question about gen_invoke_common_managed_func. > How does "static char* gen_invoke_common_managed_func(char* stub)" work? > > I didn't find the implementation of function like "lea", "mov" in > gen_invoke_common_managed_func. And I am confused about what function does > gen_invoke_common_managed_func generate. > > Thanks~ > > -- > > Best regard, > Yixun Zhou > seanny2003@gmail.com > > >