Commit eb906555 authored by deanm@chromium.org's avatar deanm@chromium.org

Cleanup include guards:

- Fix some typos / guards that didn't match the filename.
- Fix some style inconsistencies.
- Add guards to files that were missing them.
- Add the directory name to the guard.

Review URL: http://codereview.chromium.org/99343


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1845 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent aa5f5310
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_DEBUG_H_
#define V8_DEBUG_H_
#ifndef V8_V8_DEBUG_H_
#define V8_V8_DEBUG_H_
#include "v8.h"
......@@ -246,4 +246,4 @@ class EXPORT Debug {
#undef EXPORT
#endif // V8_DEBUG_H_
#endif // V8_V8_DEBUG_H_
......@@ -34,8 +34,8 @@
// significantly by Google Inc.
// Copyright 2006-2008 the V8 project authors. All rights reserved.
#ifndef V8_ASSEMBLER_ARM_INL_H_
#define V8_ASSEMBLER_ARM_INL_H_
#ifndef V8_ARM_ASSEMBLER_ARM_INL_H_
#define V8_ARM_ASSEMBLER_ARM_INL_H_
#include "arm/assembler-arm.h"
#include "cpu.h"
......@@ -246,4 +246,4 @@ void Assembler::set_target_address_at(Address pc, Address target) {
} } // namespace v8::internal
#endif // V8_ASSEMBLER_ARM_INL_H_
#endif // V8_ARM_ASSEMBLER_ARM_INL_H_
......@@ -37,8 +37,8 @@
// A light-weight ARM Assembler
// Generates user mode instructions for the ARM architecture up to version 5
#ifndef V8_ASSEMBLER_ARM_H_
#define V8_ASSEMBLER_ARM_H_
#ifndef V8_ARM_ASSEMBLER_ARM_H_
#define V8_ARM_ASSEMBLER_ARM_H_
#include "assembler.h"
......@@ -786,4 +786,4 @@ class Assembler : public Malloced {
} } // namespace v8::internal
#endif // V8_ASSEMBLER_ARM_H_
#endif // V8_ARM_ASSEMBLER_ARM_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_CODEGEN_ARM_H_
#define V8_CODEGEN_ARM_H_
#ifndef V8_ARM_CODEGEN_ARM_H_
#define V8_ARM_CODEGEN_ARM_H_
namespace v8 { namespace internal {
......@@ -443,4 +443,4 @@ class CodeGenerator: public AstVisitor {
} } // namespace v8::internal
#endif // V8_CODEGEN_ARM_H_
#endif // V8_ARM_CODEGEN_ARM_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_CONSTANTS_ARM_H_
#define V8_CONSTANTS_ARM_H_
#ifndef V8_ARM_CONSTANTS_ARM_H_
#define V8_ARM_CONSTANTS_ARM_H_
namespace assembler { namespace arm {
......@@ -237,4 +237,4 @@ class Instr {
} } // namespace assembler::arm
#endif // V8_CONSTANTS_ARM_H_
#endif // V8_ARM_CONSTANTS_ARM_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_FRAMES_ARM_H_
#define V8_FRAMES_ARM_H_
#ifndef V8_ARM_FRAMES_ARM_H_
#define V8_ARM_FRAMES_ARM_H_
namespace v8 { namespace internal {
......@@ -376,4 +376,4 @@ inline Object* JavaScriptFrame::function_slot_object() const {
} } // namespace v8::internal
#endif // V8_FRAMES_ARM_H_
#endif // V8_ARM_FRAMES_ARM_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_MACRO_ASSEMBLER_ARM_H_
#define V8_MACRO_ASSEMBLER_ARM_H_
#ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_
#define V8_ARM_MACRO_ASSEMBLER_ARM_H_
#include "assembler.h"
......@@ -310,4 +310,4 @@ static inline MemOperand FieldMemOperand(Register object, int offset) {
} } // namespace v8::internal
#endif // V8_MACRO_ASSEMBLER_ARM_H_
#endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef REGEXP_MACRO_ASSEMBLER_ARM_H_
#define REGEXP_MACRO_ASSEMBLER_ARM_H_
#ifndef V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_
#define V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_
namespace v8 { namespace internal {
......@@ -38,4 +38,4 @@ class RegExpMacroAssemblerARM: public RegExpMacroAssembler {
}} // namespace v8::internal
#endif /* REGEXP_MACRO_ASSEMBLER_ARM_H_ */
#endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_
......@@ -33,8 +33,8 @@
// which will start execution in the Simulator or forwards to the real entry
// on a ARM HW platform.
#ifndef V8_SIMULATOR_ARM_H_
#define V8_SIMULATOR_ARM_H_
#ifndef V8_ARM_SIMULATOR_ARM_H_
#define V8_ARM_SIMULATOR_ARM_H_
#if defined(__arm__)
......@@ -201,4 +201,4 @@ class Simulator {
#endif // defined(__arm__)
#endif // V8_SIMULATOR_ARM_H_
#endif // V8_ARM_SIMULATOR_ARM_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_VIRTUAL_FRAME_ARM_H_
#define V8_VIRTUAL_FRAME_ARM_H_
#ifndef V8_ARM_VIRTUAL_FRAME_ARM_H_
#define V8_ARM_VIRTUAL_FRAME_ARM_H_
#include "register-allocator.h"
......@@ -477,4 +477,4 @@ class VirtualFrame : public Malloced {
} } // namespace v8::internal
#endif // V8_VIRTUAL_FRAME_ARM_H_
#endif // V8_ARM_VIRTUAL_FRAME_ARM_H_
......@@ -25,6 +25,9 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_DATEPARSER_INL_H_
#define V8_DATEPARSER_INL_H_
namespace v8 { namespace internal {
template <typename Char>
......@@ -104,3 +107,5 @@ bool DateParser::Parse(Vector<Char> str, FixedArray* out) {
}
} } // namespace v8::internal
#endif // V8_DATEPARSER_INL_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_V8_DEBUG_AGENT_H_
#define V8_V8_DEBUG_AGENT_H_
#ifndef V8_DEBUG_AGENT_H_
#define V8_DEBUG_AGENT_H_
#ifdef ENABLE_DEBUGGER_SUPPORT
#include "../include/v8-debug.h"
......@@ -122,4 +122,4 @@ class DebuggerAgentUtil {
#endif // ENABLE_DEBUGGER_SUPPORT
#endif // V8_V8_DEBUG_AGENT_H_
#endif // V8_DEBUG_AGENT_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_V8_DEBUG_H_
#define V8_V8_DEBUG_H_
#ifndef V8_DEBUG_H_
#define V8_DEBUG_H_
#include "assembler.h"
#include "code-stubs.h"
......@@ -762,4 +762,4 @@ class Debug_Address {
#endif // ENABLE_DEBUGGER_SUPPORT
#endif // V8_V8_DEBUG_H_
#endif // V8_DEBUG_H_
......@@ -34,8 +34,8 @@
// A light-weight IA32 Assembler.
#ifndef V8_ASSEMBLER_IA32_INL_H_
#define V8_ASSEMBLER_IA32_INL_H_
#ifndef V8_IA32_ASSEMBLER_IA32_INL_H_
#define V8_IA32_ASSEMBLER_IA32_INL_H_
#include "cpu.h"
......@@ -299,4 +299,4 @@ Operand::Operand(int32_t disp, RelocInfo::Mode rmode) {
} } // namespace v8::internal
#endif // V8_ASSEMBLER_IA32_INL_H_
#endif // V8_IA32_ASSEMBLER_IA32_INL_H_
......@@ -34,8 +34,8 @@
// A light-weight IA32 Assembler.
#ifndef V8_ASSEMBLER_IA32_H_
#define V8_ASSEMBLER_IA32_H_
#ifndef V8_IA32_ASSEMBLER_IA32_H_
#define V8_IA32_ASSEMBLER_IA32_H_
namespace v8 { namespace internal {
......@@ -860,4 +860,4 @@ class EnsureSpace BASE_EMBEDDED {
} } // namespace v8::internal
#endif // V8_ASSEMBLER_IA32_H_
#endif // V8_IA32_ASSEMBLER_IA32_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_CODEGEN_IA32_H_
#define V8_CODEGEN_IA32_H_
#ifndef V8_IA32_CODEGEN_IA32_H_
#define V8_IA32_CODEGEN_IA32_H_
namespace v8 { namespace internal {
......@@ -615,4 +615,4 @@ class CodeGenerator: public AstVisitor {
} } // namespace v8::internal
#endif // V8_CODEGEN_IA32_H_
#endif // V8_IA32_CODEGEN_IA32_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_FRAMES_IA32_H_
#define V8_FRAMES_IA32_H_
#ifndef V8_IA32_FRAMES_IA32_H_
#define V8_IA32_FRAMES_IA32_H_
namespace v8 { namespace internal {
......@@ -288,4 +288,4 @@ inline Object* JavaScriptFrame::function_slot_object() const {
} } // namespace v8::internal
#endif // V8_FRAMES_IA32_H_
#endif // V8_IA32_FRAMES_IA32_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_MACRO_ASSEMBLER_IA32_H_
#define V8_MACRO_ASSEMBLER_IA32_H_
#ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_
#define V8_IA32_MACRO_ASSEMBLER_IA32_H_
#include "assembler.h"
......@@ -368,4 +368,4 @@ extern void LogGeneratedCodeCoverage(const char* file_line);
} } // namespace v8::internal
#endif // V8_MACRO_ASSEMBLER_IA32_H_
#endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef REGEXP_MACRO_ASSEMBLER_IA32_H_
#define REGEXP_MACRO_ASSEMBLER_IA32_H_
#ifndef V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
#define V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
namespace v8 { namespace internal {
......@@ -282,4 +282,4 @@ class RegExpMacroAssemblerIA32: public RegExpMacroAssembler {
}} // namespace v8::internal
#endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */
#endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_SIMULATOR_IA32_H_
#define V8_SIMULATOR_IA32_H_
#ifndef V8_IA32_SIMULATOR_IA32_H_
#define V8_IA32_SIMULATOR_IA32_H_
// Since there is no simulator for the ia32 architecture the only thing we can
......@@ -44,4 +44,4 @@
(reinterpret_cast<uintptr_t>(this) >= limit ? \
reinterpret_cast<uintptr_t>(this) - limit : 0)
#endif // V8_SIMULATOR_IA32_H_
#endif // V8_IA32_SIMULATOR_IA32_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_VIRTUAL_FRAME_IA32_H_
#define V8_VIRTUAL_FRAME_IA32_H_
#ifndef V8_IA32_VIRTUAL_FRAME_IA32_H_
#define V8_IA32_VIRTUAL_FRAME_IA32_H_
#include "register-allocator.h"
......@@ -490,4 +490,4 @@ class VirtualFrame : public Malloced {
} } // namespace v8::internal
#endif // V8_VIRTUAL_FRAME_IA32_H_
#endif // V8_IA32_VIRTUAL_FRAME_IA32_H_
......@@ -32,6 +32,8 @@
#include "ast.h"
#include "bytecodes-irregexp.h"
#ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
#define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
namespace v8 { namespace internal {
......@@ -69,3 +71,5 @@ void RegExpMacroAssemblerIrregexp::Emit32(uint32_t word) {
} } // namespace v8::internal
#endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef REGEXP_MACRO_ASSEMBLER_TRACER_H_
#define REGEXP_MACRO_ASSEMBLER_TRACER_H_
#ifndef V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_
#define V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_
namespace v8 { namespace internal {
......@@ -115,4 +115,4 @@ class RegExpMacroAssemblerTracer: public RegExpMacroAssembler {
}} // namespace v8::internal
#endif // REGEXP_MACRO_ASSEMBLER_TRACER_H_
#endif // V8_REGEXP_MACRO_ASSEMBLER_TRACER_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef REGEXP_STACK_H_
#define REGEXP_STACK_H_
#ifndef V8_REGEXP_STACK_H_
#define V8_REGEXP_STACK_H_
namespace v8 { namespace internal {
......@@ -103,4 +103,4 @@ class RegExpStack {
}} // namespace v8::internal
#endif /* REGEXP_STACK_H_ */
#endif // V8_REGEXP_STACK_H_
......@@ -27,6 +27,9 @@
//
// A simple interactive shell. Enable with --shell.
#ifndef V8_SHELL_H_
#define V8_SHELL_H_
#include "../public/debug.h"
namespace v8 { namespace internal {
......@@ -47,3 +50,5 @@ class Shell {
};
} } // namespace v8::internal
#endif // V8_SHELL_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef __UNIBROW_INL_H__
#define __UNIBROW_INL_H__
#ifndef V8_UNICODE_INL_H_
#define V8_UNICODE_INL_H_
#include "unicode.h"
......@@ -235,4 +235,4 @@ Utf8InputBuffer<s>::Utf8InputBuffer(const char* data, unsigned length)
} // namespace unibrow
#endif // __UNIBROW_INL_H__
#endif // V8_UNICODE_INL_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef __UNIBROW_H__
#define __UNIBROW_H__
#ifndef V8_UNICODE_H_
#define V8_UNICODE_H_
#include <sys/types.h>
......@@ -276,4 +276,4 @@ struct CanonicalizationRange {
} // namespace unibrow
#endif // __UNIBROW_H__
#endif // V8_UNICODE_H_
......@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef V8_USAGE_ANALYSER_H_
#define V8_USAGE_ANALYSER_H_
#ifndef V8_USAGE_ANALYZER_H_
#define V8_USAGE_ANALYZER_H_
namespace v8 { namespace internal {
......@@ -36,4 +36,4 @@ bool AnalyzeVariableUsage(FunctionLiteral* lit);
} } // namespace v8::internal
#endif // V8_USAGE_ANALYSER_H_
#endif // V8_USAGE_ANALYZER_H_
......@@ -161,4 +161,4 @@ class Counters : AllStatic {
} } // namespace v8::internal
#endif // V8_COUNTERS_H_
#endif // V8_V8_COUNTERS_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment