OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [java/] [verify-glue.c] - Diff between revs 816 and 826

Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 826
/* Glue to interface gcj with bytecode verifier.
/* Glue to interface gcj with bytecode verifier.
   Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
   Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 
 
This file is part of GCC.
This file is part of GCC.
 
 
GCC is free software; you can redistribute it and/or modify
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
the Free Software Foundation; either version 3, or (at your option)
any later version.
any later version.
 
 
GCC is distributed in the hope that it will be useful,
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
GNU General Public License for more details.
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.
<http://www.gnu.org/licenses/>.
 
 
Java and all Java-based marks are trademarks or registered trademarks
Java and all Java-based marks are trademarks or registered trademarks
of Sun Microsystems, Inc. in the United States and other countries.
of Sun Microsystems, Inc. in the United States and other countries.
The Free Software Foundation is independent of Sun Microsystems, Inc.  */
The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 
/* Written by Tom Tromey <tromey@redhat.com>.  */
/* Written by Tom Tromey <tromey@redhat.com>.  */
 
 
#include "config.h"
#include "config.h"
 
 
#include "system.h"
#include "system.h"
#include "coretypes.h"
#include "coretypes.h"
#include "tm.h"
#include "tm.h"
#include "tree.h"
#include "tree.h"
#include "parse.h"
#include "parse.h"
 
 
#include "verify.h"
#include "verify.h"
#include "java-tree.h"
#include "java-tree.h"
#include "java-except.h"
#include "java-except.h"
#include "toplev.h"
#include "toplev.h"
 
 
void *
void *
vfy_alloc (size_t bytes)
vfy_alloc (size_t bytes)
{
{
  return xmalloc (bytes);
  return xmalloc (bytes);
}
}
 
 
void
void
vfy_free (void *mem)
vfy_free (void *mem)
{
{
  free (mem);
  free (mem);
}
}
 
 
bool
bool
vfy_strings_equal (vfy_string one, vfy_string two)
vfy_strings_equal (vfy_string one, vfy_string two)
{
{
  return one == two;
  return one == two;
}
}
 
 
const char *
const char *
vfy_string_bytes (vfy_string str)
vfy_string_bytes (vfy_string str)
{
{
  return IDENTIFIER_POINTER (str);
  return IDENTIFIER_POINTER (str);
}
}
 
 
int
int
vfy_string_length (vfy_string str)
vfy_string_length (vfy_string str)
{
{
  return IDENTIFIER_LENGTH (str);
  return IDENTIFIER_LENGTH (str);
}
}
 
 
vfy_string
vfy_string
vfy_init_name (void)
vfy_init_name (void)
{
{
  return init_identifier_node;
  return init_identifier_node;
}
}
 
 
vfy_string
vfy_string
vfy_clinit_name (void)
vfy_clinit_name (void)
{
{
  return clinit_identifier_node;
  return clinit_identifier_node;
}
}
 
 
static const char*
static const char*
skip_one_type (const char* ptr)
skip_one_type (const char* ptr)
{
{
  int ch = *ptr++;
  int ch = *ptr++;
 
 
  while (ch == '[')
  while (ch == '[')
    {
    {
      ch = *ptr++;
      ch = *ptr++;
    }
    }
 
 
  if (ch == 'L')
  if (ch == 'L')
    {
    {
      do { ch = *ptr++; } while (ch != ';');
      do { ch = *ptr++; } while (ch != ';');
    }
    }
 
 
  return ptr;
  return ptr;
}
}
 
 
int
int
vfy_count_arguments (vfy_string signature)
vfy_count_arguments (vfy_string signature)
{
{
  const char *ptr = IDENTIFIER_POINTER (signature);
  const char *ptr = IDENTIFIER_POINTER (signature);
  int arg_count = 0;
  int arg_count = 0;
 
 
  /* Skip '('.  */
  /* Skip '('.  */
  ptr++;
  ptr++;
 
 
  /* Count args.  */
  /* Count args.  */
  while (*ptr != ')')
  while (*ptr != ')')
    {
    {
      ptr = skip_one_type (ptr);
      ptr = skip_one_type (ptr);
      arg_count += 1;
      arg_count += 1;
    }
    }
 
 
  return arg_count;
  return arg_count;
}
}
 
 
vfy_string
vfy_string
vfy_get_string (const char *s, int len)
vfy_get_string (const char *s, int len)
{
{
  return get_identifier_with_length (s, len);
  return get_identifier_with_length (s, len);
}
}
 
 
vfy_string
vfy_string
vfy_get_signature (vfy_method *method)
vfy_get_signature (vfy_method *method)
{
{
  return method->signature;
  return method->signature;
}
}
 
 
vfy_string
vfy_string
vfy_get_method_name (vfy_method *method)
vfy_get_method_name (vfy_method *method)
{
{
  return method->name;
  return method->name;
}
}
 
 
bool
bool
vfy_is_static (vfy_method *method)
vfy_is_static (vfy_method *method)
{
{
  return METHOD_STATIC (method->method);
  return METHOD_STATIC (method->method);
}
}
 
 
const unsigned char *
const unsigned char *
vfy_get_bytecode (vfy_method *method)
vfy_get_bytecode (vfy_method *method)
{
{
  return method->bytes;
  return method->bytes;
}
}
 
 
vfy_exception *
vfy_exception *
vfy_get_exceptions (vfy_method *method)
vfy_get_exceptions (vfy_method *method)
{
{
  return method->exceptions;
  return method->exceptions;
}
}
 
 
void
void
vfy_get_exception (vfy_exception *exceptions, int index, int *handler,
vfy_get_exception (vfy_exception *exceptions, int index, int *handler,
                   int *start, int *end, int *handler_type)
                   int *start, int *end, int *handler_type)
{
{
  *handler = exceptions[index].handler;
  *handler = exceptions[index].handler;
  *start = exceptions[index].start;
  *start = exceptions[index].start;
  *end = exceptions[index].end;
  *end = exceptions[index].end;
  *handler_type = exceptions[index].type;
  *handler_type = exceptions[index].type;
}
}
 
 
int
int
vfy_tag (vfy_constants *pool, int index)
vfy_tag (vfy_constants *pool, int index)
{
{
  int result = JPOOL_TAG (pool, index);
  int result = JPOOL_TAG (pool, index);
  /* gcj will resolve constant pool entries other than string and
  /* gcj will resolve constant pool entries other than string and
     class references.  The verifier doesn't care about the values, so
     class references.  The verifier doesn't care about the values, so
     we just strip off the resolved flag.  */
     we just strip off the resolved flag.  */
  if ((result & CONSTANT_ResolvedFlag) != 0
  if ((result & CONSTANT_ResolvedFlag) != 0
      && result != CONSTANT_ResolvedString
      && result != CONSTANT_ResolvedString
      && result != CONSTANT_ResolvedClass)
      && result != CONSTANT_ResolvedClass)
    result &= ~ CONSTANT_ResolvedFlag;
    result &= ~ CONSTANT_ResolvedFlag;
  return result;
  return result;
}
}
 
 
void
void
vfy_load_indexes (vfy_constants *pool, int index,
vfy_load_indexes (vfy_constants *pool, int index,
                  vfy_uint_16 *index0, vfy_uint_16 *index1)
                  vfy_uint_16 *index0, vfy_uint_16 *index1)
{
{
  *index0 = JPOOL_USHORT1 (pool, index);
  *index0 = JPOOL_USHORT1 (pool, index);
  *index1 = JPOOL_USHORT2 (pool, index);
  *index1 = JPOOL_USHORT2 (pool, index);
}
}
 
 
vfy_constants *
vfy_constants *
vfy_get_constants (vfy_jclass klass)
vfy_get_constants (vfy_jclass klass)
{
{
  return TYPE_JCF (klass);
  return TYPE_JCF (klass);
}
}
 
 
int
int
vfy_get_constants_size (vfy_jclass klass)
vfy_get_constants_size (vfy_jclass klass)
{
{
  return JPOOL_SIZE (TYPE_JCF (klass));
  return JPOOL_SIZE (TYPE_JCF (klass));
}
}
 
 
vfy_string
vfy_string
vfy_get_pool_string (vfy_constants *pool, int index)
vfy_get_pool_string (vfy_constants *pool, int index)
{
{
  return get_name_constant (pool, index);
  return get_name_constant (pool, index);
}
}
 
 
vfy_jclass
vfy_jclass
vfy_get_pool_class (vfy_constants *pool, int index)
vfy_get_pool_class (vfy_constants *pool, int index)
{
{
  vfy_jclass k;
  vfy_jclass k;
  k = get_class_constant (pool, index);
  k = get_class_constant (pool, index);
  return k;
  return k;
}
}
 
 
vfy_string
vfy_string
vfy_get_class_name (vfy_jclass klass)
vfy_get_class_name (vfy_jclass klass)
{
{
  return DECL_NAME (TYPE_NAME (klass));
  return DECL_NAME (TYPE_NAME (klass));
}
}
 
 
bool
bool
vfy_is_assignable_from (vfy_jclass target, vfy_jclass source)
vfy_is_assignable_from (vfy_jclass target, vfy_jclass source)
{
{
  /* Any class is always assignable to itself, or java.lang.Object. */
  /* Any class is always assignable to itself, or java.lang.Object. */
  if (source == target || target == object_type_node)
  if (source == target || target == object_type_node)
    return true;
    return true;
 
 
  /* For the C++ ABI, perform this test statically. */
  /* For the C++ ABI, perform this test statically. */
  if (! flag_indirect_dispatch)
  if (! flag_indirect_dispatch)
    return can_widen_reference_to (source, target);
    return can_widen_reference_to (source, target);
 
 
  /* For the BC-ABI, we assume at compile time that reference types are always
  /* For the BC-ABI, we assume at compile time that reference types are always
  compatible.  However, a type assertion table entry is emitted so that the
  compatible.  However, a type assertion table entry is emitted so that the
  runtime can detect binary-incompatible changes.  */
  runtime can detect binary-incompatible changes.  */
 
 
  add_type_assertion (current_class, JV_ASSERT_TYPES_COMPATIBLE, source,
  add_type_assertion (current_class, JV_ASSERT_TYPES_COMPATIBLE, source,
                      target);
                      target);
  return true;
  return true;
}
}
 
 
char
char
vfy_get_primitive_char (vfy_jclass klass)
vfy_get_primitive_char (vfy_jclass klass)
{
{
  tree sig;
  tree sig;
  gcc_assert (vfy_is_primitive (klass));
  gcc_assert (vfy_is_primitive (klass));
  sig = build_java_signature (klass);
  sig = build_java_signature (klass);
  return (IDENTIFIER_POINTER (sig))[0];
  return (IDENTIFIER_POINTER (sig))[0];
}
}
 
 
bool
bool
vfy_is_array (vfy_jclass klass)
vfy_is_array (vfy_jclass klass)
{
{
  return TYPE_ARRAY_P (klass);
  return TYPE_ARRAY_P (klass);
}
}
 
 
bool
bool
vfy_is_interface (vfy_jclass klass)
vfy_is_interface (vfy_jclass klass)
{
{
  return CLASS_INTERFACE (TYPE_NAME (klass));
  return CLASS_INTERFACE (TYPE_NAME (klass));
}
}
 
 
bool
bool
vfy_is_primitive (vfy_jclass klass)
vfy_is_primitive (vfy_jclass klass)
{
{
  return JPRIMITIVE_TYPE_P (klass);
  return JPRIMITIVE_TYPE_P (klass);
}
}
 
 
vfy_jclass
vfy_jclass
vfy_get_superclass (vfy_jclass klass)
vfy_get_superclass (vfy_jclass klass)
{
{
  vfy_jclass k;
  vfy_jclass k;
  k = CLASSTYPE_SUPER (klass);
  k = CLASSTYPE_SUPER (klass);
  return k;
  return k;
}
}
 
 
vfy_jclass
vfy_jclass
vfy_get_array_class (vfy_jclass klass)
vfy_get_array_class (vfy_jclass klass)
{
{
  vfy_jclass k;
  vfy_jclass k;
  k = build_java_array_type (klass, -1);
  k = build_java_array_type (klass, -1);
  return k;
  return k;
}
}
 
 
vfy_jclass
vfy_jclass
vfy_get_component_type (vfy_jclass klass)
vfy_get_component_type (vfy_jclass klass)
{
{
  vfy_jclass k;
  vfy_jclass k;
  gcc_assert (vfy_is_array (klass));
  gcc_assert (vfy_is_array (klass));
  k = TYPE_ARRAY_ELEMENT (klass);
  k = TYPE_ARRAY_ELEMENT (klass);
  if (TREE_CODE (k) == POINTER_TYPE)
  if (TREE_CODE (k) == POINTER_TYPE)
    k = TREE_TYPE (k);
    k = TREE_TYPE (k);
  return k;
  return k;
}
}
 
 
bool
bool
vfy_is_abstract (vfy_jclass klass)
vfy_is_abstract (vfy_jclass klass)
{
{
  return CLASS_ABSTRACT (TYPE_NAME (klass));
  return CLASS_ABSTRACT (TYPE_NAME (klass));
}
}
 
 
vfy_jclass
vfy_jclass
vfy_find_class (vfy_jclass ignore ATTRIBUTE_UNUSED, vfy_string name)
vfy_find_class (vfy_jclass ignore ATTRIBUTE_UNUSED, vfy_string name)
{
{
  vfy_jclass k;
  vfy_jclass k;
 
 
  k = get_type_from_signature (name);
  k = get_type_from_signature (name);
  if (TREE_CODE (k) == POINTER_TYPE)
  if (TREE_CODE (k) == POINTER_TYPE)
    k = TREE_TYPE (k);
    k = TREE_TYPE (k);
 
 
  return k;
  return k;
}
}
 
 
vfy_jclass
vfy_jclass
vfy_object_type (void)
vfy_object_type (void)
{
{
  vfy_jclass k;
  vfy_jclass k;
  k = object_type_node;
  k = object_type_node;
  return k;
  return k;
}
}
 
 
vfy_jclass
vfy_jclass
vfy_class_type (void)
vfy_class_type (void)
{
{
  return class_type_node;
  return class_type_node;
}
}
 
 
vfy_jclass
vfy_jclass
vfy_string_type (void)
vfy_string_type (void)
{
{
  vfy_jclass k;
  vfy_jclass k;
  k = string_type_node;
  k = string_type_node;
  return k;
  return k;
}
}
 
 
vfy_jclass
vfy_jclass
vfy_throwable_type (void)
vfy_throwable_type (void)
{
{
  vfy_jclass k;
  vfy_jclass k;
  k = throwable_type_node;
  k = throwable_type_node;
  return k;
  return k;
}
}
 
 
vfy_jclass
vfy_jclass
vfy_unsuitable_type (void)
vfy_unsuitable_type (void)
{
{
  return TYPE_SECOND;
  return TYPE_SECOND;
}
}
 
 
vfy_jclass
vfy_jclass
vfy_return_address_type (void)
vfy_return_address_type (void)
{
{
  return TYPE_RETURN_ADDR;
  return TYPE_RETURN_ADDR;
}
}
 
 
vfy_jclass
vfy_jclass
vfy_null_type (void)
vfy_null_type (void)
{
{
  return TYPE_NULL;
  return TYPE_NULL;
}
}
 
 
bool
bool
vfy_class_has_field (vfy_jclass klass, vfy_string name,
vfy_class_has_field (vfy_jclass klass, vfy_string name,
                     vfy_string signature)
                     vfy_string signature)
{
{
  tree field = TYPE_FIELDS (klass);
  tree field = TYPE_FIELDS (klass);
  while (field != NULL_TREE)
  while (field != NULL_TREE)
    {
    {
      if (DECL_NAME (field) == name
      if (DECL_NAME (field) == name
          && build_java_signature (TREE_TYPE (field)) == signature)
          && build_java_signature (TREE_TYPE (field)) == signature)
        return true;
        return true;
      field = TREE_CHAIN (field);
      field = TREE_CHAIN (field);
    }
    }
  return false;
  return false;
}
}
 
 
int
int
vfy_fail (const char *message, int pc, vfy_jclass ignore1 ATTRIBUTE_UNUSED,
vfy_fail (const char *message, int pc, vfy_jclass ignore1 ATTRIBUTE_UNUSED,
          vfy_method *ignore2 ATTRIBUTE_UNUSED)
          vfy_method *ignore2 ATTRIBUTE_UNUSED)
{
{
  if (pc == -1)
  if (pc == -1)
    error ("verification failed: %s", message);
    error ("verification failed: %s", message);
  else
  else
    error ("verification failed at PC=%d: %s", pc, message);
    error ("verification failed at PC=%d: %s", pc, message);
  /* We have to return a value for the verifier to throw.  */
  /* We have to return a value for the verifier to throw.  */
  return 1;
  return 1;
}
}
 
 
vfy_jclass
vfy_jclass
vfy_get_primitive_type (int type)
vfy_get_primitive_type (int type)
{
{
  vfy_jclass k;
  vfy_jclass k;
  k = decode_newarray_type (type);
  k = decode_newarray_type (type);
  return k;
  return k;
}
}
 
 
void
void
vfy_note_stack_depth (vfy_method *method, int pc, int depth)
vfy_note_stack_depth (vfy_method *method, int pc, int depth)
{
{
  tree val = make_tree_vec (method->max_locals + depth);
  tree val = make_tree_vec (method->max_locals + depth);
  VEC_replace (tree, type_states, pc, val);
  VEC_replace (tree, type_states, pc, val);
  /* Called for side effects.  */
  /* Called for side effects.  */
  lookup_label (pc);
  lookup_label (pc);
}
}
 
 
void
void
vfy_note_stack_type (vfy_method *method, int pc, int slot, vfy_jclass type)
vfy_note_stack_type (vfy_method *method, int pc, int slot, vfy_jclass type)
{
{
  tree vec;
  tree vec;
 
 
  slot += method->max_locals;
  slot += method->max_locals;
 
 
  if (type == object_type_node)
  if (type == object_type_node)
    type = object_ptr_type_node;
    type = object_ptr_type_node;
 
 
  vec = VEC_index (tree, type_states, pc);
  vec = VEC_index (tree, type_states, pc);
  TREE_VEC_ELT (vec, slot) = type;
  TREE_VEC_ELT (vec, slot) = type;
  /* Called for side effects.  */
  /* Called for side effects.  */
  lookup_label (pc);
  lookup_label (pc);
}
}
 
 
void
void
vfy_note_local_type (vfy_method *method ATTRIBUTE_UNUSED, int pc, int slot,
vfy_note_local_type (vfy_method *method ATTRIBUTE_UNUSED, int pc, int slot,
                     vfy_jclass type)
                     vfy_jclass type)
{
{
  tree vec;
  tree vec;
 
 
  if (type == object_type_node)
  if (type == object_type_node)
    type = object_ptr_type_node;
    type = object_ptr_type_node;
 
 
  vec = VEC_index (tree, type_states, pc);
  vec = VEC_index (tree, type_states, pc);
  TREE_VEC_ELT (vec, slot) = type;
  TREE_VEC_ELT (vec, slot) = type;
  /* Called for side effects.  */
  /* Called for side effects.  */
  lookup_label (pc);
  lookup_label (pc);
}
}
 
 
void
void
vfy_note_instruction_seen (int pc)
vfy_note_instruction_seen (int pc)
{
{
  instruction_bits[pc] |= BCODE_VERIFIED;
  instruction_bits[pc] |= BCODE_VERIFIED;
}
}
 
 
/* Verify the bytecodes of the current method.
/* Verify the bytecodes of the current method.
   Return 1 on success, 0 on failure. */
   Return 1 on success, 0 on failure. */
