vframe_prims.hpp

Go to the documentation of this file.
00001 /* Copyright 1996 LongView Technologies L.L.C. $Revision: 1.2 $ */
00002 /* Copyright (c) 2006, Sun Microsystems, Inc.
00003 All rights reserved.
00004 
00005 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the 
00006 following conditions are met:
00007 
00008     * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
00009     * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following 
00010           disclaimer in the documentation and/or other materials provided with the distribution.
00011     * Neither the name of Sun Microsystems nor the names of its contributors may be used to endorse or promote products derived 
00012           from this software without specific prior written permission.
00013 
00014 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT 
00015 NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 
00016 THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
00017 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
00018 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 
00019 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
00020 
00021 
00022 */
00023 
00024 
00025 // Primitives for vframe
00026 
00027 class vframeOopPrimitives : AllStatic {
00028  private: 
00029   static void inc_calls() { number_of_calls++; }
00030  public:
00031   static int number_of_calls;
00032 
00033   //%prim
00034   // <Activation> primitiveActivationProcess ^<SmallInteger> =
00035   //   Internal { flags = #(Pure)
00036   //              name  = 'vframeOopPrimitives::index' }
00037   //%
00038   static PRIM_DECL_1(process, oop receiver);
00039 
00040   //%prim
00041   // <Activation> primitiveActivationIndex ^<SmallInteger> =
00042   //   Internal { flags = #(Pure)
00043   //              name  = 'vframeOopPrimitives::index' }
00044   //%
00045   static PRIM_DECL_1(index, oop receiver);
00046 
00047   //%prim
00048   // <Activation> primitiveActivationTimeStamp ^<SmallInteger> =
00049   //   Internal { flags = #(Pure)
00050   //              name  = 'vframeOopPrimitives::time_stamp' }
00051   //%
00052   static PRIM_DECL_1(time_stamp, oop receiver);
00053 
00054   //%prim
00055   // <Activation> primitiveActivationIsSmalltalkActivationIfFail: failBlock <PrimFailBlock> ^<Boolean> =
00056   //   Internal { flags = #(Pure)
00057   //              errors = #(ActivationIsInvalid)
00058   //              name  = 'vframeOopPrimitives::is_smalltalk_activation' }
00059   //%
00060   static PRIM_DECL_1(is_smalltalk_activation, oop receiver);
00061 
00062   //%prim
00063   // <Activation> primitiveActivationByteCodeIndexIfFail: failBlock <PrimFailBlock> ^<SmallInteger> =
00064   //   Internal { flags  = #(Pure)
00065   //              errors = #(ActivationIsInvalid ExternalActivation)
00066   //              name   = 'vframeOopPrimitives::byte_code_index' }
00067   //%
00068   static PRIM_DECL_1(byte_code_index, oop receiver);
00069 
00070   //%prim
00071   // <Activation> primitiveActivationExpressionStackIfFail: failBlock <PrimFailBlock> ^<IndexedInstanceVariables> =
00072   //   Internal { flags  = #(Pure)
00073   //              errors = #(ActivationIsInvalid ExternalActivation)
00074   //              name   = 'vframeOopPrimitives::expression_stack' }
00075   //%
00076   static PRIM_DECL_1(expression_stack, oop receiver);
00077 
00078   //%prim
00079   // <Activation> primitiveActivationMethodIfFail: failBlock <PrimFailBlock> ^<SmallInteger> =
00080   //   Internal { flags  = #(Pure)
00081   //              errors = #(ActivationIsInvalid ExternalActivation)
00082   //              name   = 'vframeOopPrimitives::method' }
00083   //%
00084   static PRIM_DECL_1(method, oop receiver);
00085 
00086   //%prim
00087   // <Activation> primitiveActivationReceiverIfFail: failBlock <PrimFailBlock> ^<SmallInteger> =
00088   //   Internal { flags  = #(Pure)
00089   //              errors = #(ActivationIsInvalid ExternalActivation)
00090   //              name   = 'vframeOopPrimitives::receiver' }
00091   //%
00092   static PRIM_DECL_1(receiver, oop recv);
00093 
00094   //%prim
00095   // <Activation> primitiveActivationTemporariesIfFail: failBlock <PrimFailBlock> ^<IndexedInstanceVariables> =
00096   //   Internal { flags  = #(Pure)
00097   //              errors = #(ActivationIsInvalid ExternalActivation)
00098   //              name   = 'vframeOopPrimitives::temporaries' }
00099   //%
00100   static PRIM_DECL_1(temporaries, oop receiver);
00101 
00102   //%prim
00103   // <Activation> primitiveActivationArgumentsIfFail: failBlock <PrimFailBlock> ^<IndexedInstanceVariables> =
00104   //   Internal { flags  = #(Pure)
00105   //              errors = #(ActivationIsInvalid ExternalActivation)
00106   //              name   = 'vframeOopPrimitives::arguments' }
00107   //%
00108   static PRIM_DECL_1(arguments, oop receiver);
00109 
00110   //%prim
00111   // <Activation> primitiveActivationPrettyPrintIfFail: failBlock <PrimFailBlock> ^<IndexedByteInstanceVariables> =
00112   //   Internal { flags  = #(Pure)
00113   //              errors = #(ActivationIsInvalid ExternalActivation)
00114   //              name   = 'vframeOopPrimitives::pretty_print' }
00115   //%
00116   static PRIM_DECL_1(pretty_print, oop receiver);
00117 
00118 };

Generated on Mon Oct 9 13:37:30 2006 for Strongtalk VM by  doxygen 1.4.7