Commit 2bc0ff6e authored by jgruber's avatar jgruber Committed by Commit Bot

[presubmit] Add include guard check

This check verifies that all .h files in the src/ directory have an
include guard of the form

 #ifndef V8_PATH_TO_FILE_H_
 #define V8_PATH_TO_FILE_H_
 // ...
 #endif  // V8_PATH_TO_FILE_H_

The check can be skipped with a magic comment:

 // PRESUBMIT_INTENTIONALLY_MISSING_INCLUDE_GUARD

Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I0a7b96abec289ad60f64ba8418f1892a6969596d
Reviewed-on: https://chromium-review.googlesource.com/897487Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Reviewed-by: 's avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51079}
parent 6b1586e3
......@@ -153,6 +153,62 @@ def _CheckUnwantedDependencies(input_api, output_api):
return results
def _CheckHeadersHaveIncludeGuards(input_api, output_api):
"""Ensures that all header files have include guards."""
file_inclusion_pattern = r'src/.+\.h'
def FilterFile(affected_file):
black_list = (_EXCLUDED_PATHS +
input_api.DEFAULT_BLACK_LIST)
return input_api.FilterSourceFile(
affected_file,
white_list=(file_inclusion_pattern, ),
black_list=black_list)
leading_src_pattern = input_api.re.compile(r'^src/')
dash_dot_slash_pattern = input_api.re.compile(r'[-./]')
def PathToGuardMacro(path):
"""Guards should be of the form V8_PATH_TO_FILE_WITHOUT_SRC_H_."""
x = input_api.re.sub(leading_src_pattern, 'v8_', path)
x = input_api.re.sub(dash_dot_slash_pattern, '_', x)
x = x.upper() + "_"
return x
problems = []
for f in input_api.AffectedSourceFiles(FilterFile):
local_path = f.LocalPath()
guard_macro = PathToGuardMacro(local_path)
guard_patterns = [
input_api.re.compile(r'^#ifndef ' + guard_macro + '$'),
input_api.re.compile(r'^#define ' + guard_macro + '$'),
input_api.re.compile(r'^#endif // ' + guard_macro + '$')]
skip_check_pattern = input_api.re.compile(
r'^// PRESUBMIT_INTENTIONALLY_MISSING_INCLUDE_GUARD')
found_patterns = [ False, False, False ]
file_omitted = False
for line in f.NewContents():
for i in range(len(guard_patterns)):
if guard_patterns[i].match(line):
found_patterns[i] = True
if skip_check_pattern.match(line):
file_omitted = True
break
if not file_omitted and not all(found_patterns):
problems.append(
'%s: Missing include guard \'%s\'' % (local_path, guard_macro))
if problems:
return [output_api.PresubmitError(
'You added one or more header files without an appropriate\n'
'include guard. Add the include guard {#ifndef,#define,#endif}\n'
'triplet or omit the check entirely through the magic comment:\n'
'"// PRESUBMIT_INTENTIONALLY_MISSING_INCLUDE_GUARD".', problems)]
else:
return []
# TODO(mstarzinger): Similar checking should be made available as part of
# tools/presubmit.py (note that tools/check-inline-includes.sh exists).
def _CheckNoInlineHeaderIncludesInNormalHeaders(input_api, output_api):
......@@ -275,6 +331,7 @@ def _CommonChecks(input_api, output_api):
results.extend(_CheckUnwantedDependencies(input_api, output_api))
results.extend(
_CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api))
results.extend(_CheckHeadersHaveIncludeGuards(input_api, output_api))
results.extend(
_CheckNoInlineHeaderIncludesInNormalHeaders(input_api, output_api))
results.extend(_CheckMissingFiles(input_api, output_api))
......
......@@ -62,4 +62,4 @@ class ApiNatives {
} // namespace internal
} // namespace v8
#endif
#endif // V8_API_NATIVES_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_ARM_FRAMES_ARM_H_
#define V8_ARM_FRAMES_ARM_H_
#ifndef V8_ARM_FRAME_CONSTANTS_ARM_H_
#define V8_ARM_FRAME_CONSTANTS_ARM_H_
namespace v8 {
namespace internal {
......@@ -45,4 +45,4 @@ class JavaScriptFrameConstants : public AllStatic {
} // namespace internal
} // namespace v8
#endif // V8_ARM_FRAMES_ARM_H_
#endif // V8_ARM_FRAME_CONSTANTS_ARM_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_ARM64_DISASM_ARM64_H
#define V8_ARM64_DISASM_ARM64_H
#ifndef V8_ARM64_DISASM_ARM64_H_
#define V8_ARM64_DISASM_ARM64_H_
#include "src/arm64/assembler-arm64.h"
#include "src/arm64/decoder-arm64.h"
......@@ -96,4 +96,4 @@ class PrintDisassembler : public DisassemblingDecoder {
} // namespace internal
} // namespace v8
#endif // V8_ARM64_DISASM_ARM64_H
#endif // V8_ARM64_DISASM_ARM64_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_ARM64_FRAMES_ARM64_H_
#define V8_ARM64_FRAMES_ARM64_H_
#ifndef V8_ARM64_FRAME_CONSTANTS_ARM64_H_
#define V8_ARM64_FRAME_CONSTANTS_ARM64_H_
namespace v8 {
namespace internal {
......@@ -61,4 +61,4 @@ class JavaScriptFrameConstants : public AllStatic {
} // namespace internal
} // namespace v8
#endif // V8_ARM64_FRAMES_ARM64_H_
#endif // V8_ARM64_FRAME_CONSTANTS_ARM64_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_ASMJS_SWITCH_LOGIC_H
#define V8_ASMJS_SWITCH_LOGIC_H
#ifndef V8_ASMJS_SWITCH_LOGIC_H_
#define V8_ASMJS_SWITCH_LOGIC_H_
#include "src/globals.h"
#include "src/zone/zone-containers.h"
......@@ -30,4 +30,4 @@ V8_EXPORT_PRIVATE CaseNode* OrderCases(ZoneVector<int>* cases, Zone* zone);
} // namespace internal
} // namespace v8
#endif // V8_ASMJS_SWITCH_LOGIC_H
#endif // V8_ASMJS_SWITCH_LOGIC_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_AST_AST_FUNCTION_LITERAL_ID_REINDEXER
#define V8_AST_AST_FUNCTION_LITERAL_ID_REINDEXER
#ifndef V8_AST_AST_FUNCTION_LITERAL_ID_REINDEXER_H_
#define V8_AST_AST_FUNCTION_LITERAL_ID_REINDEXER_H_
#include "src/ast/ast-traversal-visitor.h"
#include "src/base/macros.h"
......@@ -33,4 +33,4 @@ class AstFunctionLiteralIdReindexer final
} // namespace internal
} // namespace v8
#endif // V8_AST_AST_FUNCTION_LITERAL_ID_REINDEXER
#endif // V8_AST_AST_FUNCTION_LITERAL_ID_REINDEXER_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_AST_COMPILE_TIME_VALUE
#define V8_AST_COMPILE_TIME_VALUE
#ifndef V8_AST_COMPILE_TIME_VALUE_H_
#define V8_AST_COMPILE_TIME_VALUE_H_
#include "src/allocation.h"
#include "src/globals.h"
......@@ -43,4 +43,4 @@ class CompileTimeValue : public AllStatic {
} // namespace internal
} // namespace v8
#endif // V8_AST_COMPILE_TIME_VALUE
#endif // V8_AST_COMPILE_TIME_VALUE_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_ATOMIC_UTILS_H_
#define V8_ATOMIC_UTILS_H_
#ifndef V8_BASE_ATOMIC_UTILS_H_
#define V8_BASE_ATOMIC_UTILS_H_
#include <limits.h>
#include <type_traits>
......@@ -419,4 +419,4 @@ class AtomicElement {
} // namespace base
} // namespace v8
#endif // #define V8_ATOMIC_UTILS_H_
#endif // V8_BASE_ATOMIC_UTILS_H_
......@@ -26,8 +26,8 @@
// needs to increment twice (which the compiler should be able to detect and
// optimize).
#ifndef BASE_ATOMICOPS_INTERNALS_PORTABLE_H_
#define BASE_ATOMICOPS_INTERNALS_PORTABLE_H_
#ifndef V8_BASE_ATOMICOPS_INTERNALS_PORTABLE_H_
#define V8_BASE_ATOMICOPS_INTERNALS_PORTABLE_H_
#include <atomic>
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_ATOMICOPS_INTERNALS_STD_H_
#define BASE_ATOMICOPS_INTERNALS_STD_H_
#ifndef V8_BASE_ATOMICOPS_INTERNALS_STD_H_
#define V8_BASE_ATOMICOPS_INTERNALS_STD_H_
#include <atomic>
......
......@@ -18,4 +18,4 @@ V8_BASE_EXPORT char* RelativePath(char** buffer, const char* exec_path,
} // namespace base
} // namespace v8
#endif // V8_FILE_UTILS_H_
#endif // V8_BASE_FILE_UTILS_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_FORMAT_MACROS_H_
#define BASE_FORMAT_MACROS_H_
#ifndef V8_BASE_FORMAT_MACROS_H_
#define V8_BASE_FORMAT_MACROS_H_
// This file defines the format macros for some integer types.
......@@ -94,4 +94,4 @@
#endif
#endif // BASE_FORMAT_MACROS_H_
#endif // V8_BASE_FORMAT_MACROS_H_
......@@ -338,4 +338,4 @@ bool is_inbounds(float_t v) {
(kUpperBoundIsMax ? (v <= kUpperBound) : (v < kUpperBound));
}
#endif // V8_BASE_MACROS_H_
#endif // V8_BASE_MACROS_H_
......@@ -3,7 +3,7 @@
// found in the LICENSE file.
#ifndef V8_BASE_QNX_MATH_H_
#define V8_QBASE_NX_MATH_H_
#define V8_BASE_QNX_MATH_H_
#include <cmath>
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_BASE_TEMPLATE_UTILS_H
#define V8_BASE_TEMPLATE_UTILS_H
#ifndef V8_BASE_TEMPLATE_UTILS_H_
#define V8_BASE_TEMPLATE_UTILS_H_
#include <array>
#include <memory>
......@@ -131,4 +131,4 @@ constexpr auto fold(Func func, Ts&&... more) ->
} // namespace base
} // namespace v8
#endif // V8_BASE_TEMPLATE_UTILS_H
#endif // V8_BASE_TEMPLATE_UTILS_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_DATAFLOW_H_
#define V8_DATAFLOW_H_
#ifndef V8_BIT_VECTOR_H_
#define V8_BIT_VECTOR_H_
#include "src/allocation.h"
#include "src/zone/zone.h"
......@@ -370,4 +370,4 @@ class GrowableBitVector BASE_EMBEDDED {
} // namespace internal
} // namespace v8
#endif // V8_DATAFLOW_H_
#endif // V8_BIT_VECTOR_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_BUILTINS_BUILTINS_ASYNC_H_
#define V8_BUILTINS_BUILTINS_ASYNC_H_
#ifndef V8_BUILTINS_BUILTINS_ASYNC_GEN_H_
#define V8_BUILTINS_BUILTINS_ASYNC_GEN_H_
#include "src/builtins/builtins-promise-gen.h"
......@@ -63,4 +63,4 @@ class AsyncBuiltinsAssembler : public PromiseBuiltinsAssembler {
} // namespace internal
} // namespace v8
#endif // V8_BUILTINS_BUILTINS_ASYNC_H_
#endif // V8_BUILTINS_BUILTINS_ASYNC_GEN_H_
......@@ -27,4 +27,4 @@ std::vector<NumberFormatSpan> FlattenRegionsToParts(
} // namespace internal
} // namespace v8
#endif // V8_BUILTINS_BUILTINS_H_
#endif // V8_BUILTINS_BUILTINS_INTL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_BUILTINS_BUILTINS_PROMISE_H_
#define V8_BUILTINS_BUILTINS_PROMISE_H_
#ifndef V8_BUILTINS_BUILTINS_PROMISE_GEN_H_
#define V8_BUILTINS_BUILTINS_PROMISE_GEN_H_
#include "src/code-stub-assembler.h"
#include "src/contexts.h"
......@@ -186,4 +186,4 @@ class PromiseBuiltinsAssembler : public CodeStubAssembler {
} // namespace internal
} // namespace v8
#endif // V8_BUILTINS_BUILTINS_PROMISE_H_
#endif // V8_BUILTINS_BUILTINS_PROMISE_GEN_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_BUILTINS_BUILTINS_REGEXP_H_
#define V8_BUILTINS_BUILTINS_REGEXP_H_
#ifndef V8_BUILTINS_BUILTINS_REGEXP_GEN_H_
#define V8_BUILTINS_BUILTINS_REGEXP_GEN_H_
#include "src/code-stub-assembler.h"
......@@ -119,4 +119,4 @@ class RegExpBuiltinsAssembler : public CodeStubAssembler {
} // namespace internal
} // namespace v8
#endif // V8_BUILTINS_BUILTINS_REGEXP_H_
#endif // V8_BUILTINS_BUILTINS_REGEXP_GEN_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_DEPENDENCIES_H_
#define V8_DEPENDENCIES_H_
#ifndef V8_COMPILATION_DEPENDENCIES_H_
#define V8_COMPILATION_DEPENDENCIES_H_
#include "src/handles.h"
#include "src/objects.h"
......@@ -71,4 +71,4 @@ class CompilationDependencies {
} // namespace internal
} // namespace v8
#endif // V8_DEPENDENCIES_H_
#endif // V8_COMPILATION_DEPENDENCIES_H_
......@@ -90,4 +90,4 @@ std::ostream& operator<<(std::ostream& os, const AsPrintableStatistics& s);
} // namespace internal
} // namespace v8
#endif
#endif // V8_COMPILATION_STATISTICS_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_COMPILER_ARM_UNWINDING_INFO_WRITER_H_
#define V8_COMPILER_ARM_UNWINDING_INFO_WRITER_H_
#ifndef V8_COMPILER_ARM_UNWINDING_INFO_WRITER_ARM_H_
#define V8_COMPILER_ARM_UNWINDING_INFO_WRITER_ARM_H_
#include "src/eh-frame.h"
......@@ -69,4 +69,4 @@ class UnwindingInfoWriter {
} // namespace internal
} // namespace v8
#endif
#endif // V8_COMPILER_ARM_UNWINDING_INFO_WRITER_ARM_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_COMPILER_ARM64_UNWINDING_INFO_WRITER_H_
#define V8_COMPILER_ARM64_UNWINDING_INFO_WRITER_H_
#ifndef V8_COMPILER_ARM64_UNWINDING_INFO_WRITER_ARM64_H_
#define V8_COMPILER_ARM64_UNWINDING_INFO_WRITER_ARM64_H_
#include "src/eh-frame.h"
......@@ -69,4 +69,4 @@ class UnwindingInfoWriter {
} // namespace internal
} // namespace v8
#endif
#endif // V8_COMPILER_ARM64_UNWINDING_INFO_WRITER_ARM64_H_
......@@ -29,4 +29,4 @@ class BasicBlockInstrumentor : public AllStatic {
} // namespace internal
} // namespace v8
#endif
#endif // V8_COMPILER_BASIC_BLOCK_INSTRUMENTOR_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_COMPILER_BRANCH_CONDITION_ELIMINATION_H_
#define V8_COMPILER_BRANCH_CONDITION_ELIMINATION_H_
#ifndef V8_COMPILER_BRANCH_ELIMINATION_H_
#define V8_COMPILER_BRANCH_ELIMINATION_H_
#include "src/base/compiler-specific.h"
#include "src/compiler/functional-list.h"
......@@ -89,4 +89,4 @@ class V8_EXPORT_PRIVATE BranchElimination final
} // namespace internal
} // namespace v8
#endif // V8_COMPILER_BRANCH_CONDITION_ELIMINATION_H_
#endif // V8_COMPILER_BRANCH_ELIMINATION_H_
......@@ -224,4 +224,4 @@ inline bool HasCallDescriptorFlag(Instruction* instr,
} // namespace internal
} // namespace v8
#endif // V8_COMPILER_CODE_GENERATOR_IMPL_H
#endif // V8_COMPILER_CODE_GENERATOR_IMPL_H_
......@@ -394,4 +394,4 @@ class CodeGenerator final : public GapResolver::Assembler {
} // namespace internal
} // namespace v8
#endif // V8_COMPILER_CODE_GENERATOR_H
#endif // V8_COMPILER_CODE_GENERATOR_H_
......@@ -217,4 +217,4 @@ class V8_EXPORT_PRIVATE JSGraph : public NON_EXPORTED_BASE(ZoneObject) {
} // namespace internal
} // namespace v8
#endif
#endif // V8_COMPILER_JS_GRAPH_H_
......@@ -30,4 +30,4 @@ class JumpThreading {
} // namespace internal
} // namespace v8
#endif // V8_COMPILER_JUMP_THREADING_H
#endif // V8_COMPILER_JUMP_THREADING_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_LIVE_RANGE_SEPARATOR_H_
#define V8_LIVE_RANGE_SEPARATOR_H_
#ifndef V8_COMPILER_LIVE_RANGE_SEPARATOR_H_
#define V8_COMPILER_LIVE_RANGE_SEPARATOR_H_
#include "src/zone/zone.h"
namespace v8 {
......@@ -61,4 +61,4 @@ class LiveRangeMerger final : public ZoneObject {
} // namespace compiler
} // namespace internal
} // namespace v8
#endif // V8_LIVE_RANGE_SEPARATOR_H_
#endif // V8_COMPILER_LIVE_RANGE_SEPARATOR_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_
#define V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_
#ifndef V8_COMPILER_MIPS64_INSTRUCTION_CODES_MIPS64_H_
#define V8_COMPILER_MIPS64_INSTRUCTION_CODES_MIPS64_H_
namespace v8 {
namespace internal {
......@@ -331,4 +331,4 @@ namespace compiler {
} // namespace internal
} // namespace v8
#endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_
#endif // V8_COMPILER_MIPS64_INSTRUCTION_CODES_MIPS64_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_COMPILER_MOVE_OPTIMIZER_
#define V8_COMPILER_MOVE_OPTIMIZER_
#ifndef V8_COMPILER_MOVE_OPTIMIZER_H_
#define V8_COMPILER_MOVE_OPTIMIZER_H_
#include "src/compiler/instruction.h"
#include "src/globals.h"
......@@ -65,4 +65,4 @@ class V8_EXPORT_PRIVATE MoveOptimizer final {
} // namespace internal
} // namespace v8
#endif // V8_COMPILER_MOVE_OPTIMIZER_
#endif // V8_COMPILER_MOVE_OPTIMIZER_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_COMPILER_PERSISTENT_H_
#define V8_COMPILER_PERSISTENT_H_
#ifndef V8_COMPILER_PERSISTENT_MAP_H_
#define V8_COMPILER_PERSISTENT_MAP_H_
#include <array>
#include <tuple>
......
......@@ -98,4 +98,4 @@ class PhaseScope {
} // namespace internal
} // namespace v8
#endif
#endif // V8_COMPILER_PIPELINE_STATISTICS_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_REGISTER_ALLOCATOR_VERIFIER_H_
#define V8_REGISTER_ALLOCATOR_VERIFIER_H_
#ifndef V8_COMPILER_REGISTER_ALLOCATOR_VERIFIER_H_
#define V8_COMPILER_REGISTER_ALLOCATOR_VERIFIER_H_
#include "src/compiler/instruction.h"
#include "src/zone/zone-containers.h"
......@@ -270,4 +270,4 @@ class RegisterAllocatorVerifier final : public ZoneObject {
} // namespace internal
} // namespace v8
#endif
#endif // V8_COMPILER_REGISTER_ALLOCATOR_VERIFIER_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_REGISTER_ALLOCATOR_H_
#define V8_REGISTER_ALLOCATOR_H_
#ifndef V8_COMPILER_REGISTER_ALLOCATOR_H_
#define V8_COMPILER_REGISTER_ALLOCATOR_H_
#include "src/base/bits.h"
#include "src/base/compiler-specific.h"
......@@ -1213,4 +1213,4 @@ class LiveRangeConnector final : public ZoneObject {
} // namespace internal
} // namespace v8
#endif // V8_REGISTER_ALLOCATOR_H_
#endif // V8_COMPILER_REGISTER_ALLOCATOR_H_
......@@ -52,4 +52,4 @@ class UnwindingInfoWriter {
#endif
#endif
#endif // V8_COMPILER_UNWINDING_INFO_WRITER_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_COMPILER_X64_UNWINDING_INFO_WRITER_H_
#define V8_COMPILER_X64_UNWINDING_INFO_WRITER_H_
#ifndef V8_COMPILER_X64_UNWINDING_INFO_WRITER_X64_H_
#define V8_COMPILER_X64_UNWINDING_INFO_WRITER_X64_H_
#include "src/eh-frame.h"
......@@ -76,4 +76,4 @@ class UnwindingInfoWriter {
} // namespace internal
} // namespace v8
#endif
#endif // V8_COMPILER_X64_UNWINDING_INFO_WRITER_X64_H_
......@@ -289,4 +289,4 @@ class DateCache {
} // namespace internal
} // namespace v8
#endif
#endif // V8_DATE_H_
......@@ -321,4 +321,4 @@ class SharedInfoWrapper : public JSArrayBasedStruct<SharedInfoWrapper> {
} // namespace internal
} // namespace v8
#endif /* V8_DEBUG_LIVEEDIT_H_ */
#endif // V8_DEBUG_LIVEEDIT_H_
......@@ -298,4 +298,4 @@ class EhFrameDisassembler final {
} // namespace internal
} // namespace v8
#endif
#endif // V8_EH_FRAME_H_
......@@ -99,4 +99,4 @@ inline FieldIndex FieldIndex::ForDescriptor(const Map* map,
} // namespace internal
} // namespace v8
#endif
#endif // V8_FIELD_INDEX_INL_H_
......@@ -134,4 +134,4 @@ class FieldIndex final {
} // namespace internal
} // namespace v8
#endif
#endif // V8_FIELD_INDEX_H_
......@@ -9,6 +9,8 @@
// This include does not have a guard, because it is a template-style include,
// which can be included multiple times in different modes. It expects to have
// a mode defined before it's included. The modes are FLAG_MODE_... below:
//
// PRESUBMIT_INTENTIONALLY_MISSING_INCLUDE_GUARD
#define DEFINE_IMPLICATION(whenflag, thenflag) \
DEFINE_VALUE_IMPLICATION(whenflag, thenflag, true)
......
......@@ -36,4 +36,4 @@ void EventHandler(const v8::JitCodeEvent* event);
} // namespace internal
} // namespace v8
#endif
#endif // V8_GDB_JIT_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_HEAP_CONCURRENT_MARKING_
#define V8_HEAP_CONCURRENT_MARKING_
#ifndef V8_HEAP_CONCURRENT_MARKING_H_
#define V8_HEAP_CONCURRENT_MARKING_H_
#include "src/allocation.h"
#include "src/cancelable-task.h"
......@@ -92,4 +92,4 @@ class ConcurrentMarking {
} // namespace internal
} // namespace v8
#endif // V8_HEAP_PAGE_PARALLEL_JOB_
#endif // V8_HEAP_CONCURRENT_MARKING_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INVALIDATED_SLOTS_INL_H
#define V8_INVALIDATED_SLOTS_INL_H
#ifndef V8_HEAP_INVALIDATED_SLOTS_INL_H_
#define V8_HEAP_INVALIDATED_SLOTS_INL_H_
#include <map>
......@@ -67,4 +67,4 @@ bool InvalidatedSlotsFilter::IsValid(Address slot) {
} // namespace internal
} // namespace v8
#endif // V8_INVALIDATED_SLOTS_INL_H
#endif // V8_HEAP_INVALIDATED_SLOTS_INL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INVALIDATED_SLOTS_H
#define V8_INVALIDATED_SLOTS_H
#ifndef V8_HEAP_INVALIDATED_SLOTS_H_
#define V8_HEAP_INVALIDATED_SLOTS_H_
#include <map>
#include <stack>
......@@ -51,4 +51,4 @@ class InvalidatedSlotsFilter {
} // namespace internal
} // namespace v8
#endif // V8_INVALIDATED_SLOTS_H
#endif // V8_HEAP_INVALIDATED_SLOTS_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_HEAP_ITEM_PARALLEL_JOB_
#define V8_HEAP_ITEM_PARALLEL_JOB_
#ifndef V8_HEAP_ITEM_PARALLEL_JOB_H_
#define V8_HEAP_ITEM_PARALLEL_JOB_H_
#include <vector>
......@@ -209,4 +209,4 @@ class ItemParallelJob {
} // namespace internal
} // namespace v8
#endif // V8_HEAP_ITEM_PARALLEL_JOB_
#endif // V8_HEAP_ITEM_PARALLEL_JOB_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_MARKING_H
#define V8_MARKING_H
#ifndef V8_HEAP_MARKING_H_
#define V8_HEAP_MARKING_H_
#include "src/base/atomic-utils.h"
#include "src/utils.h"
......@@ -316,4 +316,4 @@ class Marking : public AllStatic {
} // namespace internal
} // namespace v8
#endif // V8_MARKING_H_
#endif // V8_HEAP_MARKING_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_HEAP_memory_reducer_H
#define V8_HEAP_memory_reducer_H
#ifndef V8_HEAP_MEMORY_REDUCER_H_
#define V8_HEAP_MEMORY_REDUCER_H_
#include "include/v8-platform.h"
#include "src/base/macros.h"
......@@ -171,4 +171,4 @@ class V8_EXPORT_PRIVATE MemoryReducer {
} // namespace internal
} // namespace v8
#endif // V8_HEAP_memory_reducer_H
#endif // V8_HEAP_MEMORY_REDUCER_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_OBJECTS_VISITING_INL_H_
#define V8_OBJECTS_VISITING_INL_H_
#ifndef V8_HEAP_OBJECTS_VISITING_INL_H_
#define V8_HEAP_OBJECTS_VISITING_INL_H_
#include "src/heap/objects-visiting.h"
......@@ -189,4 +189,4 @@ int NewSpaceVisitor<ConcreteVisitor>::VisitJSApiObject(Map* map,
} // namespace internal
} // namespace v8
#endif // V8_OBJECTS_VISITING_INL_H_
#endif // V8_HEAP_OBJECTS_VISITING_INL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_OBJECTS_VISITING_H_
#define V8_OBJECTS_VISITING_H_
#ifndef V8_HEAP_OBJECTS_VISITING_H_
#define V8_HEAP_OBJECTS_VISITING_H_
#include "src/allocation.h"
#include "src/layout-descriptor.h"
......@@ -132,4 +132,4 @@ Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer);
} // namespace internal
} // namespace v8
#endif // V8_OBJECTS_VISITING_H_
#endif // V8_HEAP_OBJECTS_VISITING_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_REMEMBERED_SET_H
#define V8_REMEMBERED_SET_H
#ifndef V8_HEAP_REMEMBERED_SET_H_
#define V8_HEAP_REMEMBERED_SET_H_
#include "src/assembler.h"
#include "src/heap/heap.h"
......@@ -359,4 +359,4 @@ inline SlotType SlotTypeForRelocInfoMode(RelocInfo::Mode rmode) {
} // namespace internal
} // namespace v8
#endif // V8_REMEMBERED_SET_H
#endif // V8_HEAP_REMEMBERED_SET_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_SLOT_SET_H
#define V8_SLOT_SET_H
#ifndef V8_HEAP_SLOT_SET_H_
#define V8_HEAP_SLOT_SET_H_
#include <map>
#include <stack>
......@@ -641,4 +641,4 @@ class TypedSlotSet {
} // namespace internal
} // namespace v8
#endif // V8_SLOT_SET_H
#endif // V8_HEAP_SLOT_SET_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_STORE_BUFFER_H_
#define V8_STORE_BUFFER_H_
#ifndef V8_HEAP_STORE_BUFFER_H_
#define V8_HEAP_STORE_BUFFER_H_
#include "src/allocation.h"
#include "src/base/logging.h"
......@@ -225,4 +225,4 @@ class StoreBuffer {
} // namespace internal
} // namespace v8
#endif // V8_STORE_BUFFER_H_
#endif // V8_HEAP_STORE_BUFFER_H_
......@@ -23,4 +23,4 @@ class StressMarkingObserver : public AllocationObserver {
} // namespace internal
} // namespace v8
#endif
#endif // V8_HEAP_STRESS_MARKING_OBSERVER_H_
......@@ -36,4 +36,4 @@ class StressScavengeObserver : public AllocationObserver {
} // namespace internal
} // namespace v8
#endif
#endif // V8_HEAP_STRESS_SCAVENGE_OBSERVER_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_HEAP_WORKLIST_
#define V8_HEAP_WORKLIST_
#ifndef V8_HEAP_WORKLIST_H_
#define V8_HEAP_WORKLIST_H_
#include <cstddef>
#include <utility>
......@@ -388,4 +388,4 @@ class Worklist {
} // namespace internal
} // namespace v8
#endif // V8_HEAP_WORKLIST_
#endif // V8_HEAP_WORKLIST_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_IA32_FRAMES_IA32_H_
#define V8_IA32_FRAMES_IA32_H_
#ifndef V8_IA32_FRAME_CONSTANTS_IA32_H_
#define V8_IA32_FRAME_CONSTANTS_IA32_H_
namespace v8 {
namespace internal {
......@@ -50,4 +50,4 @@ class JavaScriptFrameConstants : public AllStatic {
} // namespace internal
} // namespace v8
#endif // V8_IA32_FRAMES_IA32_H_
#endif // V8_IA32_FRAME_CONSTANTS_IA32_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_SSE_INSTR_H_
#define V8_SSE_INSTR_H_
#ifndef V8_IA32_SSE_INSTR_H_
#define V8_IA32_SSE_INSTR_H_
#define SSE2_INSTRUCTION_LIST(V) \
V(paddb, 66, 0F, FC) \
......@@ -60,4 +60,4 @@
V(pmaxud, 66, 0F, 38, 3F) \
V(pmulld, 66, 0F, 38, 40)
#endif // V8_SSE_INSTR_H_
#endif // V8_IA32_SSE_INSTR_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_SRC_IC_ACCESSOR_ASSEMBLER_H_
#define V8_SRC_IC_ACCESSOR_ASSEMBLER_H_
#ifndef V8_IC_ACCESSOR_ASSEMBLER_H_
#define V8_IC_ACCESSOR_ASSEMBLER_H_
#include "src/code-stub-assembler.h"
......@@ -335,4 +335,4 @@ class ExitPoint {
} // namespace internal
} // namespace v8
#endif // V8_SRC_IC_ACCESSOR_ASSEMBLER_H_
#endif // V8_IC_ACCESSOR_ASSEMBLER_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_SRC_IC_BINARY_OP_ASSEMBLER_H_
#define V8_SRC_IC_BINARY_OP_ASSEMBLER_H_
#ifndef V8_IC_BINARY_OP_ASSEMBLER_H_
#define V8_IC_BINARY_OP_ASSEMBLER_H_
#include <functional>
#include "src/code-stub-assembler.h"
......@@ -60,4 +60,4 @@ class BinaryOpAssembler : public CodeStubAssembler {
} // namespace internal
} // namespace v8
#endif // V8_SRC_IC_BINARY_OP_ASSEMBLER_H_
#endif // V8_IC_BINARY_OP_ASSEMBLER_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_IC_INL_H_
#define V8_IC_INL_H_
#ifndef V8_IC_IC_INL_H_
#define V8_IC_IC_INL_H_
#include "src/ic/ic.h"
......@@ -59,4 +59,4 @@ bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) {
} // namespace internal
} // namespace v8
#endif // V8_IC_INL_H_
#endif // V8_IC_IC_INL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_IC_H_
#define V8_IC_H_
#ifndef V8_IC_IC_H_
#define V8_IC_IC_H_
#include <vector>
......@@ -385,4 +385,4 @@ class KeyedStoreIC : public StoreIC {
} // namespace internal
} // namespace v8
#endif // V8_IC_H_
#endif // V8_IC_IC_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_SRC_IC_KEYED_STORE_GENERIC_H_
#define V8_SRC_IC_KEYED_STORE_GENERIC_H_
#ifndef V8_IC_KEYED_STORE_GENERIC_H_
#define V8_IC_KEYED_STORE_GENERIC_H_
#include "src/globals.h"
......@@ -27,4 +27,4 @@ class StoreICUninitializedGenerator {
} // namespace internal
} // namespace v8
#endif // V8_SRC_IC_KEYED_STORE_GENERIC_H_
#endif // V8_IC_KEYED_STORE_GENERIC_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_STUB_CACHE_H_
#define V8_STUB_CACHE_H_
#ifndef V8_IC_STUB_CACHE_H_
#define V8_IC_STUB_CACHE_H_
#include "src/macro-assembler.h"
#include "src/objects/name.h"
......@@ -140,4 +140,4 @@ class StubCache {
} // namespace internal
} // namespace v8
#endif // V8_STUB_CACHE_H_
#endif // V8_IC_STUB_CACHE_H_
......@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef V8_INSPECTOR_INJECTEDSCRIPT_H_
#define V8_INSPECTOR_INJECTEDSCRIPT_H_
#ifndef V8_INSPECTOR_INJECTED_SCRIPT_H_
#define V8_INSPECTOR_INJECTED_SCRIPT_H_
#include <unordered_map>
#include <unordered_set>
......@@ -220,4 +220,4 @@ class InjectedScript final {
} // namespace v8_inspector
#endif // V8_INSPECTOR_INJECTEDSCRIPT_H_
#endif // V8_INSPECTOR_INJECTED_SCRIPT_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_INSPECTEDCONTEXT_H_
#define V8_INSPECTOR_INSPECTEDCONTEXT_H_
#ifndef V8_INSPECTOR_INSPECTED_CONTEXT_H_
#define V8_INSPECTOR_INSPECTED_CONTEXT_H_
#include <unordered_map>
#include <unordered_set>
......@@ -65,4 +65,4 @@ class InspectedContext {
} // namespace v8_inspector
#endif // V8_INSPECTOR_INSPECTEDCONTEXT_H_
#endif // V8_INSPECTOR_INSPECTED_CONTEXT_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_REMOTEOBJECTID_H_
#define V8_INSPECTOR_REMOTEOBJECTID_H_
#ifndef V8_INSPECTOR_REMOTE_OBJECT_ID_H_
#define V8_INSPECTOR_REMOTE_OBJECT_ID_H_
#include "src/inspector/protocol/Forward.h"
......@@ -54,4 +54,4 @@ class RemoteCallFrameId final : public RemoteObjectIdBase {
} // namespace v8_inspector
#endif // V8_INSPECTOR_REMOTEOBJECTID_H_
#endif // V8_INSPECTOR_REMOTE_OBJECT_ID_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_SEARCHUTIL_H_
#define V8_INSPECTOR_SEARCHUTIL_H_
#ifndef V8_INSPECTOR_SEARCH_UTIL_H_
#define V8_INSPECTOR_SEARCH_UTIL_H_
#include "src/inspector/protocol/Debugger.h"
#include "src/inspector/string-util.h"
......@@ -21,4 +21,4 @@ searchInTextByLinesImpl(V8InspectorSession*, const String16& text,
} // namespace v8_inspector
#endif // V8_INSPECTOR_SEARCHUTIL_H_
#endif // V8_INSPECTOR_SEARCH_UTIL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_STRING16_H_
#define V8_INSPECTOR_STRING16_H_
#ifndef V8_INSPECTOR_STRING_16_H_
#define V8_INSPECTOR_STRING_16_H_
#include <stdint.h>
#include <cctype>
......@@ -149,4 +149,4 @@ struct hash<v8_inspector::String16> {
#endif // !defined(__APPLE__) || defined(_LIBCPP_VERSION)
#endif // V8_INSPECTOR_STRING16_H_
#endif // V8_INSPECTOR_STRING_16_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_STRINGUTIL_H_
#define V8_INSPECTOR_STRINGUTIL_H_
#ifndef V8_INSPECTOR_STRING_UTIL_H_
#define V8_INSPECTOR_STRING_UTIL_H_
#include <memory>
......@@ -92,4 +92,4 @@ String16 stackTraceIdToString(uintptr_t id);
} // namespace v8_inspector
#endif // V8_INSPECTOR_STRINGUTIL_H_
#endif // V8_INSPECTOR_STRING_UTIL_H_
......@@ -16,4 +16,4 @@ V8_EXPORT void DumpAsyncTaskStacksStateForTest(V8Inspector* inspector);
} // v8_inspector
#endif // V8_INSPECTOR_TEST_INTERFACE_H_
#endif // V8_INSPECTOR_TEST_INTERFACE_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8CONSOLEAGENTIMPL_H_
#define V8_INSPECTOR_V8CONSOLEAGENTIMPL_H_
#ifndef V8_INSPECTOR_V8_CONSOLE_AGENT_IMPL_H_
#define V8_INSPECTOR_V8_CONSOLE_AGENT_IMPL_H_
#include "src/base/macros.h"
#include "src/inspector/protocol/Console.h"
......@@ -45,4 +45,4 @@ class V8ConsoleAgentImpl : public protocol::Console::Backend {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8CONSOLEAGENTIMPL_H_
#endif // V8_INSPECTOR_V8_CONSOLE_AGENT_IMPL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8CONSOLEMESSAGE_H_
#define V8_INSPECTOR_V8CONSOLEMESSAGE_H_
#ifndef V8_INSPECTOR_V8_CONSOLE_MESSAGE_H_
#define V8_INSPECTOR_V8_CONSOLE_MESSAGE_H_
#include <deque>
#include <map>
......@@ -138,4 +138,4 @@ class V8ConsoleMessageStorage {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8CONSOLEMESSAGE_H_
#endif // V8_INSPECTOR_V8_CONSOLE_MESSAGE_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8CONSOLE_H_
#define V8_INSPECTOR_V8CONSOLE_H_
#ifndef V8_INSPECTOR_V8_CONSOLE_H_
#define V8_INSPECTOR_V8_CONSOLE_H_
#include "src/base/macros.h"
......@@ -172,4 +172,4 @@ class V8Console : public v8::debug::ConsoleDelegate {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8CONSOLE_H_
#endif // V8_INSPECTOR_V8_CONSOLE_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_
#define V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_
#ifndef V8_INSPECTOR_V8_DEBUGGER_AGENT_IMPL_H_
#define V8_INSPECTOR_V8_DEBUGGER_AGENT_IMPL_H_
#include <vector>
......@@ -215,4 +215,4 @@ String16 scopeType(v8::debug::ScopeIterator::ScopeType type);
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_
#endif // V8_INSPECTOR_V8_DEBUGGER_AGENT_IMPL_H_
......@@ -27,8 +27,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef V8_INSPECTOR_V8DEBUGGERSCRIPT_H_
#define V8_INSPECTOR_V8DEBUGGERSCRIPT_H_
#ifndef V8_INSPECTOR_V8_DEBUGGER_SCRIPT_H_
#define V8_INSPECTOR_V8_DEBUGGER_SCRIPT_H_
#include "src/base/macros.h"
#include "src/inspector/string-16.h"
......@@ -111,4 +111,4 @@ class V8DebuggerScript {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8DEBUGGERSCRIPT_H_
#endif // V8_INSPECTOR_V8_DEBUGGER_SCRIPT_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8DEBUGGER_H_
#define V8_INSPECTOR_V8DEBUGGER_H_
#ifndef V8_INSPECTOR_V8_DEBUGGER_H_
#define V8_INSPECTOR_V8_DEBUGGER_H_
#include <list>
#include <unordered_map>
......@@ -240,4 +240,4 @@ class V8Debugger : public v8::debug::DebugDelegate {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8DEBUGGER_H_
#endif // V8_INSPECTOR_V8_DEBUGGER_H_
......@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef V8_INSPECTOR_V8FUNCTIONCALL_H_
#define V8_INSPECTOR_V8FUNCTIONCALL_H_
#ifndef V8_INSPECTOR_V8_FUNCTION_CALL_H_
#define V8_INSPECTOR_V8_FUNCTION_CALL_H_
#include "src/inspector/string-16.h"
......@@ -62,4 +62,4 @@ class V8FunctionCall {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8FUNCTIONCALL_H_
#endif // V8_INSPECTOR_V8_FUNCTION_CALL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8HEAPPROFILERAGENTIMPL_H_
#define V8_INSPECTOR_V8HEAPPROFILERAGENTIMPL_H_
#ifndef V8_INSPECTOR_V8_HEAP_PROFILER_AGENT_IMPL_H_
#define V8_INSPECTOR_V8_HEAP_PROFILER_AGENT_IMPL_H_
#include "src/base/macros.h"
#include "src/inspector/protocol/Forward.h"
......@@ -66,4 +66,4 @@ class V8HeapProfilerAgentImpl : public protocol::HeapProfiler::Backend {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8HEAPPROFILERAGENTIMPL_H_
#endif // V8_INSPECTOR_V8_HEAP_PROFILER_AGENT_IMPL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8INJECTEDSCRIPTHOST_H_
#define V8_INSPECTOR_V8INJECTEDSCRIPTHOST_H_
#ifndef V8_INSPECTOR_V8_INJECTED_SCRIPT_HOST_H_
#define V8_INSPECTOR_V8_INJECTED_SCRIPT_HOST_H_
#include "include/v8.h"
......@@ -50,4 +50,4 @@ class V8InjectedScriptHost {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8INJECTEDSCRIPTHOST_H_
#endif // V8_INSPECTOR_V8_INJECTED_SCRIPT_HOST_H_
......@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef V8_INSPECTOR_V8INSPECTORIMPL_H_
#define V8_INSPECTOR_V8INSPECTORIMPL_H_
#ifndef V8_INSPECTOR_V8_INSPECTOR_IMPL_H_
#define V8_INSPECTOR_V8_INSPECTOR_IMPL_H_
#include <functional>
#include <map>
......@@ -154,4 +154,4 @@ class V8InspectorImpl : public V8Inspector {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8INSPECTORIMPL_H_
#endif // V8_INSPECTOR_V8_INSPECTOR_IMPL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_
#define V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_
#ifndef V8_INSPECTOR_V8_INSPECTOR_SESSION_IMPL_H_
#define V8_INSPECTOR_V8_INSPECTOR_SESSION_IMPL_H_
#include <vector>
......@@ -126,4 +126,4 @@ class V8InspectorSessionImpl : public V8InspectorSession,
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_
#endif // V8_INSPECTOR_V8_INSPECTOR_SESSION_IMPL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8INTERNALVALUETYPE_H_
#define V8_INSPECTOR_V8INTERNALVALUETYPE_H_
#ifndef V8_INSPECTOR_V8_INTERNAL_VALUE_TYPE_H_
#define V8_INSPECTOR_V8_INTERNAL_VALUE_TYPE_H_
#include "include/v8.h"
......@@ -20,4 +20,4 @@ v8::Local<v8::Value> v8InternalValueTypeFrom(v8::Local<v8::Context>,
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8INTERNALVALUETYPE_H_
#endif // V8_INSPECTOR_V8_INTERNAL_VALUE_TYPE_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8PROFILERAGENTIMPL_H_
#define V8_INSPECTOR_V8PROFILERAGENTIMPL_H_
#ifndef V8_INSPECTOR_V8_PROFILER_AGENT_IMPL_H_
#define V8_INSPECTOR_V8_PROFILER_AGENT_IMPL_H_
#include <vector>
......@@ -85,4 +85,4 @@ class V8ProfilerAgentImpl : public protocol::Profiler::Backend {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8PROFILERAGENTIMPL_H_
#endif // V8_INSPECTOR_V8_PROFILER_AGENT_IMPL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8REGEX_H_
#define V8_INSPECTOR_V8REGEX_H_
#ifndef V8_INSPECTOR_V8_REGEX_H_
#define V8_INSPECTOR_V8_REGEX_H_
#include "src/base/macros.h"
#include "src/inspector/string-16.h"
......@@ -34,4 +34,4 @@ class V8Regex {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8REGEX_H_
#endif // V8_INSPECTOR_V8_REGEX_H_
......@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef V8_INSPECTOR_V8RUNTIMEAGENTIMPL_H_
#define V8_INSPECTOR_V8RUNTIMEAGENTIMPL_H_
#ifndef V8_INSPECTOR_V8_RUNTIME_AGENT_IMPL_H_
#define V8_INSPECTOR_V8_RUNTIME_AGENT_IMPL_H_
#include "src/base/macros.h"
#include "src/inspector/protocol/Forward.h"
......@@ -129,4 +129,4 @@ class V8RuntimeAgentImpl : public protocol::Runtime::Backend {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8RUNTIMEAGENTIMPL_H_
#endif // V8_INSPECTOR_V8_RUNTIME_AGENT_IMPL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8SCHEMAAGENTIMPL_H_
#define V8_INSPECTOR_V8SCHEMAAGENTIMPL_H_
#ifndef V8_INSPECTOR_V8_SCHEMA_AGENT_IMPL_H_
#define V8_INSPECTOR_V8_SCHEMA_AGENT_IMPL_H_
#include "src/base/macros.h"
#include "src/inspector/protocol/Forward.h"
......@@ -33,4 +33,4 @@ class V8SchemaAgentImpl : public protocol::Schema::Backend {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8SCHEMAAGENTIMPL_H_
#endif // V8_INSPECTOR_V8_SCHEMA_AGENT_IMPL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8STACKTRACEIMPL_H_
#define V8_INSPECTOR_V8STACKTRACEIMPL_H_
#ifndef V8_INSPECTOR_V8_STACK_TRACE_IMPL_H_
#define V8_INSPECTOR_V8_STACK_TRACE_IMPL_H_
#include <memory>
#include <vector>
......@@ -145,4 +145,4 @@ class AsyncStackTrace {
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8STACKTRACEIMPL_H_
#endif // V8_INSPECTOR_V8_STACK_TRACE_IMPL_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_V8VALUEUTILS_H_
#define V8_INSPECTOR_V8VALUEUTILS_H_
#ifndef V8_INSPECTOR_V8_VALUE_UTILS_H_
#define V8_INSPECTOR_V8_VALUE_UTILS_H_
#include "src/inspector/protocol/Protocol.h"
......@@ -23,4 +23,4 @@ protocol::Response toProtocolValue(v8::Local<v8::Context>, v8::Local<v8::Value>,
} // namespace v8_inspector
#endif // V8_INSPECTOR_V8VALUEUTILS_H_
#endif // V8_INSPECTOR_V8_VALUE_UTILS_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INSPECTOR_WASMTRANSLATION_H_
#define V8_INSPECTOR_WASMTRANSLATION_H_
#ifndef V8_INSPECTOR_WASM_TRANSLATION_H_
#define V8_INSPECTOR_WASM_TRANSLATION_H_
#include <unordered_map>
......@@ -72,4 +72,4 @@ class WasmTranslation {
} // namespace v8_inspector
#endif // V8_INSPECTOR_WASMTRANSLATION_H_
#endif // V8_INSPECTOR_WASM_TRANSLATION_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_CALL_INTERFACE_DESCRIPTOR_H_
#define V8_CALL_INTERFACE_DESCRIPTOR_H_
#ifndef V8_INTERFACE_DESCRIPTORS_H_
#define V8_INTERFACE_DESCRIPTORS_H_
#include <memory>
......@@ -917,4 +917,4 @@ INTERFACE_DESCRIPTOR_LIST(DEF_KEY)
#include "src/arm/interface-descriptors-arm.h"
#endif
#endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
#endif // V8_INTERFACE_DESCRIPTORS_H_
......@@ -131,4 +131,4 @@ class V8_EXPORT_PRIVATE BytecodeArrayAccessor {
} // namespace internal
} // namespace v8
#endif // V8_INTERPRETER_BYTECODE_GRAPH_ACCESSOR_H_
#endif // V8_INTERPRETER_BYTECODE_ARRAY_ACCESSOR_H_
......@@ -64,4 +64,4 @@ class IntrinsicsHelper {
} // namespace internal
} // namespace v8
#endif
#endif // V8_INTERPRETER_INTERPRETER_INTRINSICS_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_LIBPLATFORM_TRACING_TRACE_BUFFER_H_
#define SRC_LIBPLATFORM_TRACING_TRACE_BUFFER_H_
#ifndef V8_LIBPLATFORM_TRACING_TRACE_BUFFER_H_
#define V8_LIBPLATFORM_TRACING_TRACE_BUFFER_H_
#include <memory>
#include <vector>
......@@ -45,4 +45,4 @@ class TraceBufferRingBuffer : public TraceBuffer {
} // namespace platform
} // namespace v8
#endif // SRC_LIBPLATFORM_TRACING_TRACE_BUFFER_H_
#endif // V8_LIBPLATFORM_TRACING_TRACE_BUFFER_H_
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_LIBPLATFORM_TRACING_TRACE_WRITER_H_
#define SRC_LIBPLATFORM_TRACING_TRACE_WRITER_H_
#ifndef V8_LIBPLATFORM_TRACING_TRACE_WRITER_H_
#define V8_LIBPLATFORM_TRACING_TRACE_WRITER_H_
#include "include/libplatform/v8-tracing.h"
......@@ -30,4 +30,4 @@ class JSONTraceWriter : public TraceWriter {
} // namespace platform
} // namespace v8
#endif // SRC_LIBPLATFORM_TRACING_TRACE_WRITER_H_
#endif // V8_LIBPLATFORM_TRACING_TRACE_WRITER_H_
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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