int
int
verify_jvm_instructions_new (JCF *jcf, const unsigned char *byte_ops,
verify_jvm_instructions_new (JCF *jcf, const unsigned char *byte_ops,
                         long length)
                         long length)
{
{
  vfy_method method;
  vfy_method method;
  int i, result, eh_count;
  int i, result, eh_count;
  vfy_exception *exceptions;
  vfy_exception *exceptions;
 
 
  method_init_exceptions ();
  method_init_exceptions ();
 
 
  JCF_SEEK (jcf, DECL_CODE_OFFSET (current_function_decl) + length);
  JCF_SEEK (jcf, DECL_CODE_OFFSET (current_function_decl) + length);
  eh_count = JCF_readu2 (jcf);
  eh_count = JCF_readu2 (jcf);
 
 
  exceptions = (vfy_exception *) xmalloc (eh_count * sizeof (vfy_exception));
  exceptions = (vfy_exception *) xmalloc (eh_count * sizeof (vfy_exception));
  for (i = 0; i < eh_count; ++i)
  for (i = 0; i < eh_count; ++i)
    {
    {
      int start_pc, end_pc, handler_pc, catch_type;
      int start_pc, end_pc, handler_pc, catch_type;
      unsigned char *p = jcf->read_ptr + 8 * i;
      unsigned char *p = jcf->read_ptr + 8 * i;
      start_pc = GET_u2 (p);
      start_pc = GET_u2 (p);
      end_pc = GET_u2 (p+2);
      end_pc = GET_u2 (p+2);
      handler_pc = GET_u2 (p+4);
      handler_pc = GET_u2 (p+4);
      catch_type = GET_u2 (p+6);
      catch_type = GET_u2 (p+6);
 
 
      if (start_pc < 0 || start_pc >= length
      if (start_pc < 0 || start_pc >= length
          || end_pc < 0 || end_pc > length || start_pc >= end_pc
          || end_pc < 0 || end_pc > length || start_pc >= end_pc
          || handler_pc < 0 || handler_pc >= length)
          || handler_pc < 0 || handler_pc >= length)
        {
        {
          error ("bad pc in exception_table");
          error ("bad pc in exception_table");
          free (exceptions);
          free (exceptions);
          return 0;
          return 0;
        }
        }
 
 
      exceptions[i].handler = handler_pc;
      exceptions[i].handler = handler_pc;
      exceptions[i].start = start_pc;
      exceptions[i].start = start_pc;
      exceptions[i].end = end_pc;
      exceptions[i].end = end_pc;
      exceptions[i].type = catch_type;
      exceptions[i].type = catch_type;
 
 
      add_handler (start_pc, end_pc,
      add_handler (start_pc, end_pc,
                   lookup_label (handler_pc),
                   lookup_label (handler_pc),
                   catch_type == 0 ? NULL_TREE
                   catch_type == 0 ? NULL_TREE
                   : get_class_constant (jcf, catch_type));
                   : get_class_constant (jcf, catch_type));
      instruction_bits[handler_pc] |= BCODE_EXCEPTION_TARGET;
      instruction_bits[handler_pc] |= BCODE_EXCEPTION_TARGET;
    }
    }
 
 
  gcc_assert (sanity_check_exception_range (&whole_range));
  gcc_assert (sanity_check_exception_range (&whole_range));
 
 
  method.method = current_function_decl;
  method.method = current_function_decl;
  method.signature = build_java_signature (TREE_TYPE (current_function_decl));
  method.signature = build_java_signature (TREE_TYPE (current_function_decl));
  method.name = DECL_NAME (current_function_decl);
  method.name = DECL_NAME (current_function_decl);
  method.bytes = byte_ops;
  method.bytes = byte_ops;
  method.exceptions = exceptions;
  method.exceptions = exceptions;
  method.defining_class = DECL_CONTEXT (current_function_decl);
  method.defining_class = DECL_CONTEXT (current_function_decl);
  method.max_stack = DECL_MAX_STACK (current_function_decl);
  method.max_stack = DECL_MAX_STACK (current_function_decl);
  method.max_locals = DECL_MAX_LOCALS (current_function_decl);
  method.max_locals = DECL_MAX_LOCALS (current_function_decl);
  method.code_length = length;
  method.code_length = length;
  method.exc_count = eh_count;
  method.exc_count = eh_count;
 
 
  result = verify_method (&method);
  result = verify_method (&method);
 
 
  free (exceptions);
  free (exceptions);
 
 
  return result;
  return result;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.