Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1x/c1x_TargetMethod.cpp @ 1429:abc670a709dc
* -XX:TraceC1X=0...5 controls the native c1x tracing
* -Dc1x.debug=true turns on the logging proxies and lots of log output on the java side
* provide more information about types to the compiler (type hierarchy, etc)
* provide exception handler tables to the compiler
* add exception handlers to the nmethod
* correct implementation of ExceptionObject
* exception handling/unwinding entry points
* modified versions of handle/unwind exception stubs using standard calling conventions
* exception throwing
* implicit null pointer exception, implicit div by 0 exception
* arraystore/classcast/arrayindex exceptions
* checkcast implementation
* newarray, anewarray, multinewarray implementation
* correct new instance initialization
* access to java class mirrors (for ldc)
* unresolved methods
* class resolving - class patching (asssembly prototype copying)
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Tue, 31 Aug 2010 22:13:30 -0700 |
parents | 695451afc619 |
children | b61a43cd1255 |
comparison
equal
deleted
inserted
replaced
1428:695451afc619 | 1429:abc670a709dc |
---|---|
49 #define END_CLASS } | 49 #define END_CLASS } |
50 | 50 |
51 #define FIELD(klass, name, signature, static_field) compute_offset(klass::_##name##_offset, k, #name, signature, static_field); | 51 #define FIELD(klass, name, signature, static_field) compute_offset(klass::_##name##_offset, k, #name, signature, static_field); |
52 #define CHAR_FIELD(klass, name) FIELD(klass, name, "C", false) | 52 #define CHAR_FIELD(klass, name) FIELD(klass, name, "C", false) |
53 #define INT_FIELD(klass, name) FIELD(klass, name, "I", false) | 53 #define INT_FIELD(klass, name) FIELD(klass, name, "I", false) |
54 #define BOOLEAN_FIELD(klass, name) FIELD(klass, name, "Z", false) | |
54 #define LONG_FIELD(klass, name) FIELD(klass, name, "J", false) | 55 #define LONG_FIELD(klass, name) FIELD(klass, name, "J", false) |
55 #define OOP_FIELD(klass, name, signature) FIELD(klass, name, signature, false) | 56 #define OOP_FIELD(klass, name, signature) FIELD(klass, name, signature, false) |
56 #define STATIC_OOP_FIELD(klass, name, signature) FIELD(klass, name, signature, true) | 57 #define STATIC_OOP_FIELD(klass, name, signature) FIELD(klass, name, signature, true) |
57 | 58 |
58 | 59 |
59 void c1x_compute_offsets() { | 60 void c1x_compute_offsets() { |
60 COMPILER_CLASSES_DO(START_CLASS, END_CLASS, CHAR_FIELD, INT_FIELD, LONG_FIELD, OOP_FIELD, STATIC_OOP_FIELD) | 61 COMPILER_CLASSES_DO(START_CLASS, END_CLASS, CHAR_FIELD, INT_FIELD, BOOLEAN_FIELD, LONG_FIELD, OOP_FIELD, STATIC_OOP_FIELD) |
61 } | 62 } |
62 | 63 |
63 #define EMPTY0 | 64 #define EMPTY0 |
64 #define EMPTY1(x) | 65 #define EMPTY1(x) |
65 #define EMPTY2(x,y) | 66 #define EMPTY2(x,y) |
66 #define FIELD2(klass, name) int klass::_##name##_offset = 0; | 67 #define FIELD2(klass, name) int klass::_##name##_offset = 0; |
67 #define FIELD3(klass, name, sig) FIELD2(klass, name) | 68 #define FIELD3(klass, name, sig) FIELD2(klass, name) |
68 | 69 |
69 COMPILER_CLASSES_DO(EMPTY1, EMPTY0, FIELD2, FIELD2, FIELD2, FIELD3, FIELD3) | 70 COMPILER_CLASSES_DO(EMPTY1, EMPTY0, FIELD2, FIELD2, FIELD2, FIELD2, FIELD3, FIELD3) |
70 | 71 |
71 | 72 |
72 | 73 |
73 | 74 |
74 | 75 |