Lines Matching defs:cfg
285 static boolean appliesToTieredBuild(String cfg) {
286 return (cfg != null &&
287 (cfg.startsWith("compiler1") ||
288 cfg.startsWith("compiler2")));
293 static boolean appliesToTieredBuild(String cfg, String key) {
294 return (appliesToTieredBuild(cfg))&& (key != null && !key.startsWith("Ignore"));
297 static String getTieredBuildCfg(String cfg) {
298 assert appliesToTieredBuild(cfg) : "illegal configuration " + cfg;
299 return "tiered" + cfg.substring(9);
302 static Object getField(String cfg, String field) {
303 if (cfg == null) {
307 Hashtable ht = (Hashtable)cfgData.get(cfg);
311 static String getFieldString(String cfg, String field) {
312 return (String)getField(cfg, field);
315 static Vector getFieldVector(String cfg, String field) {
316 return (Vector)getField(cfg, field);
319 static void putField(String cfg, String field, Object value) {
320 putFieldImpl(cfg, field, value);
321 if (appliesToTieredBuild(cfg, field)) {
322 putFieldImpl(getTieredBuildCfg(cfg), field, value);
326 private static void putFieldImpl(String cfg, String field, Object value) {
327 if (cfg == null) {
332 Hashtable ht = (Hashtable)cfgData.get(cfg);
335 cfgData.put(cfg, ht);
341 static Object getFieldHash(String cfg, String field, String name) {
342 Hashtable ht = (Hashtable)getField(cfg, field);
347 static void putFieldHash(String cfg, String field, String name, Object val) {
348 putFieldHashImpl(cfg, field, name, val);
349 if (appliesToTieredBuild(cfg, field)) {
350 putFieldHashImpl(getTieredBuildCfg(cfg), field, name, val);
354 private static void putFieldHashImpl(String cfg, String field, String name, Object val) {
355 Hashtable ht = (Hashtable)getField(cfg, field);
359 putFieldImpl(cfg, field, ht);
365 static void addFieldVector(String cfg, String field, String element) {
366 addFieldVectorImpl(cfg, field, element);
367 if (appliesToTieredBuild(cfg, field)) {
368 addFieldVectorImpl(getTieredBuildCfg(cfg), field, element);
372 private static void addFieldVectorImpl(String cfg, String field, String element) {
373 Vector v = (Vector)getField(cfg, field);
377 putFieldImpl(cfg, field, v);