@@ -88,7 +88,7 @@ uint32_t encodeHelperBranch(bool isBranchAndLink, TR::SymbolReference *symRef, u
88
88
return (isBranchAndLink ? 0x0B000000 : 0x0A000000 ) | encodeBranchDistance ((uintptr_t ) cursor, target) | (((uint32_t ) cc) << 28 );
89
89
}
90
90
91
- uint8_t *TR_ARMLabelInstruction ::generateBinaryEncoding ()
91
+ uint8_t *TR::ARMLabelInstruction ::generateBinaryEncoding ()
92
92
{
93
93
uint8_t *instructionStart = cg ()->getBinaryBufferCursor ();
94
94
TR::LabelSymbol *label = getLabelSymbol ();
@@ -128,7 +128,7 @@ uint8_t *TR_ARMLabelInstruction::generateBinaryEncoding()
128
128
return cursor;
129
129
}
130
130
131
- int32_t TR_ARMLabelInstruction ::estimateBinaryLength (int32_t currentEstimate)
131
+ int32_t TR::ARMLabelInstruction ::estimateBinaryLength (int32_t currentEstimate)
132
132
{
133
133
if (getOpCode ().isLabel ()) // LABEL
134
134
{
@@ -145,17 +145,17 @@ int32_t TR_ARMLabelInstruction::estimateBinaryLength(int32_t currentEstimate)
145
145
// Conditional branches are just like label instructions but have their
146
146
// CC set - for now, simply forward - TODO remove entirely.
147
147
148
- uint8_t *TR_ARMConditionalBranchInstruction ::generateBinaryEncoding ()
148
+ uint8_t *TR::ARMConditionalBranchInstruction ::generateBinaryEncoding ()
149
149
{
150
- return TR_ARMLabelInstruction ::generateBinaryEncoding ();
150
+ return TR::ARMLabelInstruction ::generateBinaryEncoding ();
151
151
}
152
152
153
- int32_t TR_ARMConditionalBranchInstruction ::estimateBinaryLength (int32_t currentEstimate)
153
+ int32_t TR::ARMConditionalBranchInstruction ::estimateBinaryLength (int32_t currentEstimate)
154
154
{
155
- return TR_ARMLabelInstruction ::estimateBinaryLength (currentEstimate);
155
+ return TR::ARMLabelInstruction ::estimateBinaryLength (currentEstimate);
156
156
}
157
157
158
- uint8_t *TR_ARMAdminInstruction ::generateBinaryEncoding ()
158
+ uint8_t *TR::ARMAdminInstruction ::generateBinaryEncoding ()
159
159
{
160
160
uint8_t *instructionStart = cg ()->getBinaryBufferCursor ();
161
161
uint32_t i;
@@ -196,13 +196,13 @@ uint8_t *TR_ARMAdminInstruction::generateBinaryEncoding()
196
196
return instructionStart;
197
197
}
198
198
199
- int32_t TR_ARMAdminInstruction ::estimateBinaryLength (int32_t currentEstimate)
199
+ int32_t TR::ARMAdminInstruction ::estimateBinaryLength (int32_t currentEstimate)
200
200
{
201
201
setEstimatedBinaryLength (0 );
202
202
return currentEstimate;
203
203
}
204
204
205
- uint8_t *TR_ARMImmInstruction ::generateBinaryEncoding ()
205
+ uint8_t *TR::ARMImmInstruction ::generateBinaryEncoding ()
206
206
{
207
207
TR::Compilation *comp = cg ()->comp ();
208
208
uint8_t *instructionStart = cg ()->getBinaryBufferCursor ();
@@ -244,7 +244,7 @@ uint8_t *TR_ARMImmInstruction::generateBinaryEncoding()
244
244
return cursor;
245
245
}
246
246
247
- uint8_t *TR_ARMImmSymInstruction ::generateBinaryEncoding ()
247
+ uint8_t *TR::ARMImmSymInstruction ::generateBinaryEncoding ()
248
248
{
249
249
TR::Compilation *comp = TR::comp ();
250
250
uint8_t *instructionStart = cg ()->getBinaryBufferCursor ();
@@ -359,7 +359,7 @@ uint8_t *TR_ARMImmSymInstruction::generateBinaryEncoding()
359
359
return cursor;
360
360
}
361
361
362
- int32_t TR_ARMImmSymInstruction ::estimateBinaryLength (int32_t currentEstimate)
362
+ int32_t TR::ARMImmSymInstruction ::estimateBinaryLength (int32_t currentEstimate)
363
363
{
364
364
// *this swipeable for debugging purposes
365
365
int32_t length;
@@ -375,7 +375,7 @@ int32_t TR_ARMImmSymInstruction::estimateBinaryLength(int32_t currentEstimate)
375
375
return (currentEstimate + length);
376
376
}
377
377
378
- uint8_t *TR_ARMTrg1Instruction ::generateBinaryEncoding ()
378
+ uint8_t *TR::ARMTrg1Instruction ::generateBinaryEncoding ()
379
379
{
380
380
uint8_t *instructionStart = cg ()->getBinaryBufferCursor ();
381
381
uint8_t *cursor = instructionStart;
@@ -388,7 +388,7 @@ uint8_t *TR_ARMTrg1Instruction::generateBinaryEncoding()
388
388
return cursor;
389
389
}
390
390
391
- uint8_t *TR_ARMTrg1Src2Instruction ::generateBinaryEncoding ()
391
+ uint8_t *TR::ARMTrg1Src2Instruction ::generateBinaryEncoding ()
392
392
{
393
393
TR::Compilation *comp = cg ()->comp ();
394
394
uint8_t *instructionStart = cg ()->getBinaryBufferCursor ();
@@ -416,7 +416,7 @@ uint8_t *TR_ARMTrg1Src2Instruction::generateBinaryEncoding()
416
416
return cursor;
417
417
}
418
418
419
- uint8_t *TR_ARMLoadStartPCInstruction ::generateBinaryEncoding ()
419
+ uint8_t *TR::ARMLoadStartPCInstruction ::generateBinaryEncoding ()
420
420
{
421
421
/* Calculates the offset from the current instruction to startPCAddr, then set it to the operand2 */
422
422
uint8_t *startPCAddr = (uint8_t *)getSymbolReference ()->getSymbol ()->getStaticSymbol ()->getStaticAddress ();
@@ -434,7 +434,7 @@ uint8_t *TR_ARMLoadStartPCInstruction::generateBinaryEncoding()
434
434
getNext ()->remove ();
435
435
getNext ()->remove ();
436
436
437
- return TR_ARMTrg1Src2Instruction ::generateBinaryEncoding ();
437
+ return TR::ARMTrg1Src2Instruction ::generateBinaryEncoding ();
438
438
}
439
439
else
440
440
{
@@ -447,14 +447,14 @@ uint8_t *TR_ARMLoadStartPCInstruction::generateBinaryEncoding()
447
447
TR_ARMOperand2 *op2_1 = new (cg ()->trHeapMemory ()) TR_ARMOperand2 ((base >> 8 ) & 0x000000FF , 8 + bitTrailing);
448
448
TR_ARMOperand2 *op2_0 = new (cg ()->trHeapMemory ()) TR_ARMOperand2 (base & 0x000000FF , bitTrailing);
449
449
setSource2Operand (op2_1);
450
- TR_ARMTrg1Src2Instruction *secondInstruction = (TR_ARMTrg1Src2Instruction *)getNext ();
450
+ TR::ARMTrg1Src2Instruction *secondInstruction = (TR::ARMTrg1Src2Instruction *)getNext ();
451
451
secondInstruction->setSource2Operand (op2_0);
452
452
453
453
/* Remove the trailing 2 Trg1Src2Instructions */
454
454
secondInstruction->getNext ()->remove ();
455
455
secondInstruction->getNext ()->remove ();
456
456
457
- return TR_ARMTrg1Src2Instruction ::generateBinaryEncoding ();
457
+ return TR::ARMTrg1Src2Instruction ::generateBinaryEncoding ();
458
458
}
459
459
else
460
460
{
@@ -465,22 +465,22 @@ uint8_t *TR_ARMLoadStartPCInstruction::generateBinaryEncoding()
465
465
TR_ARMOperand2 *op2_0 = new (cg ()->trHeapMemory ()) TR_ARMOperand2 (localVal.getByte0 (), 0 );
466
466
467
467
setSource2Operand (op2_3);
468
- TR_ARMTrg1Src2Instruction *secondInstruction = (TR_ARMTrg1Src2Instruction *)getNext ();
468
+ TR::ARMTrg1Src2Instruction *secondInstruction = (TR::ARMTrg1Src2Instruction *)getNext ();
469
469
secondInstruction->setSource2Operand (op2_2);
470
470
471
- TR_ARMTrg1Src2Instruction *thirdInstruction = (TR_ARMTrg1Src2Instruction *)secondInstruction->getNext ();
471
+ TR::ARMTrg1Src2Instruction *thirdInstruction = (TR::ARMTrg1Src2Instruction *)secondInstruction->getNext ();
472
472
thirdInstruction->setSource2Operand (op2_1);
473
473
474
- TR_ARMTrg1Src2Instruction *fourthInstruction = (TR_ARMTrg1Src2Instruction *)thirdInstruction->getNext ();
474
+ TR::ARMTrg1Src2Instruction *fourthInstruction = (TR::ARMTrg1Src2Instruction *)thirdInstruction->getNext ();
475
475
fourthInstruction->setSource2Operand (op2_0);
476
476
477
- return TR_ARMTrg1Src2Instruction ::generateBinaryEncoding ();
477
+ return TR::ARMTrg1Src2Instruction ::generateBinaryEncoding ();
478
478
}
479
479
}
480
480
}
481
481
482
482
#if defined(__VFP_FP__) && !defined(__SOFTFP__)
483
- uint8_t *TR_ARMTrg2Src1Instruction ::generateBinaryEncoding ()
483
+ uint8_t *TR::ARMTrg2Src1Instruction ::generateBinaryEncoding ()
484
484
{
485
485
uint8_t *instructionStart = cg ()->getBinaryBufferCursor ();
486
486
uint8_t *cursor = instructionStart;
@@ -496,7 +496,7 @@ uint8_t *TR_ARMTrg2Src1Instruction::generateBinaryEncoding()
496
496
}
497
497
#endif
498
498
499
- uint8_t *TR_ARMMulInstruction ::generateBinaryEncoding ()
499
+ uint8_t *TR::ARMMulInstruction ::generateBinaryEncoding ()
500
500
{
501
501
uint8_t *instructionStart = cg ()->getBinaryBufferCursor ();
502
502
uint8_t *cursor = instructionStart;
@@ -511,7 +511,7 @@ uint8_t *TR_ARMMulInstruction::generateBinaryEncoding()
511
511
return cursor;
512
512
}
513
513
514
- uint8_t *TR_ARMMemInstruction ::generateBinaryEncoding ()
514
+ uint8_t *TR::ARMMemInstruction ::generateBinaryEncoding ()
515
515
{
516
516
uint8_t *instructionStart = cg ()->getBinaryBufferCursor ();
517
517
uint8_t *cursor = instructionStart;
@@ -525,13 +525,13 @@ uint8_t *TR_ARMMemInstruction::generateBinaryEncoding()
525
525
return cursor;
526
526
}
527
527
528
- int32_t TR_ARMMemInstruction ::estimateBinaryLength (int32_t currentEstimate)
528
+ int32_t TR::ARMMemInstruction ::estimateBinaryLength (int32_t currentEstimate)
529
529
{
530
530
setEstimatedBinaryLength (getMemoryReference ()->estimateBinaryLength (getOpCodeValue ()));
531
531
return (currentEstimate + getEstimatedBinaryLength ());
532
532
}
533
533
534
- uint8_t *TR_ARMTrg1MemSrc1Instruction ::generateBinaryEncoding ()
534
+ uint8_t *TR::ARMTrg1MemSrc1Instruction ::generateBinaryEncoding ()
535
535
{
536
536
uint8_t *instructionStart = cg ()->getBinaryBufferCursor ();
537
537
uint8_t *cursor = instructionStart;
@@ -546,7 +546,7 @@ uint8_t *TR_ARMTrg1MemSrc1Instruction::generateBinaryEncoding()
546
546
return cursor;
547
547
}
548
548
549
- uint8_t *TR_ARMControlFlowInstruction ::generateBinaryEncoding ()
549
+ uint8_t *TR::ARMControlFlowInstruction ::generateBinaryEncoding ()
550
550
{
551
551
uint8_t *instructionStart = cg ()->getBinaryBufferCursor ();
552
552
uint8_t *cursor = instructionStart;
@@ -556,7 +556,7 @@ uint8_t *TR_ARMControlFlowInstruction::generateBinaryEncoding()
556
556
return cursor;
557
557
}
558
558
559
- int32_t TR_ARMControlFlowInstruction ::estimateBinaryLength (int32_t currentEstimate)
559
+ int32_t TR::ARMControlFlowInstruction ::estimateBinaryLength (int32_t currentEstimate)
560
560
{
561
561
switch (getOpCodeValue ())
562
562
{
@@ -581,7 +581,7 @@ int32_t TR_ARMControlFlowInstruction::estimateBinaryLength(int32_t currentEstima
581
581
return currentEstimate + getEstimatedBinaryLength ();
582
582
}
583
583
584
- uint8_t *TR_ARMMultipleMoveInstruction ::generateBinaryEncoding ()
584
+ uint8_t *TR::ARMMultipleMoveInstruction ::generateBinaryEncoding ()
585
585
{
586
586
uint8_t *instructionStart = cg ()->getBinaryBufferCursor ();
587
587
uint8_t *cursor = instructionStart;
@@ -602,7 +602,7 @@ uint8_t *TR_ARMMultipleMoveInstruction::generateBinaryEncoding()
602
602
}
603
603
604
604
#ifdef J9_PROJECT_SPECIFIC
605
- uint8_t *TR_ARMVirtualGuardNOPInstruction ::generateBinaryEncoding ()
605
+ uint8_t *TR::ARMVirtualGuardNOPInstruction ::generateBinaryEncoding ()
606
606
{
607
607
uint8_t *cursor = cg ()->getBinaryBufferCursor ();
608
608
TR::LabelSymbol *label = getLabelSymbol ();
@@ -645,7 +645,7 @@ uint8_t *TR_ARMVirtualGuardNOPInstruction::generateBinaryEncoding()
645
645
return cursor+length;
646
646
}
647
647
648
- int32_t TR_ARMVirtualGuardNOPInstruction ::estimateBinaryLength (int32_t currentEstimate)
648
+ int32_t TR::ARMVirtualGuardNOPInstruction ::estimateBinaryLength (int32_t currentEstimate)
649
649
{
650
650
// This is a conservative estimation for reserving NOP space.
651
651
setEstimatedBinaryLength (ARM_INSTRUCTION_LENGTH);
0 commit comments