204 AD.addSunCopyright(legal_text, legal_sz, AD._VM_file._fp); // .hpp 205 AD.addSunCopyright(legal_text, legal_sz, AD._DFA_file._fp); // .cpp 206 // Add include guards for all .hpp files 207 AD.addIncludeGuardStart(AD._HPP_file, "GENERATED_ADFILES_AD_HPP"); // .hpp 208 AD.addIncludeGuardStart(AD._VM_file, "GENERATED_ADFILES_ADGLOBALS_HPP"); // .hpp 209 // Add includes 210 AD.addInclude(AD._CPP_file, "precompiled.hpp"); 211 AD.addInclude(AD._CPP_file, "adfiles", get_basename(AD._VM_file._name)); 212 AD.addInclude(AD._CPP_file, "adfiles", get_basename(AD._HPP_file._name)); 213 AD.addInclude(AD._CPP_file, "memory/allocation.inline.hpp"); 214 AD.addInclude(AD._CPP_file, "asm/macroAssembler.inline.hpp"); 215 AD.addInclude(AD._CPP_file, "code/compiledIC.hpp"); 216 AD.addInclude(AD._CPP_file, "code/nativeInst.hpp"); 217 AD.addInclude(AD._CPP_file, "code/vmreg.inline.hpp"); 218 AD.addInclude(AD._CPP_file, "gc/shared/collectedHeap.inline.hpp"); 219 AD.addInclude(AD._CPP_file, "oops/compiledICHolder.hpp"); 220 AD.addInclude(AD._CPP_file, "oops/markOop.hpp"); 221 AD.addInclude(AD._CPP_file, "oops/method.hpp"); 222 AD.addInclude(AD._CPP_file, "oops/oop.inline.hpp"); 223 AD.addInclude(AD._CPP_file, "opto/cfgnode.hpp"); 224 AD.addInclude(AD._CPP_file, "opto/locknode.hpp"); 225 AD.addInclude(AD._CPP_file, "opto/opcodes.hpp"); 226 AD.addInclude(AD._CPP_file, "opto/regalloc.hpp"); 227 AD.addInclude(AD._CPP_file, "opto/regmask.hpp"); 228 AD.addInclude(AD._CPP_file, "opto/runtime.hpp"); 229 AD.addInclude(AD._CPP_file, "runtime/biasedLocking.hpp"); 230 AD.addInclude(AD._CPP_file, "runtime/sharedRuntime.hpp"); 231 AD.addInclude(AD._CPP_file, "runtime/stubRoutines.hpp"); 232 AD.addInclude(AD._CPP_file, "utilities/growableArray.hpp"); 233 AD.addInclude(AD._HPP_file, "memory/allocation.hpp"); 234 AD.addInclude(AD._HPP_file, "code/nativeInst.hpp"); 235 AD.addInclude(AD._HPP_file, "opto/machnode.hpp"); 236 AD.addInclude(AD._HPP_file, "opto/node.hpp"); 237 AD.addInclude(AD._HPP_file, "opto/regalloc.hpp"); 238 AD.addInclude(AD._HPP_file, "opto/subnode.hpp"); 239 AD.addInclude(AD._HPP_file, "opto/vectornode.hpp"); 240 AD.addInclude(AD._CPP_CLONE_file, "precompiled.hpp"); 241 AD.addInclude(AD._CPP_CLONE_file, "adfiles", get_basename(AD._HPP_file._name)); 242 AD.addInclude(AD._CPP_EXPAND_file, "precompiled.hpp"); 243 AD.addInclude(AD._CPP_EXPAND_file, "adfiles", get_basename(AD._HPP_file._name)); 244 AD.addInclude(AD._CPP_FORMAT_file, "precompiled.hpp"); 245 AD.addInclude(AD._CPP_FORMAT_file, "adfiles", get_basename(AD._HPP_file._name)); 246 AD.addInclude(AD._CPP_GEN_file, "precompiled.hpp"); 247 AD.addInclude(AD._CPP_GEN_file, "adfiles", get_basename(AD._HPP_file._name)); 248 AD.addInclude(AD._CPP_GEN_file, "opto/cfgnode.hpp"); 249 AD.addInclude(AD._CPP_GEN_file, "opto/locknode.hpp"); 250 AD.addInclude(AD._CPP_MISC_file, "precompiled.hpp"); 251 AD.addInclude(AD._CPP_MISC_file, "adfiles", get_basename(AD._HPP_file._name)); 252 AD.addInclude(AD._CPP_PEEPHOLE_file, "precompiled.hpp"); 253 AD.addInclude(AD._CPP_PEEPHOLE_file, "adfiles", get_basename(AD._HPP_file._name)); 254 AD.addInclude(AD._CPP_PIPELINE_file, "precompiled.hpp"); 255 AD.addInclude(AD._CPP_PIPELINE_file, "adfiles", get_basename(AD._HPP_file._name)); 256 AD.addInclude(AD._DFA_file, "precompiled.hpp"); 257 AD.addInclude(AD._DFA_file, "adfiles", get_basename(AD._HPP_file._name)); 258 AD.addInclude(AD._DFA_file, "opto/cfgnode.hpp"); // Use PROB_MAX in predicate. 259 AD.addInclude(AD._DFA_file, "opto/matcher.hpp"); 260 AD.addInclude(AD._DFA_file, "opto/opcodes.hpp"); 261 AD.addInclude(AD._DFA_file, "opto/convertnode.hpp"); 262 // Make sure each .cpp file starts with include lines: 263 // files declaring and defining generators for Mach* Objects (hpp,cpp) 264 // Generate the result files: 265 // enumerations, class definitions, object generators, and the DFA 266 // file containing enumeration of machine operands & instructions (hpp) 267 AD.addPreHeaderBlocks(AD._HPP_file._fp); // .hpp 268 AD.buildMachOperEnum(AD._HPP_file._fp); // .hpp 269 AD.buildMachOpcodesEnum(AD._HPP_file._fp); // .hpp 270 AD.buildMachRegisterNumbers(AD._VM_file._fp); // VM file 271 AD.buildMachRegisterEncodes(AD._HPP_file._fp); // .hpp file 272 AD.declareRegSizes(AD._HPP_file._fp); // .hpp 273 AD.build_pipeline_enums(AD._HPP_file._fp); // .hpp 274 // output definition of class "State" 275 AD.defineStateClass(AD._HPP_file._fp); // .hpp 276 // file declaring the Mach* classes derived from MachOper and MachNode 277 AD.declareClasses(AD._HPP_file._fp); 278 // declare and define maps: in the .hpp and .cpp files respectively | 204 AD.addSunCopyright(legal_text, legal_sz, AD._VM_file._fp); // .hpp 205 AD.addSunCopyright(legal_text, legal_sz, AD._DFA_file._fp); // .cpp 206 // Add include guards for all .hpp files 207 AD.addIncludeGuardStart(AD._HPP_file, "GENERATED_ADFILES_AD_HPP"); // .hpp 208 AD.addIncludeGuardStart(AD._VM_file, "GENERATED_ADFILES_ADGLOBALS_HPP"); // .hpp 209 // Add includes 210 AD.addInclude(AD._CPP_file, "precompiled.hpp"); 211 AD.addInclude(AD._CPP_file, "adfiles", get_basename(AD._VM_file._name)); 212 AD.addInclude(AD._CPP_file, "adfiles", get_basename(AD._HPP_file._name)); 213 AD.addInclude(AD._CPP_file, "memory/allocation.inline.hpp"); 214 AD.addInclude(AD._CPP_file, "asm/macroAssembler.inline.hpp"); 215 AD.addInclude(AD._CPP_file, "code/compiledIC.hpp"); 216 AD.addInclude(AD._CPP_file, "code/nativeInst.hpp"); 217 AD.addInclude(AD._CPP_file, "code/vmreg.inline.hpp"); 218 AD.addInclude(AD._CPP_file, "gc/shared/collectedHeap.inline.hpp"); 219 AD.addInclude(AD._CPP_file, "oops/compiledICHolder.hpp"); 220 AD.addInclude(AD._CPP_file, "oops/markOop.hpp"); 221 AD.addInclude(AD._CPP_file, "oops/method.hpp"); 222 AD.addInclude(AD._CPP_file, "oops/oop.inline.hpp"); 223 AD.addInclude(AD._CPP_file, "opto/cfgnode.hpp"); 224 AD.addInclude(AD._CPP_file, "opto/intrinsicnode.hpp"); 225 AD.addInclude(AD._CPP_file, "opto/locknode.hpp"); 226 AD.addInclude(AD._CPP_file, "opto/opcodes.hpp"); 227 AD.addInclude(AD._CPP_file, "opto/regalloc.hpp"); 228 AD.addInclude(AD._CPP_file, "opto/regmask.hpp"); 229 AD.addInclude(AD._CPP_file, "opto/runtime.hpp"); 230 AD.addInclude(AD._CPP_file, "runtime/biasedLocking.hpp"); 231 AD.addInclude(AD._CPP_file, "runtime/sharedRuntime.hpp"); 232 AD.addInclude(AD._CPP_file, "runtime/stubRoutines.hpp"); 233 AD.addInclude(AD._CPP_file, "utilities/growableArray.hpp"); 234 AD.addInclude(AD._HPP_file, "memory/allocation.hpp"); 235 AD.addInclude(AD._HPP_file, "code/nativeInst.hpp"); 236 AD.addInclude(AD._HPP_file, "opto/machnode.hpp"); 237 AD.addInclude(AD._HPP_file, "opto/node.hpp"); 238 AD.addInclude(AD._HPP_file, "opto/regalloc.hpp"); 239 AD.addInclude(AD._HPP_file, "opto/subnode.hpp"); 240 AD.addInclude(AD._HPP_file, "opto/vectornode.hpp"); 241 AD.addInclude(AD._CPP_CLONE_file, "precompiled.hpp"); 242 AD.addInclude(AD._CPP_CLONE_file, "adfiles", get_basename(AD._HPP_file._name)); 243 AD.addInclude(AD._CPP_EXPAND_file, "precompiled.hpp"); 244 AD.addInclude(AD._CPP_EXPAND_file, "adfiles", get_basename(AD._HPP_file._name)); 245 AD.addInclude(AD._CPP_FORMAT_file, "precompiled.hpp"); 246 AD.addInclude(AD._CPP_FORMAT_file, "adfiles", get_basename(AD._HPP_file._name)); 247 AD.addInclude(AD._CPP_GEN_file, "precompiled.hpp"); 248 AD.addInclude(AD._CPP_GEN_file, "adfiles", get_basename(AD._HPP_file._name)); 249 AD.addInclude(AD._CPP_GEN_file, "opto/cfgnode.hpp"); 250 AD.addInclude(AD._CPP_GEN_file, "opto/locknode.hpp"); 251 AD.addInclude(AD._CPP_MISC_file, "precompiled.hpp"); 252 AD.addInclude(AD._CPP_MISC_file, "adfiles", get_basename(AD._HPP_file._name)); 253 AD.addInclude(AD._CPP_PEEPHOLE_file, "precompiled.hpp"); 254 AD.addInclude(AD._CPP_PEEPHOLE_file, "adfiles", get_basename(AD._HPP_file._name)); 255 AD.addInclude(AD._CPP_PIPELINE_file, "precompiled.hpp"); 256 AD.addInclude(AD._CPP_PIPELINE_file, "adfiles", get_basename(AD._HPP_file._name)); 257 AD.addInclude(AD._DFA_file, "precompiled.hpp"); 258 AD.addInclude(AD._DFA_file, "adfiles", get_basename(AD._HPP_file._name)); 259 AD.addInclude(AD._DFA_file, "opto/cfgnode.hpp"); // Use PROB_MAX in predicate. 260 AD.addInclude(AD._DFA_file, "opto/intrinsicnode.hpp"); 261 AD.addInclude(AD._DFA_file, "opto/matcher.hpp"); 262 AD.addInclude(AD._DFA_file, "opto/opcodes.hpp"); 263 AD.addInclude(AD._DFA_file, "opto/convertnode.hpp"); 264 // Make sure each .cpp file starts with include lines: 265 // files declaring and defining generators for Mach* Objects (hpp,cpp) 266 // Generate the result files: 267 // enumerations, class definitions, object generators, and the DFA 268 // file containing enumeration of machine operands & instructions (hpp) 269 AD.addPreHeaderBlocks(AD._HPP_file._fp); // .hpp 270 AD.buildMachOperEnum(AD._HPP_file._fp); // .hpp 271 AD.buildMachOpcodesEnum(AD._HPP_file._fp); // .hpp 272 AD.buildMachRegisterNumbers(AD._VM_file._fp); // VM file 273 AD.buildMachRegisterEncodes(AD._HPP_file._fp); // .hpp file 274 AD.declareRegSizes(AD._HPP_file._fp); // .hpp 275 AD.build_pipeline_enums(AD._HPP_file._fp); // .hpp 276 // output definition of class "State" 277 AD.defineStateClass(AD._HPP_file._fp); // .hpp 278 // file declaring the Mach* classes derived from MachOper and MachNode 279 AD.declareClasses(AD._HPP_file._fp); 280 // declare and define maps: in the .hpp and .cpp files respectively |