Changeset 293


Ignore:
Timestamp:
Jun 3, 2011, 3:41:07 PM (14 years ago)
Author:
dmik
Message:

hotspot: os2_x86_32.s: Backported linux_x86_32.s changes from b22.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/hotspot/src/os_cpu/os2_x86/vm/os2_x86_32.s

    r57 r293  
    11#
    2 # Copyright 2004-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
    2424
    25 # NOTE: This file is basically a copy of linux_x86-32.s with unnecessary
     25# NOTE: This file is basically a copy of linux_x86_32.s with unnecessary
    2626# functions thrown away
    2727       
     
    9999        addl     %esi,%edi
    1001004:      movl     %eax,%ecx            # byte count less prefix
    101         andl     $3,%ecx              # suffix byte count
     1015:      andl     $3,%ecx              # suffix byte count
    102102        jz       7f                   # no suffix
    103103        # copy suffix
    104 5:      xorl     %eax,%eax
     104        xorl     %eax,%eax
    1051056:      movb     (%esi,%eax,1),%dl
    106106        movb     %dl,(%edi,%eax,1)
     
    1371373:      rep;     smovl
    1381384:      movl     %eax,%ecx            # byte count
    139         andl     $3,%ecx              # suffix byte count
     1395:      andl     $3,%ecx              # suffix byte count
    140140        jz       7f                   # no suffix
    141141        # copy suffix
    142 5:      subl     %esi,%edi
     142        subl     %esi,%edi
    143143        addl     $3,%esi
    1441446:      movb     (%esi),%dl
     
    1921923:      rep;     smovl
    1931934:      movl     %eax,%ecx
    194         andl     $3,%ecx
     1945:      andl     $3,%ecx
    195195        jz       7f
    196196        # copy suffix
    197 5:      xorl     %eax,%eax
     197        xorl     %eax,%eax
    1981986:      movb     (%esi,%eax,1),%dl
    199199        movb     %dl,(%edi,%eax,1)
     
    228228        addl     %esi,%edi
    2292294:      movl     %eax,%ecx
    230         andl     $3,%ecx
     2305:      andl     $3,%ecx
    231231        jz       7f
    232 5:      subl     %esi,%edi
     232        subl     %esi,%edi
    233233        addl     $3,%esi
    2342346:      movb     (%esi),%dl
     
    265265        jz       1f                   # no prefix
    266266        # copy prefix
     267        subl     $1,%ecx
     268        jl       5f                   # zero count
    267269        movw     (%esi),%dx
    268270        movw     %dx,(%edi)
    269271        addl     %eax,%esi            # %eax == 2
    270272        addl     %eax,%edi
    271         subl     $1,%ecx
    2722731:      movl     %ecx,%eax            # word count less prefix
    273274        sarl     %ecx                 # dword count
     
    432433        .=.+10
    4334342:      subl     %esi,%edi
     435        jmp      4f
    434436        .p2align 4,,15
    4354373:      movl     (%esi),%edx
    436438        movl     %edx,(%edi,%esi,1)
    437439        addl     $4,%esi
    438         subl     $1,%ecx
    439         jnz      3b
     4404:      subl     $1,%ecx
     441        jge      3b
    440442        popl     %edi
    441443        popl     %esi
     
    445447        leal     -4(%edi,%ecx,4),%edi # to + count*4 - 4
    446448        cmpl     $32,%ecx
    447         ja       3f                   # > 32 dwords
     449        ja       4f                   # > 32 dwords
    448450        subl     %eax,%edi            # eax == from + count*4 - 4
     451        jmp      3f
    449452        .p2align 4,,15
    4504532:      movl     (%eax),%edx
    451454        movl     %edx,(%edi,%eax,1)
    452455        subl     $4,%eax
    453         subl     $1,%ecx
    454         jnz      2b
     4563:      subl     $1,%ecx
     457        jge      2b
    455458        cld
    456459        popl     %edi
    457460        popl     %esi
    458461        ret
    459 3:      movl     %eax,%esi            # from + count*4 - 4
     4624:      movl     %eax,%esi            # from + count*4 - 4
    460463        rep;     smovl
    461464        cld
Note: See TracChangeset for help on using the changeset viewer.