comparison src/share/vm/c1x/c1x_JavaAccess.cpp @ 2215:999f8086cc4f

More changes to make it compile and work on win64.
author Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
date Mon, 21 Feb 2011 20:44:57 +0100
parents 9569fdf936ff
children 0309d394eb5f
comparison
equal deleted inserted replaced
2214:30fd69882184 2215:999f8086cc4f
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 Symbol* name_symbol = SymbolTable::probe(name, strlen(name)); 32 Symbol* name_symbol = SymbolTable::probe(name, (int)strlen(name));
33 Symbol* signature_symbol = SymbolTable::probe(signature, strlen(signature)); 33 Symbol* signature_symbol = SymbolTable::probe(signature, (int)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