hotspot/src/share/vm/c1/c1_ValueStack.hpp
changeset 46630 75aa3e39d02c
parent 36817 57ce0a76b6b0
equal deleted inserted replaced
46629:8eeacdc76bf2 46630:75aa3e39d02c
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   171       case longTag   : lpush(t); return;
   171       case longTag   : lpush(t); return;
   172       case floatTag  : fpush(t); return;
   172       case floatTag  : fpush(t); return;
   173       case doubleTag : dpush(t); return;
   173       case doubleTag : dpush(t); return;
   174       case objectTag : apush(t); return;
   174       case objectTag : apush(t); return;
   175       case addressTag: rpush(t); return;
   175       case addressTag: rpush(t); return;
       
   176       default        : ShouldNotReachHere(); return;
   176     }
   177     }
   177     ShouldNotReachHere();
       
   178   }
   178   }
   179 
   179 
   180   Value ipop()                                   { return check(intTag    , _stack.pop()); }
   180   Value ipop()                                   { return check(intTag    , _stack.pop()); }
   181   Value fpop()                                   { return check(floatTag  , _stack.pop()); }
   181   Value fpop()                                   { return check(floatTag  , _stack.pop()); }
   182   Value apop()                                   { return check(objectTag , _stack.pop()); }
   182   Value apop()                                   { return check(objectTag , _stack.pop()); }
   190       case longTag   : return lpop();
   190       case longTag   : return lpop();
   191       case floatTag  : return fpop();
   191       case floatTag  : return fpop();
   192       case doubleTag : return dpop();
   192       case doubleTag : return dpop();
   193       case objectTag : return apop();
   193       case objectTag : return apop();
   194       case addressTag: return rpop();
   194       case addressTag: return rpop();
       
   195       default        : ShouldNotReachHere(); return NULL;
   195     }
   196     }
   196     ShouldNotReachHere();
       
   197     return NULL;
       
   198   }
   197   }
   199 
   198 
   200   Values* pop_arguments(int argument_size);
   199   Values* pop_arguments(int argument_size);
   201 
   200 
   202   // locks access
   201   // locks access