hotspot/src/cpu/zero/vm/cppInterpreter_zero.hpp
changeset 9136 94ebba447157
parent 7397 5b173b4ca846
child 13728 882756847a04
equal deleted inserted replaced
9135:f76543993e9d 9136:94ebba447157
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright 2007, 2008, 2010 Red Hat, Inc.
     3  * Copyright 2007, 2008, 2010, 2011 Red Hat, Inc.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     6  * This code is free software; you can redistribute it and/or modify it
     7  * under the terms of the GNU General Public License version 2 only, as
     7  * under the terms of the GNU General Public License version 2 only, as
     8  * published by the Free Software Foundation.
     8  * published by the Free Software Foundation.
    34   // Method entries
    34   // Method entries
    35   static int normal_entry(methodOop method, intptr_t UNUSED, TRAPS);
    35   static int normal_entry(methodOop method, intptr_t UNUSED, TRAPS);
    36   static int native_entry(methodOop method, intptr_t UNUSED, TRAPS);
    36   static int native_entry(methodOop method, intptr_t UNUSED, TRAPS);
    37   static int accessor_entry(methodOop method, intptr_t UNUSED, TRAPS);
    37   static int accessor_entry(methodOop method, intptr_t UNUSED, TRAPS);
    38   static int empty_entry(methodOop method, intptr_t UNUSED, TRAPS);
    38   static int empty_entry(methodOop method, intptr_t UNUSED, TRAPS);
       
    39   static int method_handle_entry(methodOop method, intptr_t UNUSED, TRAPS);
    39 
    40 
    40  public:
    41  public:
    41   // Main loop of normal_entry
    42   // Main loop of normal_entry
    42   static void main_loop(int recurse, TRAPS);
    43   static void main_loop(int recurse, TRAPS);
    43 
    44 
    44  private:
    45  private:
       
    46   // Helpers for method_handle_entry
       
    47   static void process_method_handle(oop method_handle, TRAPS);
       
    48   static void insert_vmslots(int insert_before, int num_slots, TRAPS);
       
    49   static void remove_vmslots(int first_slot, int num_slots, TRAPS);
       
    50   static BasicType result_type_of_handle(oop method_handle);
       
    51   static intptr_t* calculate_unwind_sp(ZeroStack* stack, oop method_handle);
       
    52   static void throw_exception(JavaThread* thread, Symbol* name,char *msg=NULL);
       
    53 
       
    54  private:
    45   // Fast result type determination
    55   // Fast result type determination
    46   static BasicType result_type_of(methodOop method);
    56   static BasicType result_type_of(methodOop method);
    47 
    57 
    48 #endif // CPU_ZERO_VM_CPPINTERPRETER_ZERO_HPP
    58 #endif // CPU_ZERO_VM_CPPINTERPRETER_ZERO_HPP