// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "courgette/assembly_program.h" #include #include #include #include #include #include #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "courgette/courgette.h" #include "courgette/encoded_program.h" namespace courgette { // Opcodes of simple assembly language enum OP { ORIGIN, // ORIGIN - set current address for assembly. MAKEPERELOCS, // Generates a base relocation table. MAKEELFRELOCS, // Generates a base relocation table. DEFBYTE, // DEFBYTE - emit a byte literal. REL32, // REL32