Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalJavaAccess.cpp @ 15264:29e3ba750c9e
graalCodeInstaller translate BytecodeFrame::BEFORE_BCI into SynchronizationEntryBCI
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 22 Apr 2014 15:12:38 +0200 |
parents | 2c940b1a48d8 |
children | 467ffc7f01cb |
comparison
equal
deleted
inserted
replaced
15263:0b25b81414c9 | 15264:29e3ba750c9e |
---|---|
57 #define BOOLEAN_FIELD(klass, name) FIELD(klass, name, "Z", false) | 57 #define BOOLEAN_FIELD(klass, name) FIELD(klass, name, "Z", false) |
58 #define LONG_FIELD(klass, name) FIELD(klass, name, "J", false) | 58 #define LONG_FIELD(klass, name) FIELD(klass, name, "J", false) |
59 #define FLOAT_FIELD(klass, name) FIELD(klass, name, "F", false) | 59 #define FLOAT_FIELD(klass, name) FIELD(klass, name, "F", false) |
60 #define OOP_FIELD(klass, name, signature) FIELD(klass, name, signature, false) | 60 #define OOP_FIELD(klass, name, signature) FIELD(klass, name, signature, false) |
61 #define STATIC_OOP_FIELD(klass, name, signature) FIELD(klass, name, signature, true) | 61 #define STATIC_OOP_FIELD(klass, name, signature) FIELD(klass, name, signature, true) |
62 #define STATIC_INT_FIELD(klass, name) FIELD(klass, name, "I", true) | |
62 | 63 |
63 | 64 |
64 void graal_compute_offsets() { | 65 void graal_compute_offsets() { |
65 COMPILER_CLASSES_DO(START_CLASS, END_CLASS, CHAR_FIELD, INT_FIELD, BOOLEAN_FIELD, LONG_FIELD, FLOAT_FIELD, OOP_FIELD, STATIC_OOP_FIELD) | 66 COMPILER_CLASSES_DO(START_CLASS, END_CLASS, CHAR_FIELD, INT_FIELD, BOOLEAN_FIELD, LONG_FIELD, FLOAT_FIELD, OOP_FIELD, STATIC_OOP_FIELD, STATIC_INT_FIELD) |
66 guarantee(InstalledCode::_address_offset == sizeof(oopDesc), "codeBlob must be first field!"); | 67 guarantee(InstalledCode::_address_offset == sizeof(oopDesc), "codeBlob must be first field!"); |
67 } | 68 } |
68 | 69 |
69 #define EMPTY0 | 70 #define EMPTY0 |
70 #define EMPTY1(x) | 71 #define EMPTY1(x) |
71 #define EMPTY2(x,y) | 72 #define EMPTY2(x,y) |
72 #define FIELD2(klass, name) int klass::_##name##_offset = 0; | 73 #define FIELD2(klass, name) int klass::_##name##_offset = 0; |
73 #define FIELD3(klass, name, sig) FIELD2(klass, name) | 74 #define FIELD3(klass, name, sig) FIELD2(klass, name) |
74 | 75 |
75 COMPILER_CLASSES_DO(EMPTY1, EMPTY0, FIELD2, FIELD2, FIELD2, FIELD2, FIELD2, FIELD3, FIELD3) | 76 COMPILER_CLASSES_DO(EMPTY1, EMPTY0, FIELD2, FIELD2, FIELD2, FIELD2, FIELD2, FIELD3, FIELD3, FIELD2) |
76 | 77 |
77 | 78 |
78 | 79 |
79 | 80 |
80 | 81 |