File tree Expand file tree Collapse file tree 9 files changed +29
-15
lines changed Expand file tree Collapse file tree 9 files changed +29
-15
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ void OptoRuntime::generate_uncommon_trap_blob() {
63
63
// Allocate space for the code
64
64
ResourceMark rm;
65
65
// Setup code generation tools
66
- CodeBuffer buffer (" uncommon_trap_blob" , 2048 , 1024 );
66
+ const char * name = OptoRuntime::stub_name (OptoStubId::uncommon_trap_id);
67
+ CodeBuffer buffer (name, 2048 , 1024 );
67
68
MacroAssembler* masm = new MacroAssembler (&buffer);
68
69
69
70
assert (SimpleRuntimeFrame::framesize % 4 == 0 , " sp not 16-byte aligned" );
@@ -282,7 +283,8 @@ void OptoRuntime::generate_exception_blob() {
282
283
// Allocate space for the code
283
284
ResourceMark rm;
284
285
// Setup code generation tools
285
- CodeBuffer buffer (" exception_blob" , 2048 , 1024 );
286
+ const char * name = OptoRuntime::stub_name (OptoStubId::exception_id);
287
+ CodeBuffer buffer (name, 2048 , 1024 );
286
288
MacroAssembler* masm = new MacroAssembler (&buffer);
287
289
288
290
// TODO check various assumptions made here
Original file line number Diff line number Diff line change @@ -47,11 +47,12 @@ void OptoRuntime::generate_uncommon_trap_blob() {
47
47
ResourceMark rm;
48
48
49
49
// setup code generation tools
50
+ const char * name = OptoRuntime::stub_name (OptoStubId::uncommon_trap_id);
50
51
#ifdef _LP64
51
- CodeBuffer buffer (" uncommon_trap_blob " , 2700 , 512 );
52
+ CodeBuffer buffer (name , 2700 , 512 );
52
53
#else
53
54
// Measured 8/7/03 at 660 in 32bit debug build
54
- CodeBuffer buffer (" uncommon_trap_blob " , 2000 , 512 );
55
+ CodeBuffer buffer (name , 2000 , 512 );
55
56
#endif
56
57
// bypassed when code generation useless
57
58
MacroAssembler* masm = new MacroAssembler (&buffer);
@@ -206,7 +207,8 @@ void OptoRuntime::generate_exception_blob() {
206
207
207
208
// setup code generation tools
208
209
// Measured 8/7/03 at 256 in 32bit debug build
209
- CodeBuffer buffer (" exception_blob" , 600 , 512 );
210
+ const char * name = OptoRuntime::stub_name (OptoStubId::exception_id);
211
+ CodeBuffer buffer (name, 600 , 512 );
210
212
MacroAssembler* masm = new MacroAssembler (&buffer);
211
213
212
214
int framesize_in_words = 2 ; // FP + LR
Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ void OptoRuntime::generate_exception_blob() {
71
71
// Allocate space for the code.
72
72
ResourceMark rm;
73
73
// Setup code generation tools.
74
- CodeBuffer buffer (" exception_blob" , 2048 , 1024 );
74
+ const char * name = OptoRuntime::stub_name (OptoStubId::exception_id);
75
+ CodeBuffer buffer (name, 2048 , 1024 );
75
76
InterpreterMacroAssembler* masm = new InterpreterMacroAssembler (&buffer);
76
77
77
78
address start = __ pc ();
Original file line number Diff line number Diff line change @@ -3104,7 +3104,8 @@ void OptoRuntime::generate_uncommon_trap_blob() {
3104
3104
// Allocate space for the code.
3105
3105
ResourceMark rm;
3106
3106
// Setup code generation tools.
3107
- CodeBuffer buffer (" uncommon_trap_blob" , 2048 , 1024 );
3107
+ const char * name = OptoRuntime::stub_name (OptoStubId::uncommon_trap_id);
3108
+ CodeBuffer buffer (name, 2048 , 1024 );
3108
3109
InterpreterMacroAssembler* masm = new InterpreterMacroAssembler (&buffer);
3109
3110
address start = __ pc ();
3110
3111
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ void OptoRuntime::generate_uncommon_trap_blob() {
61
61
// Allocate space for the code
62
62
ResourceMark rm;
63
63
// Setup code generation tools
64
- CodeBuffer buffer (" uncommon_trap_blob" , 2048 , 1024 );
64
+ const char * name = OptoRuntime::stub_name (OptoStubId::uncommon_trap_id);
65
+ CodeBuffer buffer (name, 2048 , 1024 );
65
66
MacroAssembler* masm = new MacroAssembler (&buffer);
66
67
assert_cond (masm != nullptr );
67
68
@@ -279,7 +280,8 @@ void OptoRuntime::generate_exception_blob() {
279
280
// Allocate space for the code
280
281
ResourceMark rm;
281
282
// Setup code generation tools
282
- CodeBuffer buffer (" exception_blob" , 2048 , 1024 );
283
+ const char * name = OptoRuntime::stub_name (OptoStubId::exception_id);
284
+ CodeBuffer buffer (name, 2048 , 1024 );
283
285
MacroAssembler* masm = new MacroAssembler (&buffer);
284
286
assert_cond (masm != nullptr );
285
287
Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ void OptoRuntime::generate_exception_blob() {
70
70
// Allocate space for the code
71
71
ResourceMark rm;
72
72
// Setup code generation tools
73
- CodeBuffer buffer (" exception_blob" , 2048 , 1024 );
73
+ const char * name = OptoRuntime::stub_name (OptoStubId::exception_id);
74
+ CodeBuffer buffer (name, 2048 , 1024 );
74
75
MacroAssembler* masm = new MacroAssembler (&buffer);
75
76
76
77
Register handle_exception = Z_ARG5;
Original file line number Diff line number Diff line change @@ -2766,7 +2766,8 @@ void OptoRuntime::generate_uncommon_trap_blob() {
2766
2766
// Allocate space for the code
2767
2767
ResourceMark rm;
2768
2768
// Setup code generation tools
2769
- CodeBuffer buffer (" uncommon_trap_blob" , 2048 , 1024 );
2769
+ const char * name = OptoRuntime::stub_name (OptoStubId::uncommon_trap_id);
2770
+ CodeBuffer buffer (name, 2048 , 1024 );
2770
2771
InterpreterMacroAssembler* masm = new InterpreterMacroAssembler (&buffer);
2771
2772
2772
2773
Register unroll_block_reg = Z_tmp_1;
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ void OptoRuntime::generate_uncommon_trap_blob() {
45
45
// allocate space for the code
46
46
ResourceMark rm;
47
47
// setup code generation tools
48
- CodeBuffer buffer (" uncommon_trap_blob" , 512 , 512 );
48
+ const char * name = OptoRuntime::stub_name (OptoStubId::uncommon_trap_id);
49
+ CodeBuffer buffer (name, 512 , 512 );
49
50
MacroAssembler* masm = new MacroAssembler (&buffer);
50
51
51
52
enum frame_layout {
@@ -255,7 +256,8 @@ void OptoRuntime::generate_exception_blob() {
255
256
// allocate space for the code
256
257
ResourceMark rm;
257
258
// setup code generation tools
258
- CodeBuffer buffer (" exception_blob" , 512 , 512 );
259
+ const char * name = OptoRuntime::stub_name (OptoStubId::exception_id);
260
+ CodeBuffer buffer (name, 512 , 512 );
259
261
MacroAssembler* masm = new MacroAssembler (&buffer);
260
262
261
263
OopMapSet *oop_maps = new OopMapSet ();
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ void OptoRuntime::generate_uncommon_trap_blob() {
59
59
// Allocate space for the code
60
60
ResourceMark rm;
61
61
// Setup code generation tools
62
- CodeBuffer buffer (" uncommon_trap_blob" , 2048 , 1024 );
62
+ const char * name = OptoRuntime::stub_name (OptoStubId::uncommon_trap_id);
63
+ CodeBuffer buffer (name, 2048 , 1024 );
63
64
MacroAssembler* masm = new MacroAssembler (&buffer);
64
65
65
66
assert (SimpleRuntimeFrame::framesize % 4 == 0 , " sp not 16-byte aligned" );
@@ -264,7 +265,8 @@ void OptoRuntime::generate_exception_blob() {
264
265
// Allocate space for the code
265
266
ResourceMark rm;
266
267
// Setup code generation tools
267
- CodeBuffer buffer (" exception_blob" , 2048 , 1024 );
268
+ const char * name = OptoRuntime::stub_name (OptoStubId::exception_id);
269
+ CodeBuffer buffer (name, 2048 , 1024 );
268
270
MacroAssembler* masm = new MacroAssembler (&buffer);
269
271
270
272
You can’t perform that action at this time.
0 commit comments