1365 fprintf(fp, " }\n"); |
1365 fprintf(fp, " }\n"); |
1366 } |
1366 } |
1367 else if (!strcmp(oper->ideal_type(_globalNames), "ConN")) { |
1367 else if (!strcmp(oper->ideal_type(_globalNames), "ConN")) { |
1368 // Access the locally stored constant |
1368 // Access the locally stored constant |
1369 fprintf(fp," virtual intptr_t constant() const {"); |
1369 fprintf(fp," virtual intptr_t constant() const {"); |
1370 fprintf(fp, " return _c0->make_oopptr()->get_con();"); |
1370 fprintf(fp, " return _c0->get_ptrtype()->get_con();"); |
1371 fprintf(fp, " }\n"); |
1371 fprintf(fp, " }\n"); |
1372 // Generate query to determine if this pointer is an oop |
1372 // Generate query to determine if this pointer is an oop |
1373 fprintf(fp," virtual bool constant_is_oop() const {"); |
1373 fprintf(fp," virtual bool constant_is_oop() const {"); |
1374 fprintf(fp, " return _c0->make_oopptr()->isa_oop_ptr();"); |
1374 fprintf(fp, " return _c0->get_ptrtype()->isa_oop_ptr();"); |
1375 fprintf(fp, " }\n"); |
1375 fprintf(fp, " }\n"); |
1376 } |
1376 } |
1377 else if (!strcmp(oper->ideal_type(_globalNames), "ConL")) { |
1377 else if (!strcmp(oper->ideal_type(_globalNames), "ConL")) { |
1378 fprintf(fp," virtual intptr_t constant() const {"); |
1378 fprintf(fp," virtual intptr_t constant() const {"); |
1379 // We don't support addressing modes with > 4Gig offsets. |
1379 // We don't support addressing modes with > 4Gig offsets. |