comparison src/share/vm/c1x/c1x_JavaAccess.cpp @ 2282:0309d394eb5f

Added support for non-null oop values in scope objects (allocating global handle).
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Mon, 04 Apr 2011 21:02:45 +0200
parents 999f8086cc4f
children 3e3e8bd12730
comparison
equal deleted inserted replaced
2281:0579225e0670 2282:0309d394eb5f
50 dest_offset = fd.offset(); 50 dest_offset = fd.offset();
51 } 51 }
52 52
53 // This piece of macro magic creates the contents of the c1x_compute_offsets method that initializes the field indices of all the access classes. 53 // This piece of macro magic creates the contents of the c1x_compute_offsets method that initializes the field indices of all the access classes.
54 54
55 #define START_CLASS(name) { klassOop k = SystemDictionary::name##_klass(); 55 #define START_CLASS(name) { klassOop k = SystemDictionary::name##_klass(); assert(k != NULL, "Could not find class " #name "");
56 56
57 #define END_CLASS } 57 #define END_CLASS }
58 58
59 #define FIELD(klass, name, signature, static_field) compute_offset(klass::_##name##_offset, k, #name, signature, static_field); 59 #define FIELD(klass, name, signature, static_field) compute_offset(klass::_##name##_offset, k, #name, signature, static_field);
60 #define CHAR_FIELD(klass, name) FIELD(klass, name, "C", false) 60 #define CHAR_FIELD(klass, name) FIELD(klass, name, "C", false)