(inst parsedInstruction, desc descriptor, extraNotes []string)
| 286 | } |
| 287 | |
| 288 | func buildLayer(inst parsedInstruction, desc descriptor, extraNotes []string) layerReport { |
| 289 | layer := layerReport{ |
| 290 | Instruction: inst, |
| 291 | Effect: desc.Effect, |
| 292 | Explanation: desc.Explanation, |
| 293 | CacheHint: desc.CacheHint, |
| 294 | } |
| 295 | layer.Notes = append(layer.Notes, extraNotes...) |
| 296 | return layer |
| 297 | } |
| 298 | |
| 299 | func descriptorFor(keyword string) descriptor { |
| 300 | if desc, ok := instructionDescriptors[keyword]; ok { |