Mercurial > hg > graal-jvmci-8
comparison src/share/vm/code/codeBlob.cpp @ 7125:1baf7f1e3f23
decoupled C++ Graal runtime from C1
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 03 Dec 2012 15:32:17 +0100 |
parents | 7d815d842ee0 |
children | 5d0bb7d52783 |
comparison
equal
deleted
inserted
replaced
7124:ab65fa23f8e9 | 7125:1baf7f1e3f23 |
---|---|
132 assert(_data_offset <= size, "codeBlob is too small"); | 132 assert(_data_offset <= size, "codeBlob is too small"); |
133 | 133 |
134 cb->copy_code_and_locs_to(this); | 134 cb->copy_code_and_locs_to(this); |
135 set_oop_maps(oop_maps); | 135 set_oop_maps(oop_maps); |
136 _frame_size = frame_size; | 136 _frame_size = frame_size; |
137 #ifdef COMPILER1 | 137 #if defined(COMPILER1) || defined(GRAAL) |
138 | |
138 // probably wrong for tiered | 139 // probably wrong for tiered |
139 assert(_frame_size >= -1, "must use frame size or -1 for runtime stubs"); | 140 assert(_frame_size >= -1, "must use frame size or -1 for runtime stubs"); |
140 #endif // COMPILER1 | 141 #endif // COMPILER1 || GRAAL |
141 } | 142 } |
142 | 143 |
143 | 144 |
144 void CodeBlob::set_oop_maps(OopMapSet* p) { | 145 void CodeBlob::set_oop_maps(OopMapSet* p) { |
145 // Danger Will Robinson! This method allocates a big | 146 // Danger Will Robinson! This method allocates a big |
381 : SingletonBlob("DeoptimizationBlob", cb, sizeof(DeoptimizationBlob), size, frame_size, oop_maps) | 382 : SingletonBlob("DeoptimizationBlob", cb, sizeof(DeoptimizationBlob), size, frame_size, oop_maps) |
382 { | 383 { |
383 _unpack_offset = unpack_offset; | 384 _unpack_offset = unpack_offset; |
384 _unpack_with_exception = unpack_with_exception_offset; | 385 _unpack_with_exception = unpack_with_exception_offset; |
385 _unpack_with_reexecution = unpack_with_reexecution_offset; | 386 _unpack_with_reexecution = unpack_with_reexecution_offset; |
386 #ifdef COMPILER1 | 387 #if defined(COMPILER1) || defined(GRAAL) |
387 _unpack_with_exception_in_tls = -1; | 388 _unpack_with_exception_in_tls = -1; |
388 #endif | 389 #endif |
389 } | 390 } |
390 | 391 |
391 | 392 |