| Index: courgette/encoded_program.h
|
| ===================================================================
|
| --- courgette/encoded_program.h (revision 80344)
|
| +++ courgette/encoded_program.h (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| +// 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.
|
|
|
| @@ -37,6 +37,8 @@
|
| void EndLabels();
|
|
|
| // (3) Add instructions in the order needed to generate bytes of file.
|
| + // NOTE: If any of these methods ever fail, the EncodedProgram instance
|
| + // has failed and should be discarded.
|
| CheckBool AddOrigin(RVA rva);
|
| CheckBool AddCopy(uint32 count, const void* bytes);
|
| CheckBool AddRel32(int label_index);
|
| @@ -68,10 +70,10 @@
|
| OP_LAST
|
| };
|
|
|
| - typedef std::vector<RVA, MemoryAllocator<RVA> > RvaVector;
|
| - typedef std::vector<uint32, MemoryAllocator<uint32> > UInt32Vector;
|
| - typedef std::vector<uint8, MemoryAllocator<uint8> > UInt8Vector;
|
| - typedef std::vector<OP, MemoryAllocator<OP> > OPVector;
|
| + typedef NoThrowBuffer<RVA> RvaVector;
|
| + typedef NoThrowBuffer<uint32> UInt32Vector;
|
| + typedef NoThrowBuffer<uint8> UInt8Vector;
|
| + typedef NoThrowBuffer<OP> OPVector;
|
|
|
| void DebuggingSummary();
|
| CheckBool GenerateBaseRelocations(SinkStream *buffer);
|
|
|