Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1x/c1x_JavaAccess.cpp @ 2182:9569fdf936ff
Made merge compile.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Wed, 16 Feb 2011 14:21:52 +0100 |
parents | cf75612bdaa5 |
children | 999f8086cc4f |
comparison
equal
deleted
inserted
replaced
2181:d25d4ca69222 | 2182:9569fdf936ff |
---|---|
27 | 27 |
28 // This function is similar to javaClasses.cpp, it computes the field offset of a (static or instance) field. | 28 // This function is similar to javaClasses.cpp, it computes the field offset of a (static or instance) field. |
29 // It looks up the name and signature symbols without creating new ones, all the symbols of these classes need to be already loaded. | 29 // It looks up the name and signature symbols without creating new ones, all the symbols of these classes need to be already loaded. |
30 | 30 |
31 static void compute_offset(int &dest_offset, klassOop klass_oop, const char* name, const char* signature, bool static_field) { | 31 static void compute_offset(int &dest_offset, klassOop klass_oop, const char* name, const char* signature, bool static_field) { |
32 symbolOop name_symbol = SymbolTable::probe(name, strlen(name)); | 32 Symbol* name_symbol = SymbolTable::probe(name, strlen(name)); |
33 symbolOop signature_symbol = SymbolTable::probe(signature, strlen(signature)); | 33 Symbol* signature_symbol = SymbolTable::probe(signature, strlen(signature)); |
34 #ifdef DEBUG | 34 #ifdef DEBUG |
35 if (name_symbol == NULL) { | 35 if (name_symbol == NULL) { |
36 tty->print_cr("symbol with name %s was not found in symbol table (klass=%s)", name, klass_oop->klass_part()->name()->as_C_string()); | 36 tty->print_cr("symbol with name %s was not found in symbol table (klass=%s)", name, klass_oop->klass_part()->name()->as_C_string()); |
37 } | 37 } |
38 #endif | 38 #endif |