From 6a769ac1df0e407d5623170a6cc150a99b9f4ea4 Mon Sep 17 00:00:00 2001 From: mstarzinger Date: Wed, 30 Sep 2015 06:46:56 -0700 Subject: [PATCH] [presubmit] Enable readability/namespace linter checking. This enables linter checking for "readability/namespace" violations during presubmit and instead marks the few known exceptions that we allow explicitly. R=bmeurer@chromium.org Review URL: https://codereview.chromium.org/1371083003 Cr-Commit-Position: refs/heads/master@{#31019} --- include/v8.h | 2 +- src/accessors.h | 3 ++- src/allocation-site-scopes.h | 3 ++- src/allocation.h | 3 ++- src/api.h | 3 ++- src/arguments.h | 3 ++- src/arm/assembler-arm-inl.h | 3 ++- src/arm/assembler-arm.h | 3 ++- src/arm/code-stubs-arm.h | 3 ++- src/arm/codegen-arm.h | 3 ++- src/arm/constants-arm.h | 3 ++- src/arm/frames-arm.h | 3 ++- src/arm/interface-descriptors-arm.h | 4 ++-- src/arm/lithium-arm.h | 3 ++- src/arm/lithium-codegen-arm.h | 3 ++- src/arm/lithium-gap-resolver-arm.h | 3 ++- src/arm/macro-assembler-arm.h | 3 ++- src/arm/simulator-arm.h | 6 ++++-- src/arm64/assembler-arm64-inl.h | 3 ++- src/arm64/assembler-arm64.h | 3 ++- src/arm64/code-stubs-arm64.h | 3 ++- src/arm64/codegen-arm64.h | 3 ++- src/arm64/constants-arm64.h | 3 ++- src/arm64/decoder-arm64-inl.h | 3 ++- src/arm64/decoder-arm64.h | 3 ++- src/arm64/delayed-masm-arm64-inl.h | 3 ++- src/arm64/delayed-masm-arm64.h | 3 ++- src/arm64/disasm-arm64.h | 3 ++- src/arm64/frames-arm64.h | 3 ++- src/arm64/instructions-arm64.h | 3 ++- src/arm64/instrument-arm64.h | 3 ++- src/arm64/interface-descriptors-arm64.h | 4 ++-- src/arm64/lithium-arm64.h | 3 ++- src/arm64/lithium-codegen-arm64.h | 3 ++- src/arm64/lithium-gap-resolver-arm64.h | 3 ++- src/arm64/macro-assembler-arm64-inl.h | 3 ++- src/arm64/macro-assembler-arm64.h | 3 ++- src/arm64/simulator-arm64.h | 3 ++- src/arm64/utils-arm64.h | 3 ++- src/assembler.h | 3 ++- src/assert-scope.h | 3 ++- src/ast-expression-visitor.cc | 4 ++-- src/ast-expression-visitor.h | 4 ++-- src/ast-literal-reindexer.cc | 4 ++-- src/ast-literal-reindexer.h | 4 ++-- src/ast-value-factory.cc | 2 +- src/ast-value-factory.h | 3 ++- src/ast.h | 3 ++- src/background-parsing-task.h | 4 ++-- src/base/atomicops.h | 3 ++- src/base/atomicops_internals_arm64_gcc.h | 3 ++- src/base/atomicops_internals_arm_gcc.h | 3 ++- src/base/atomicops_internals_atomicword_compat.h | 3 ++- src/base/atomicops_internals_mac.h | 3 ++- src/base/atomicops_internals_mips64_gcc.h | 3 ++- src/base/atomicops_internals_mips_gcc.h | 3 ++- src/base/atomicops_internals_portable.h | 4 ++-- src/base/atomicops_internals_ppc_gcc.h | 4 ++-- src/base/atomicops_internals_x86_gcc.cc | 3 ++- src/base/atomicops_internals_x86_gcc.h | 3 ++- src/base/atomicops_internals_x86_msvc.h | 3 ++- src/base/cpu.cc | 3 ++- src/base/cpu.h | 3 ++- src/base/lazy-instance.h | 3 ++- src/base/macros.h | 5 +++-- src/base/once.cc | 3 ++- src/base/once.h | 3 ++- src/base/platform/condition-variable.cc | 3 ++- src/base/platform/condition-variable.h | 3 ++- src/base/platform/elapsed-timer.h | 3 ++- src/base/platform/mutex.cc | 3 ++- src/base/platform/mutex.h | 3 ++- src/base/platform/platform-aix.cc | 4 ++-- src/base/platform/platform-cygwin.cc | 3 ++- src/base/platform/platform-freebsd.cc | 3 ++- src/base/platform/platform-linux.cc | 3 ++- src/base/platform/platform-macos.cc | 3 ++- src/base/platform/platform-openbsd.cc | 3 ++- src/base/platform/platform-qnx.cc | 3 ++- src/base/platform/platform-solaris.cc | 3 ++- src/base/platform/platform.h | 3 ++- src/base/platform/semaphore.cc | 3 ++- src/base/platform/semaphore.h | 3 ++- src/base/platform/time.cc | 3 ++- src/base/platform/time.h | 3 ++- src/base/utils/random-number-generator.cc | 3 ++- src/base/utils/random-number-generator.h | 3 ++- src/bignum-dtoa.h | 3 ++- src/bignum.h | 3 ++- src/bootstrapper.h | 3 ++- src/builtins.h | 3 ++- src/cached-powers.h | 3 ++- src/char-predicates-inl.h | 3 ++- src/char-predicates.h | 3 ++- src/checks.h | 3 ++- src/code-stubs.h | 3 ++- src/codegen.h | 3 ++- src/compilation-cache.h | 3 ++- src/compilation-dependencies.h | 4 ++-- src/compiler.h | 3 ++- src/compiler/arm64/instruction-codes-arm64.h | 2 +- src/compiler/ast-loop-assignment-analyzer.h | 6 +++--- src/compiler/c-linkage.cc | 7 ++++--- src/compiler/frame.h | 6 +++--- src/compiler/interpreter-assembler.cc | 2 +- src/compiler/interpreter-assembler.h | 2 +- src/compiler/verifier.h | 6 +++--- src/compiler/x64/code-generator-x64.cc | 2 +- src/context-measure.cc | 4 ++-- src/context-measure.h | 4 ++-- src/contexts.h | 3 ++- src/conversions-inl.h | 3 ++- src/counters.h | 3 ++- src/date.h | 3 ++- src/dateparser-inl.h | 3 ++- src/dateparser.h | 3 ++- src/debug/debug.h | 3 ++- src/debug/liveedit.h | 3 ++- src/disassembler.h | 3 ++- src/diy-fp.h | 3 ++- src/double.h | 3 ++- src/dtoa.h | 3 ++- src/effects.h | 3 ++- src/elements-kind.h | 3 ++- src/elements.h | 3 ++- src/execution.h | 3 ++- src/expression-classifier.h | 5 +++-- src/extensions/externalize-string-extension.h | 3 ++- src/extensions/free-buffer-extension.h | 3 ++- src/extensions/gc-extension.h | 3 ++- src/extensions/statistics-extension.h | 3 ++- src/extensions/trigger-failure-extension.h | 3 ++- src/factory.h | 3 ++- src/fast-dtoa.h | 3 ++- src/field-index-inl.h | 3 ++- src/field-index.h | 3 ++- src/fixed-dtoa.h | 3 ++- src/flags.h | 3 ++- src/frames-inl.h | 3 ++- src/frames.h | 3 ++- src/full-codegen/full-codegen.h | 3 ++- src/func-name-inferrer.h | 3 ++- src/futex-emulation.h | 4 ++-- src/global-handles.h | 3 ++- src/globals.h | 3 ++- src/hashmap.h | 3 ++- src/heap/array-buffer-tracker.h | 4 ++-- src/heap/gc-idle-time-handler.cc | 4 ++-- src/heap/gc-tracer.h | 4 ++-- src/heap/heap-inl.h | 4 ++-- src/heap/heap.h | 4 ++-- src/heap/incremental-marking-job.h | 4 ++-- src/heap/incremental-marking.h | 4 ++-- src/heap/mark-compact.h | 4 ++-- src/heap/memory-reducer.cc | 4 ++-- src/heap/objects-visiting-inl.h | 4 ++-- src/heap/objects-visiting.h | 4 ++-- src/heap/scavenge-job.cc | 4 ++-- src/heap/scavenge-job.h | 4 ++-- src/heap/spaces-inl.h | 4 ++-- src/heap/spaces.h | 4 ++-- src/heap/store-buffer-inl.h | 4 ++-- src/heap/store-buffer.h | 4 ++-- src/hydrogen-alias-analysis.h | 3 ++- src/hydrogen-bce.h | 3 ++- src/hydrogen-bch.h | 3 ++- src/hydrogen-canonicalize.h | 3 ++- src/hydrogen-check-elimination.h | 3 ++- src/hydrogen-dce.h | 3 ++- src/hydrogen-dehoist.h | 3 ++- src/hydrogen-environment-liveness.h | 3 ++- src/hydrogen-escape-analysis.h | 3 ++- src/hydrogen-flow-engine.h | 3 ++- src/hydrogen-gvn.h | 3 ++- src/hydrogen-infer-representation.h | 3 ++- src/hydrogen-infer-types.h | 3 ++- src/hydrogen-instructions.h | 3 ++- src/hydrogen-load-elimination.h | 3 ++- src/hydrogen-mark-deoptimize.h | 3 ++- src/hydrogen-mark-unreachable.h | 3 ++- src/hydrogen-osr.h | 3 ++- src/hydrogen-range-analysis.h | 3 ++- src/hydrogen-redundant-phi.h | 3 ++- src/hydrogen-removable-simulates.h | 3 ++- src/hydrogen-representation-changes.h | 3 ++- src/hydrogen-sce.h | 3 ++- src/hydrogen-store-elimination.h | 3 ++- src/hydrogen-types.h | 3 ++- src/hydrogen-uint32-analysis.h | 3 ++- src/hydrogen.h | 3 ++- src/i18n.h | 3 ++- src/ia32/assembler-ia32-inl.h | 3 ++- src/ia32/assembler-ia32.h | 3 ++- src/ia32/code-stubs-ia32.h | 3 ++- src/ia32/codegen-ia32.h | 3 ++- src/ia32/frames-ia32.h | 3 ++- src/ia32/lithium-codegen-ia32.h | 3 ++- src/ia32/lithium-gap-resolver-ia32.h | 3 ++- src/ia32/lithium-ia32.h | 3 ++- src/ia32/macro-assembler-ia32.h | 3 ++- src/ia32/simulator-ia32.h | 3 ++- src/ic/access-compiler.h | 4 ++-- src/ic/call-optimization.h | 4 ++-- src/ic/handler-compiler.h | 4 ++-- src/ic/ic-compiler.h | 4 ++-- src/ic/ic-inl.h | 4 ++-- src/ic/ic-state.h | 5 +++-- src/ic/ic.h | 4 ++-- src/ic/stub-cache.h | 4 ++-- src/icu_util.h | 3 ++- src/identity-map.h | 4 ++-- src/interface-descriptors.cc | 2 +- src/interface-descriptors.h | 4 ++-- src/isolate.h | 3 ++- src/json-parser.h | 3 ++- src/json-stringifier.h | 3 ++- src/layout-descriptor-inl.h | 4 ++-- src/layout-descriptor.h | 4 ++-- src/libplatform/default-platform.cc | 3 ++- src/libplatform/default-platform.h | 3 ++- src/libplatform/task-queue.cc | 3 ++- src/libplatform/task-queue.h | 3 ++- src/libplatform/worker-thread.cc | 3 ++- src/libplatform/worker-thread.h | 3 ++- src/list-inl.h | 3 ++- src/list.h | 3 ++- src/lithium-allocator-inl.h | 3 ++- src/lithium-allocator.h | 3 ++- src/lithium-codegen.h | 3 ++- src/lithium-inl.h | 4 ++-- src/lithium.h | 3 ++- src/log-inl.h | 3 ++- src/log-utils.h | 3 ++- src/log.h | 3 ++- src/lookup-inl.h | 4 ++-- src/lookup.h | 3 ++- src/macro-assembler.h | 3 ++- src/messages.h | 3 ++- src/mips/assembler-mips-inl.h | 3 ++- src/mips/assembler-mips.h | 3 ++- src/mips/code-stubs-mips.h | 3 ++- src/mips/codegen-mips.h | 3 ++- src/mips/constants-mips.h | 3 ++- src/mips/frames-mips.h | 3 ++- src/mips/lithium-codegen-mips.h | 3 ++- src/mips/lithium-gap-resolver-mips.h | 3 ++- src/mips/lithium-mips.h | 3 ++- src/mips/macro-assembler-mips.h | 3 ++- src/mips/simulator-mips.h | 6 ++++-- src/mips64/assembler-mips64-inl.h | 3 ++- src/mips64/assembler-mips64.h | 3 ++- src/mips64/code-stubs-mips64.h | 3 ++- src/mips64/codegen-mips64.h | 3 ++- src/mips64/constants-mips64.h | 3 ++- src/mips64/frames-mips64.h | 3 ++- src/mips64/lithium-codegen-mips64.h | 3 ++- src/mips64/lithium-gap-resolver-mips64.h | 3 ++- src/mips64/lithium-mips64.h | 3 ++- src/mips64/macro-assembler-mips64.h | 3 ++- src/mips64/simulator-mips64.h | 6 ++++-- src/modules.h | 3 ++- src/objects-inl.h | 3 ++- src/objects.h | 4 +++- src/optimizing-compile-dispatcher.h | 4 ++-- src/parser.h | 3 ++- src/ppc/assembler-ppc-inl.h | 4 ++-- src/ppc/assembler-ppc.h | 4 ++-- src/ppc/code-stubs-ppc.h | 4 ++-- src/ppc/codegen-ppc.h | 4 ++-- src/ppc/constants-ppc.h | 4 ++-- src/ppc/frames-ppc.h | 4 ++-- src/ppc/lithium-codegen-ppc.h | 4 ++-- src/ppc/lithium-gap-resolver-ppc.h | 4 ++-- src/ppc/lithium-ppc.h | 4 ++-- src/ppc/macro-assembler-ppc.h | 4 ++-- src/ppc/simulator-ppc.h | 8 ++++---- src/preparse-data-format.h | 3 ++- src/preparse-data.h | 3 ++- src/preparser.cc | 3 ++- src/preparser.h | 3 ++- src/prettyprinter.h | 3 ++- src/profiler/allocation-tracker.h | 3 ++- src/profiler/circular-queue-inl.h | 3 ++- src/profiler/circular-queue.h | 3 ++- src/profiler/cpu-profiler-inl.h | 3 ++- src/profiler/cpu-profiler.h | 3 ++- src/profiler/heap-profiler.h | 3 ++- src/profiler/heap-snapshot-generator-inl.h | 3 ++- src/profiler/heap-snapshot-generator.h | 3 ++- src/profiler/profile-generator-inl.h | 3 ++- src/profiler/profile-generator.h | 3 ++- src/profiler/sampler.h | 3 ++- src/profiler/unbound-queue-inl.h | 3 ++- src/profiler/unbound-queue.h | 3 ++- src/property-details.h | 3 ++- src/property.h | 3 ++- src/regexp/arm/regexp-macro-assembler-arm.h | 3 ++- src/regexp/arm64/regexp-macro-assembler-arm64.h | 3 ++- src/regexp/bytecodes-irregexp.h | 4 +++- src/regexp/ia32/regexp-macro-assembler-ia32.h | 3 ++- src/regexp/interpreter-irregexp.h | 3 ++- src/regexp/jsregexp-inl.h | 3 ++- src/regexp/mips/regexp-macro-assembler-mips.h | 3 ++- src/regexp/mips64/regexp-macro-assembler-mips64.h | 3 ++- src/regexp/ppc/regexp-macro-assembler-ppc.h | 4 ++-- src/regexp/regexp-macro-assembler-irregexp-inl.h | 3 ++- src/regexp/regexp-macro-assembler-irregexp.h | 3 ++- src/regexp/regexp-macro-assembler-tracer.h | 3 ++- src/regexp/regexp-macro-assembler.h | 3 ++- src/regexp/regexp-stack.h | 3 ++- src/regexp/x64/regexp-macro-assembler-x64.h | 3 ++- src/regexp/x87/regexp-macro-assembler-x87.h | 3 ++- src/rewriter.h | 3 ++- src/runtime-profiler.h | 3 ++- src/runtime/runtime-atomics.cc | 4 ++-- src/runtime/runtime-futex.cc | 4 ++-- src/runtime/runtime-utils.h | 4 ++-- src/safepoint-table.h | 3 ++- src/scanner-character-streams.h | 3 ++- src/scanner.h | 3 ++- src/scopeinfo.h | 3 ++- src/scopes.h | 3 ++- src/small-pointer-list.h | 3 ++- src/snapshot/natives.h | 3 ++- src/snapshot/serialize.h | 3 ++- src/snapshot/snapshot-source-sink.h | 2 +- src/snapshot/snapshot.h | 3 ++- src/splay-tree-inl.h | 3 ++- src/splay-tree.h | 3 ++- src/string-builder.h | 4 ++-- src/string-search.h | 3 ++- src/string-stream.h | 3 ++- src/strings-storage.h | 4 ++-- src/strtod.h | 3 ++- src/third_party/fdlibm/fdlibm.h | 4 ++-- src/token.h | 3 ++- src/transitions-inl.h | 3 ++- src/transitions.h | 3 ++- src/type-feedback-vector-inl.h | 4 ++-- src/type-feedback-vector.h | 4 ++-- src/type-info.h | 3 ++- src/types-inl.h | 3 ++- src/types.h | 3 ++- src/typing-asm.cc | 4 ++-- src/typing-asm.h | 4 ++-- src/typing-reset.cc | 4 ++-- src/typing-reset.h | 4 ++-- src/typing.h | 3 ++- src/unique.h | 3 ++- src/v8.h | 3 ++- src/v8memory.h | 3 ++- src/v8threads.h | 3 ++- src/variables.h | 3 ++- src/vector.h | 3 ++- src/version.h | 3 ++- src/vm-state-inl.h | 3 ++- src/vm-state.h | 3 ++- src/x64/assembler-x64-inl.h | 3 ++- src/x64/assembler-x64.h | 3 ++- src/x64/code-stubs-x64.h | 3 ++- src/x64/codegen-x64.h | 3 ++- src/x64/frames-x64.h | 3 ++- src/x64/lithium-codegen-x64.h | 3 ++- src/x64/lithium-gap-resolver-x64.h | 3 ++- src/x64/lithium-x64.h | 3 ++- src/x64/macro-assembler-x64.h | 3 ++- src/x64/simulator-x64.h | 3 ++- src/x87/assembler-x87-inl.h | 3 ++- src/x87/assembler-x87.h | 3 ++- src/x87/code-stubs-x87.h | 3 ++- src/x87/codegen-x87.h | 3 ++- src/x87/frames-x87.h | 3 ++- src/x87/lithium-codegen-x87.h | 3 ++- src/x87/lithium-gap-resolver-x87.h | 3 ++- src/x87/lithium-x87.h | 3 ++- src/x87/macro-assembler-x87.h | 3 ++- src/x87/simulator-x87.h | 3 ++- src/zone-allocator.h | 3 ++- test/cctest/compiler/c-signature.h | 6 +++--- test/cctest/compiler/function-tester.h | 6 +++--- test/cctest/compiler/test-loop-assignment-analysis.cc | 2 +- test/cctest/expression-type-collector.cc | 8 +++++--- test/cctest/expression-type-collector.h | 4 ++-- test/cctest/gay-fixed.h | 3 ++- test/cctest/gay-precision.h | 3 ++- test/cctest/gay-shortest.h | 3 ++- test/cctest/heap-tester.h | 5 +++-- test/cctest/interpreter/test-bytecode-generator.cc | 2 +- test/cctest/print-extension.h | 3 ++- test/cctest/profiler-extension.h | 3 ++- test/cctest/test-api-interceptors.cc | 3 ++- test/cctest/test-array-list.cc | 3 ++- test/cctest/test-asm-validator.cc | 6 ++++-- test/cctest/test-ast-expression-visitor.cc | 3 ++- test/cctest/test-dictionary.cc | 2 +- test/cctest/test-feedback-vector.cc | 3 ++- test/cctest/test-heap-profiler.cc | 6 ++++-- test/cctest/test-identity-map.cc | 5 +++-- test/cctest/test-microtask-delivery.cc | 2 +- test/cctest/test-typing-reset.cc | 3 ++- test/cctest/test-unscopables-hidden-prototype.cc | 3 ++- test/cctest/trace-extension.h | 3 ++- test/cctest/types-fuzz.h | 3 ++- test/unittests/compiler/node-matchers-unittest.cc | 3 ++- test/unittests/compiler/register-allocator-unittest.cc | 6 ++++-- test/unittests/runtime/runtime-interpreter-unittest.cc | 2 +- tools/presubmit.py | 2 -- tools/shell-utils.h | 3 ++- 408 files changed, 832 insertions(+), 506 deletions(-) diff --git a/include/v8.h b/include/v8.h index 3953543411..a51da93dfd 100644 --- a/include/v8.h +++ b/include/v8.h @@ -146,7 +146,7 @@ template class CustomArguments; class PropertyCallbackArguments; class FunctionCallbackArguments; class GlobalHandles; -} +} // namespace internal /** diff --git a/src/accessors.h b/src/accessors.h index 3c0079de89..6c1765c404 100644 --- a/src/accessors.h +++ b/src/accessors.h @@ -106,6 +106,7 @@ class Accessors : public AllStatic { Handle accessor); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ACCESSORS_H_ diff --git a/src/allocation-site-scopes.h b/src/allocation-site-scopes.h index 9e287c1310..87b469a687 100644 --- a/src/allocation-site-scopes.h +++ b/src/allocation-site-scopes.h @@ -95,6 +95,7 @@ class AllocationSiteUsageContext : public AllocationSiteContext { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ALLOCATION_SITE_SCOPES_H_ diff --git a/src/allocation.h b/src/allocation.h index 292e1fe23b..7c1e023b86 100644 --- a/src/allocation.h +++ b/src/allocation.h @@ -88,6 +88,7 @@ class FreeStoreAllocationPolicy { void* AlignedAlloc(size_t size, size_t alignment); void AlignedFree(void *ptr); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ALLOCATION_H_ diff --git a/src/api.h b/src/api.h index 1229279598..62ce67c50e 100644 --- a/src/api.h +++ b/src/api.h @@ -642,6 +642,7 @@ class Testing { static v8::Testing::StressType stress_type_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_API_H_ diff --git a/src/arguments.h b/src/arguments.h index ed995e7f58..63a3706fd8 100644 --- a/src/arguments.h +++ b/src/arguments.h @@ -283,6 +283,7 @@ static Type __RT_impl_##Name(Arguments args, Isolate* isolate) #define RUNTIME_FUNCTION_RETURN_PAIR(Name) \ RUNTIME_FUNCTION_RETURNS_TYPE(ObjectPair, Name) -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARGUMENTS_H_ diff --git a/src/arm/assembler-arm-inl.h b/src/arm/assembler-arm-inl.h index 8f8956c9e1..ff44f40dc2 100644 --- a/src/arm/assembler-arm-inl.h +++ b/src/arm/assembler-arm-inl.h @@ -666,6 +666,7 @@ void Assembler::set_target_address_at(Address pc, Address constant_pool, } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ diff --git a/src/arm/assembler-arm.h b/src/arm/assembler-arm.h index 1d1cc485d5..2ada571327 100644 --- a/src/arm/assembler-arm.h +++ b/src/arm/assembler-arm.h @@ -1667,6 +1667,7 @@ class EnsureSpace BASE_EMBEDDED { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_ASSEMBLER_ARM_H_ diff --git a/src/arm/code-stubs-arm.h b/src/arm/code-stubs-arm.h index e572fd9a1b..845e38a85e 100644 --- a/src/arm/code-stubs-arm.h +++ b/src/arm/code-stubs-arm.h @@ -311,6 +311,7 @@ class NameDictionaryLookupStub: public PlatformCodeStub { DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_CODE_STUBS_ARM_H_ diff --git a/src/arm/codegen-arm.h b/src/arm/codegen-arm.h index d36ce59d66..f54fb71d0a 100644 --- a/src/arm/codegen-arm.h +++ b/src/arm/codegen-arm.h @@ -44,6 +44,7 @@ class MathExpGenerator : public AllStatic { DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_CODEGEN_ARM_H_ diff --git a/src/arm/constants-arm.h b/src/arm/constants-arm.h index 6d544f3f36..efc060a82d 100644 --- a/src/arm/constants-arm.h +++ b/src/arm/constants-arm.h @@ -702,6 +702,7 @@ class VFPRegisters { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_CONSTANTS_ARM_H_ diff --git a/src/arm/frames-arm.h b/src/arm/frames-arm.h index dcba34f017..1ea7b1af56 100644 --- a/src/arm/frames-arm.h +++ b/src/arm/frames-arm.h @@ -128,6 +128,7 @@ class JavaScriptFrameConstants : public AllStatic { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_FRAMES_ARM_H_ diff --git a/src/arm/interface-descriptors-arm.h b/src/arm/interface-descriptors-arm.h index 6201adc685..a64927924e 100644 --- a/src/arm/interface-descriptors-arm.h +++ b/src/arm/interface-descriptors-arm.h @@ -20,7 +20,7 @@ class PlatformInterfaceDescriptor { private: TargetAddressStorageMode storage_mode_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_INTERFACE_DESCRIPTORS_ARM_H_ diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h index 8954710e53..a3dac055eb 100644 --- a/src/arm/lithium-arm.h +++ b/src/arm/lithium-arm.h @@ -2885,6 +2885,7 @@ class LChunkBuilder final : public LChunkBuilderBase { #undef DECLARE_HYDROGEN_ACCESSOR #undef DECLARE_CONCRETE_INSTRUCTION -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_LITHIUM_ARM_H_ diff --git a/src/arm/lithium-codegen-arm.h b/src/arm/lithium-codegen-arm.h index dc58479047..47f5ceac4c 100644 --- a/src/arm/lithium-codegen-arm.h +++ b/src/arm/lithium-codegen-arm.h @@ -393,6 +393,7 @@ class LDeferredCode : public ZoneObject { int instruction_index_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ diff --git a/src/arm/lithium-gap-resolver-arm.h b/src/arm/lithium-gap-resolver-arm.h index 88f1a7bb67..06cefef367 100644 --- a/src/arm/lithium-gap-resolver-arm.h +++ b/src/arm/lithium-gap-resolver-arm.h @@ -57,6 +57,7 @@ class LGapResolver final BASE_EMBEDDED { bool need_to_restore_root_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_LITHIUM_GAP_RESOLVER_ARM_H_ diff --git a/src/arm/macro-assembler-arm.h b/src/arm/macro-assembler-arm.h index d78bf8f49a..97878184ec 100644 --- a/src/arm/macro-assembler-arm.h +++ b/src/arm/macro-assembler-arm.h @@ -1564,6 +1564,7 @@ inline MemOperand GlobalObjectOperand() { #endif -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ diff --git a/src/arm/simulator-arm.h b/src/arm/simulator-arm.h index a972a77d41..0c6aaf8c24 100644 --- a/src/arm/simulator-arm.h +++ b/src/arm/simulator-arm.h @@ -55,7 +55,8 @@ class SimulatorStack : public v8::internal::AllStatic { static inline void UnregisterCTryCatch() { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #else // !defined(USE_SIMULATOR) // Running with a simulator. @@ -459,7 +460,8 @@ class SimulatorStack : public v8::internal::AllStatic { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // !defined(USE_SIMULATOR) #endif // V8_ARM_SIMULATOR_ARM_H_ diff --git a/src/arm64/assembler-arm64-inl.h b/src/arm64/assembler-arm64-inl.h index f02207f549..15085d5c64 100644 --- a/src/arm64/assembler-arm64-inl.h +++ b/src/arm64/assembler-arm64-inl.h @@ -1259,6 +1259,7 @@ void Assembler::ClearRecordedAstId() { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ diff --git a/src/arm64/assembler-arm64.h b/src/arm64/assembler-arm64.h index f20be8315e..3fa8513485 100644 --- a/src/arm64/assembler-arm64.h +++ b/src/arm64/assembler-arm64.h @@ -2296,6 +2296,7 @@ class EnsureSpace BASE_EMBEDDED { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ diff --git a/src/arm64/code-stubs-arm64.h b/src/arm64/code-stubs-arm64.h index 1b64a625f9..341153380d 100644 --- a/src/arm64/code-stubs-arm64.h +++ b/src/arm64/code-stubs-arm64.h @@ -384,6 +384,7 @@ class NameDictionaryLookupStub: public PlatformCodeStub { DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_CODE_STUBS_ARM64_H_ diff --git a/src/arm64/codegen-arm64.h b/src/arm64/codegen-arm64.h index 2f01c510de..7100ef1134 100644 --- a/src/arm64/codegen-arm64.h +++ b/src/arm64/codegen-arm64.h @@ -43,6 +43,7 @@ class MathExpGenerator : public AllStatic { DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_CODEGEN_ARM64_H_ diff --git a/src/arm64/constants-arm64.h b/src/arm64/constants-arm64.h index 1529c647ff..db68e42889 100644 --- a/src/arm64/constants-arm64.h +++ b/src/arm64/constants-arm64.h @@ -1237,6 +1237,7 @@ enum UnallocatedOp { UnallocatedFMask = 0x00000000 }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_CONSTANTS_ARM64_H_ diff --git a/src/arm64/decoder-arm64-inl.h b/src/arm64/decoder-arm64-inl.h index c29f2d3c5e..e00105e7bc 100644 --- a/src/arm64/decoder-arm64-inl.h +++ b/src/arm64/decoder-arm64-inl.h @@ -644,6 +644,7 @@ void Decoder::DecodeAdvSIMDDataProcessing(Instruction* instr) { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_DECODER_ARM64_INL_H_ diff --git a/src/arm64/decoder-arm64.h b/src/arm64/decoder-arm64.h index 6140bc2818..b1ef41f1a2 100644 --- a/src/arm64/decoder-arm64.h +++ b/src/arm64/decoder-arm64.h @@ -181,6 +181,7 @@ class Decoder : public V { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_DECODER_ARM64_H_ diff --git a/src/arm64/delayed-masm-arm64-inl.h b/src/arm64/delayed-masm-arm64-inl.h index 2c44630371..54239a18d4 100644 --- a/src/arm64/delayed-masm-arm64-inl.h +++ b/src/arm64/delayed-masm-arm64-inl.h @@ -50,6 +50,7 @@ void DelayedMasm::LoadObject(Register result, Handle object) { #undef __ -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_DELAYED_MASM_ARM64_INL_H_ diff --git a/src/arm64/delayed-masm-arm64.h b/src/arm64/delayed-masm-arm64.h index 76227a3898..92daed2851 100644 --- a/src/arm64/delayed-masm-arm64.h +++ b/src/arm64/delayed-masm-arm64.h @@ -159,6 +159,7 @@ class DelayedMasm BASE_EMBEDDED { #endif }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_DELAYED_MASM_ARM64_H_ diff --git a/src/arm64/disasm-arm64.h b/src/arm64/disasm-arm64.h index c6b189bf97..cd43af36ea 100644 --- a/src/arm64/disasm-arm64.h +++ b/src/arm64/disasm-arm64.h @@ -85,6 +85,7 @@ class PrintDisassembler: public Disassembler { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_DISASM_ARM64_H diff --git a/src/arm64/frames-arm64.h b/src/arm64/frames-arm64.h index 9e6551783d..783514437f 100644 --- a/src/arm64/frames-arm64.h +++ b/src/arm64/frames-arm64.h @@ -63,6 +63,7 @@ class JavaScriptFrameConstants : public AllStatic { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_FRAMES_ARM64_H_ diff --git a/src/arm64/instructions-arm64.h b/src/arm64/instructions-arm64.h index 145a7c9053..5c652e3ec8 100644 --- a/src/arm64/instructions-arm64.h +++ b/src/arm64/instructions-arm64.h @@ -532,7 +532,8 @@ enum DebugParameters { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_INSTRUCTIONS_ARM64_H_ diff --git a/src/arm64/instrument-arm64.h b/src/arm64/instrument-arm64.h index 86ddfcbbc1..02816e943e 100644 --- a/src/arm64/instrument-arm64.h +++ b/src/arm64/instrument-arm64.h @@ -80,6 +80,7 @@ class Instrument: public DecoderVisitor { uint64_t sample_period_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_INSTRUMENT_ARM64_H_ diff --git a/src/arm64/interface-descriptors-arm64.h b/src/arm64/interface-descriptors-arm64.h index 76def88326..20ab8cb612 100644 --- a/src/arm64/interface-descriptors-arm64.h +++ b/src/arm64/interface-descriptors-arm64.h @@ -20,7 +20,7 @@ class PlatformInterfaceDescriptor { private: TargetAddressStorageMode storage_mode_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_INTERFACE_DESCRIPTORS_ARM64_H_ diff --git a/src/arm64/lithium-arm64.h b/src/arm64/lithium-arm64.h index a77a6da38f..4a060250f7 100644 --- a/src/arm64/lithium-arm64.h +++ b/src/arm64/lithium-arm64.h @@ -3254,6 +3254,7 @@ class LChunkBuilder final : public LChunkBuilderBase { #undef DECLARE_HYDROGEN_ACCESSOR #undef DECLARE_CONCRETE_INSTRUCTION -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_LITHIUM_ARM64_H_ diff --git a/src/arm64/lithium-codegen-arm64.h b/src/arm64/lithium-codegen-arm64.h index 20e572c65c..8be1cfeccd 100644 --- a/src/arm64/lithium-codegen-arm64.h +++ b/src/arm64/lithium-codegen-arm64.h @@ -460,6 +460,7 @@ class BranchGenerator BASE_EMBEDDED { LCodeGen* codegen_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_LITHIUM_CODEGEN_ARM64_H_ diff --git a/src/arm64/lithium-gap-resolver-arm64.h b/src/arm64/lithium-gap-resolver-arm64.h index 8866db4c94..e362df1aff 100644 --- a/src/arm64/lithium-gap-resolver-arm64.h +++ b/src/arm64/lithium-gap-resolver-arm64.h @@ -92,6 +92,7 @@ class LGapResolver BASE_EMBEDDED { LOperand* saved_destination_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_LITHIUM_GAP_RESOLVER_ARM64_H_ diff --git a/src/arm64/macro-assembler-arm64-inl.h b/src/arm64/macro-assembler-arm64-inl.h index 445513bf5a..9b4abe5514 100644 --- a/src/arm64/macro-assembler-arm64-inl.h +++ b/src/arm64/macro-assembler-arm64-inl.h @@ -1683,6 +1683,7 @@ void MacroAssembler::AnnotateInstrumentation(const char* marker_name) { movn(xzr, (marker_name[1] << 8) | marker_name[0]); } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_INL_H_ diff --git a/src/arm64/macro-assembler-arm64.h b/src/arm64/macro-assembler-arm64.h index 769140d917..ade2e3605d 100644 --- a/src/arm64/macro-assembler-arm64.h +++ b/src/arm64/macro-assembler-arm64.h @@ -2278,7 +2278,8 @@ class InlineSmiCheckInfo { class DeltaBits : public BitField {}; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #ifdef GENERATED_CODE_COVERAGE #error "Unsupported option" diff --git a/src/arm64/simulator-arm64.h b/src/arm64/simulator-arm64.h index e4d9a81ffd..a86a7add66 100644 --- a/src/arm64/simulator-arm64.h +++ b/src/arm64/simulator-arm64.h @@ -911,6 +911,7 @@ class SimulatorStack : public v8::internal::AllStatic { #endif // !defined(USE_SIMULATOR) -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_SIMULATOR_ARM64_H_ diff --git a/src/arm64/utils-arm64.h b/src/arm64/utils-arm64.h index da91fd5d60..df429736dc 100644 --- a/src/arm64/utils-arm64.h +++ b/src/arm64/utils-arm64.h @@ -151,6 +151,7 @@ inline float FusedMultiplyAdd(float op1, float op2, float a) { return fmaf(op1, op2, a); } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM64_UTILS_ARM64_H_ diff --git a/src/assembler.h b/src/assembler.h index 433b9b8456..f218112ec9 100644 --- a/src/assembler.h +++ b/src/assembler.h @@ -1277,6 +1277,7 @@ class ConstantPoolBuilder BASE_EMBEDDED { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ASSEMBLER_H_ diff --git a/src/assert-scope.h b/src/assert-scope.h index 8757a32910..84e6990b04 100644 --- a/src/assert-scope.h +++ b/src/assert-scope.h @@ -170,6 +170,7 @@ typedef PerIsolateAssertScopeDebugOnly // Scope to introduce an exception to DisallowDeoptimization. typedef PerIsolateAssertScopeDebugOnly AllowCompilation; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ASSERT_SCOPE_H_ diff --git a/src/ast-expression-visitor.cc b/src/ast-expression-visitor.cc index 782d4bbca6..4a4bc60685 100644 --- a/src/ast-expression-visitor.cc +++ b/src/ast-expression-visitor.cc @@ -350,7 +350,7 @@ void AstExpressionVisitor::VisitSuperPropertyReference( void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {} -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 diff --git a/src/ast-expression-visitor.h b/src/ast-expression-visitor.h index 43b34bac79..b2b1f43cd6 100644 --- a/src/ast-expression-visitor.h +++ b/src/ast-expression-visitor.h @@ -43,7 +43,7 @@ class AstExpressionVisitor : public AstVisitor { DISALLOW_COPY_AND_ASSIGN(AstExpressionVisitor); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_AST_EXPRESSION_VISITOR_H_ diff --git a/src/ast-literal-reindexer.cc b/src/ast-literal-reindexer.cc index e5729c7818..c0052acab5 100644 --- a/src/ast-literal-reindexer.cc +++ b/src/ast-literal-reindexer.cc @@ -316,5 +316,5 @@ void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) { void AstLiteralReindexer::Reindex(Expression* pattern) { pattern->Accept(this); } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 diff --git a/src/ast-literal-reindexer.h b/src/ast-literal-reindexer.h index 2fe920b7c4..9d48d21767 100644 --- a/src/ast-literal-reindexer.h +++ b/src/ast-literal-reindexer.h @@ -39,7 +39,7 @@ class AstLiteralReindexer final : public AstVisitor { DISALLOW_COPY_AND_ASSIGN(AstLiteralReindexer); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_AST_LITERAL_REINDEXER diff --git a/src/ast-value-factory.cc b/src/ast-value-factory.cc index 68cf015200..e790ea2446 100644 --- a/src/ast-value-factory.cc +++ b/src/ast-value-factory.cc @@ -49,7 +49,7 @@ class OneByteStringStream { int pos_; }; -} +} // namespace class AstRawStringInternalizationKey : public HashTableKey { public: diff --git a/src/ast-value-factory.h b/src/ast-value-factory.h index 69fc6cc2f4..c2bfb83ac0 100644 --- a/src/ast-value-factory.h +++ b/src/ast-value-factory.h @@ -366,7 +366,8 @@ class AstValueFactory { OTHER_CONSTANTS(F) #undef F }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #undef STRING_CONSTANTS #undef OTHER_CONSTANTS diff --git a/src/ast.h b/src/ast.h index 4764918849..9784797d84 100644 --- a/src/ast.h +++ b/src/ast.h @@ -3622,6 +3622,7 @@ class AstNodeFactory final BASE_EMBEDDED { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_AST_H_ diff --git a/src/background-parsing-task.h b/src/background-parsing-task.h index e99916169c..c224303e05 100644 --- a/src/background-parsing-task.h +++ b/src/background-parsing-task.h @@ -54,7 +54,7 @@ class BackgroundParsingTask : public ScriptCompiler::ScriptStreamingTask { StreamedSource* source_; // Not owned. int stack_size_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_BACKGROUND_PARSING_TASK_H_ diff --git a/src/base/atomicops.h b/src/base/atomicops.h index e76b3d02d2..3e628fead9 100644 --- a/src/base/atomicops.h +++ b/src/base/atomicops.h @@ -133,7 +133,8 @@ Atomic64 Acquire_Load(volatile const Atomic64* ptr); Atomic64 Release_Load(volatile const Atomic64* ptr); #endif // V8_HOST_ARCH_64_BIT -} } // namespace v8::base +} // namespace base +} // namespace v8 // Include our platform specific implementation. #if defined(THREAD_SANITIZER) diff --git a/src/base/atomicops_internals_arm64_gcc.h b/src/base/atomicops_internals_arm64_gcc.h index b01783e6a7..f24050a3e6 100644 --- a/src/base/atomicops_internals_arm64_gcc.h +++ b/src/base/atomicops_internals_arm64_gcc.h @@ -311,6 +311,7 @@ inline Atomic64 Release_Load(volatile const Atomic64* ptr) { return *ptr; } -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_ATOMICOPS_INTERNALS_ARM_GCC_H_ diff --git a/src/base/atomicops_internals_arm_gcc.h b/src/base/atomicops_internals_arm_gcc.h index e399657e13..f4c9d8c0aa 100644 --- a/src/base/atomicops_internals_arm_gcc.h +++ b/src/base/atomicops_internals_arm_gcc.h @@ -296,6 +296,7 @@ inline void NoBarrier_Store(volatile Atomic8* ptr, Atomic8 value) { inline Atomic8 NoBarrier_Load(volatile const Atomic8* ptr) { return *ptr; } -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_ATOMICOPS_INTERNALS_ARM_GCC_H_ diff --git a/src/base/atomicops_internals_atomicword_compat.h b/src/base/atomicops_internals_atomicword_compat.h index 0530ced2a4..4f758a7299 100644 --- a/src/base/atomicops_internals_atomicword_compat.h +++ b/src/base/atomicops_internals_atomicword_compat.h @@ -92,7 +92,8 @@ inline AtomicWord Release_Load(volatile const AtomicWord* ptr) { reinterpret_cast(ptr)); } -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // !defined(V8_HOST_ARCH_64_BIT) diff --git a/src/base/atomicops_internals_mac.h b/src/base/atomicops_internals_mac.h index 84f9dbcd75..c112506238 100644 --- a/src/base/atomicops_internals_mac.h +++ b/src/base/atomicops_internals_mac.h @@ -210,6 +210,7 @@ inline Atomic64 Release_Load(volatile const Atomic64* ptr) { #endif // defined(__LP64__) #undef ATOMICOPS_COMPILER_BARRIER -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_ATOMICOPS_INTERNALS_MAC_H_ diff --git a/src/base/atomicops_internals_mips64_gcc.h b/src/base/atomicops_internals_mips64_gcc.h index ccb973c039..85b4e462b9 100644 --- a/src/base/atomicops_internals_mips64_gcc.h +++ b/src/base/atomicops_internals_mips64_gcc.h @@ -302,6 +302,7 @@ inline Atomic64 Release_Load(volatile const Atomic64* ptr) { return *ptr; } -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_ATOMICOPS_INTERNALS_MIPS_GCC_H_ diff --git a/src/base/atomicops_internals_mips_gcc.h b/src/base/atomicops_internals_mips_gcc.h index 442fdd0f96..8d65db2127 100644 --- a/src/base/atomicops_internals_mips_gcc.h +++ b/src/base/atomicops_internals_mips_gcc.h @@ -155,6 +155,7 @@ inline Atomic32 Release_Load(volatile const Atomic32* ptr) { return *ptr; } -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_ATOMICOPS_INTERNALS_MIPS_GCC_H_ diff --git a/src/base/atomicops_internals_portable.h b/src/base/atomicops_internals_portable.h index a3a6e74c72..bb99973786 100644 --- a/src/base/atomicops_internals_portable.h +++ b/src/base/atomicops_internals_portable.h @@ -132,7 +132,7 @@ inline Atomic64 Acquire_Load(volatile const Atomic64* ptr) { inline Atomic64 Release_Load(volatile const Atomic64* ptr) { return __sync_add_and_fetch(ptr, 0); } -} -} // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_ATOMICOPS_INTERNALS_PORTABLE_H_ diff --git a/src/base/atomicops_internals_ppc_gcc.h b/src/base/atomicops_internals_ppc_gcc.h index daa27b4693..0d16500d1b 100644 --- a/src/base/atomicops_internals_ppc_gcc.h +++ b/src/base/atomicops_internals_ppc_gcc.h @@ -162,7 +162,7 @@ inline Atomic64 Release_Load(volatile const Atomic64* ptr) { } #endif -} -} // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_ATOMICOPS_INTERNALS_PPC_GCC_H_ diff --git a/src/base/atomicops_internals_x86_gcc.cc b/src/base/atomicops_internals_x86_gcc.cc index ab7dd8d091..c0310300a1 100644 --- a/src/base/atomicops_internals_x86_gcc.cc +++ b/src/base/atomicops_internals_x86_gcc.cc @@ -47,7 +47,8 @@ struct AtomicOps_x86CPUFeatureStruct AtomicOps_Internalx86CPUFeatures = { #endif }; -} } // namespace v8::base +} // namespace base +} // namespace v8 namespace { diff --git a/src/base/atomicops_internals_x86_gcc.h b/src/base/atomicops_internals_x86_gcc.h index ec87c42121..55bc44cd8b 100644 --- a/src/base/atomicops_internals_x86_gcc.h +++ b/src/base/atomicops_internals_x86_gcc.h @@ -267,7 +267,8 @@ inline Atomic64 Release_CompareAndSwap(volatile Atomic64* ptr, #endif // defined(__x86_64__) -} } // namespace v8::base +} // namespace base +} // namespace v8 #undef ATOMICOPS_COMPILER_BARRIER diff --git a/src/base/atomicops_internals_x86_msvc.h b/src/base/atomicops_internals_x86_msvc.h index adc40318e9..c37bc78df6 100644 --- a/src/base/atomicops_internals_x86_msvc.h +++ b/src/base/atomicops_internals_x86_msvc.h @@ -197,6 +197,7 @@ inline Atomic64 Release_CompareAndSwap(volatile Atomic64* ptr, #endif // defined(_WIN64) -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_ATOMICOPS_INTERNALS_X86_MSVC_H_ diff --git a/src/base/cpu.cc b/src/base/cpu.cc index 4f587201fa..692494afcb 100644 --- a/src/base/cpu.cc +++ b/src/base/cpu.cc @@ -691,4 +691,5 @@ CPU::CPU() #endif // V8_HOST_ARCH_PPC } -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/cpu.h b/src/base/cpu.h index 1dc0a91f65..ca108fa2bf 100644 --- a/src/base/cpu.h +++ b/src/base/cpu.h @@ -145,6 +145,7 @@ class CPU final { bool is_fp64_mode_; }; -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_CPU_H_ diff --git a/src/base/lazy-instance.h b/src/base/lazy-instance.h index a20689a16c..4c0a3f897b 100644 --- a/src/base/lazy-instance.h +++ b/src/base/lazy-instance.h @@ -232,6 +232,7 @@ struct LazyDynamicInstance { CreateTrait, InitOnceTrait, DestroyTrait> type; }; -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_LAZY_INSTANCE_H_ diff --git a/src/base/macros.h b/src/base/macros.h index 6dc96f4f3b..f47b0b9d55 100644 --- a/src/base/macros.h +++ b/src/base/macros.h @@ -417,7 +417,8 @@ template <> inline bool is_fundamental() { return true; } -} -} // namespace v8::base + +} // namespace base +} // namespace v8 #endif // V8_BASE_MACROS_H_ diff --git a/src/base/once.cc b/src/base/once.cc index eaabf40d9a..818a9f2e84 100644 --- a/src/base/once.cc +++ b/src/base/once.cc @@ -50,4 +50,5 @@ void CallOnceImpl(OnceType* once, PointerArgFunction init_func, void* arg) { } } -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/once.h b/src/base/once.h index 6bf741d38a..790a8866e0 100644 --- a/src/base/once.h +++ b/src/base/once.h @@ -97,6 +97,7 @@ inline void CallOnce(OnceType* once, } } -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_ONCE_H_ diff --git a/src/base/platform/condition-variable.cc b/src/base/platform/condition-variable.cc index e5b9bd0810..fcd6cf7974 100644 --- a/src/base/platform/condition-variable.cc +++ b/src/base/platform/condition-variable.cc @@ -313,4 +313,5 @@ bool ConditionVariable::WaitFor(Mutex* mutex, const TimeDelta& rel_time) { #endif // V8_OS_POSIX -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/platform/condition-variable.h b/src/base/platform/condition-variable.h index 9cb706460f..72d6f28507 100644 --- a/src/base/platform/condition-variable.h +++ b/src/base/platform/condition-variable.h @@ -113,6 +113,7 @@ typedef LazyStaticInstance< #define LAZY_CONDITION_VARIABLE_INITIALIZER LAZY_STATIC_INSTANCE_INITIALIZER -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_PLATFORM_CONDITION_VARIABLE_H_ diff --git a/src/base/platform/elapsed-timer.h b/src/base/platform/elapsed-timer.h index 3fe7e8f720..f9a9ef4361 100644 --- a/src/base/platform/elapsed-timer.h +++ b/src/base/platform/elapsed-timer.h @@ -92,6 +92,7 @@ class ElapsedTimer final { #endif }; -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_PLATFORM_ELAPSED_TIMER_H_ diff --git a/src/base/platform/mutex.cc b/src/base/platform/mutex.cc index 8b1e305701..14016058ae 100644 --- a/src/base/platform/mutex.cc +++ b/src/base/platform/mutex.cc @@ -188,4 +188,5 @@ bool RecursiveMutex::TryLock() { return true; } -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/platform/mutex.h b/src/base/platform/mutex.h index 18e85de7bc..61df19d66a 100644 --- a/src/base/platform/mutex.h +++ b/src/base/platform/mutex.h @@ -210,6 +210,7 @@ class LockGuard final { DISALLOW_COPY_AND_ASSIGN(LockGuard); }; -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_PLATFORM_MUTEX_H_ diff --git a/src/base/platform/platform-aix.cc b/src/base/platform/platform-aix.cc index 03e9aa3717..ea2824d8c3 100644 --- a/src/base/platform/platform-aix.cc +++ b/src/base/platform/platform-aix.cc @@ -239,5 +239,5 @@ bool VirtualMemory::ReleaseRegion(void* base, size_t size) { bool VirtualMemory::HasLazyCommits() { return true; } -} -} // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/platform/platform-cygwin.cc b/src/base/platform/platform-cygwin.cc index 18f151ac29..a49e28723d 100644 --- a/src/base/platform/platform-cygwin.cc +++ b/src/base/platform/platform-cygwin.cc @@ -252,4 +252,5 @@ bool VirtualMemory::HasLazyCommits() { return false; } -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/platform/platform-freebsd.cc b/src/base/platform/platform-freebsd.cc index b279e0c926..8b3398039f 100644 --- a/src/base/platform/platform-freebsd.cc +++ b/src/base/platform/platform-freebsd.cc @@ -255,4 +255,5 @@ bool VirtualMemory::HasLazyCommits() { return false; } -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/platform/platform-linux.cc b/src/base/platform/platform-linux.cc index 2a2abfeb25..a4b742adc7 100644 --- a/src/base/platform/platform-linux.cc +++ b/src/base/platform/platform-linux.cc @@ -388,4 +388,5 @@ bool VirtualMemory::HasLazyCommits() { return true; } -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/platform/platform-macos.cc b/src/base/platform/platform-macos.cc index f16f329fc3..419281f669 100644 --- a/src/base/platform/platform-macos.cc +++ b/src/base/platform/platform-macos.cc @@ -249,4 +249,5 @@ bool VirtualMemory::HasLazyCommits() { return false; } -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/platform/platform-openbsd.cc b/src/base/platform/platform-openbsd.cc index 369dd8e1a6..af145e2fca 100644 --- a/src/base/platform/platform-openbsd.cc +++ b/src/base/platform/platform-openbsd.cc @@ -286,4 +286,5 @@ bool VirtualMemory::HasLazyCommits() { return false; } -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/platform/platform-qnx.cc b/src/base/platform/platform-qnx.cc index b16652886e..3c90467627 100644 --- a/src/base/platform/platform-qnx.cc +++ b/src/base/platform/platform-qnx.cc @@ -312,4 +312,5 @@ bool VirtualMemory::HasLazyCommits() { return false; } -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/platform/platform-solaris.cc b/src/base/platform/platform-solaris.cc index 7e07f1a1e2..a2ce2c13f6 100644 --- a/src/base/platform/platform-solaris.cc +++ b/src/base/platform/platform-solaris.cc @@ -208,4 +208,5 @@ bool VirtualMemory::HasLazyCommits() { return false; } -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/platform/platform.h b/src/base/platform/platform.h index 2d08ecbd7f..b96a207f70 100644 --- a/src/base/platform/platform.h +++ b/src/base/platform/platform.h @@ -479,6 +479,7 @@ class Thread { DISALLOW_COPY_AND_ASSIGN(Thread); }; -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_PLATFORM_PLATFORM_H_ diff --git a/src/base/platform/semaphore.cc b/src/base/platform/semaphore.cc index 0679c00d95..d5428625ba 100644 --- a/src/base/platform/semaphore.cc +++ b/src/base/platform/semaphore.cc @@ -201,4 +201,5 @@ bool Semaphore::WaitFor(const TimeDelta& rel_time) { #endif // V8_OS_MACOSX -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/platform/semaphore.h b/src/base/platform/semaphore.h index fa131018b3..18700d1ba0 100644 --- a/src/base/platform/semaphore.h +++ b/src/base/platform/semaphore.h @@ -96,6 +96,7 @@ struct LazySemaphore { #define LAZY_SEMAPHORE_INITIALIZER LAZY_DYNAMIC_INSTANCE_INITIALIZER -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_PLATFORM_SEMAPHORE_H_ diff --git a/src/base/platform/time.cc b/src/base/platform/time.cc index 5162182b7a..e847d54de8 100644 --- a/src/base/platform/time.cc +++ b/src/base/platform/time.cc @@ -644,4 +644,5 @@ bool TimeTicks::KernelTimestampAvailable() { #endif // V8_OS_WIN -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/platform/time.h b/src/base/platform/time.h index 5fc01e88fd..29300e5404 100644 --- a/src/base/platform/time.h +++ b/src/base/platform/time.h @@ -398,6 +398,7 @@ inline TimeTicks operator+(const TimeDelta& delta, const TimeTicks& ticks) { return ticks + delta; } -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_PLATFORM_TIME_H_ diff --git a/src/base/utils/random-number-generator.cc b/src/base/utils/random-number-generator.cc index 29a48ffb05..4cf06a9047 100644 --- a/src/base/utils/random-number-generator.cc +++ b/src/base/utils/random-number-generator.cc @@ -136,4 +136,5 @@ void RandomNumberGenerator::SetSeed(int64_t seed) { seed_ = (seed ^ kMultiplier) & kMask; } -} } // namespace v8::base +} // namespace base +} // namespace v8 diff --git a/src/base/utils/random-number-generator.h b/src/base/utils/random-number-generator.h index 62c6b27b1b..10f2789c7d 100644 --- a/src/base/utils/random-number-generator.h +++ b/src/base/utils/random-number-generator.h @@ -94,6 +94,7 @@ class RandomNumberGenerator final { int64_t seed_; }; -} } // namespace v8::base +} // namespace base +} // namespace v8 #endif // V8_BASE_UTILS_RANDOM_NUMBER_GENERATOR_H_ diff --git a/src/bignum-dtoa.h b/src/bignum-dtoa.h index d42801bd69..dab27badba 100644 --- a/src/bignum-dtoa.h +++ b/src/bignum-dtoa.h @@ -55,6 +55,7 @@ enum BignumDtoaMode { void BignumDtoa(double v, BignumDtoaMode mode, int requested_digits, Vector buffer, int* length, int* point); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_BIGNUM_DTOA_H_ diff --git a/src/bignum.h b/src/bignum.h index 7ebdae47bc..167c1842da 100644 --- a/src/bignum.h +++ b/src/bignum.h @@ -115,6 +115,7 @@ class Bignum { DISALLOW_COPY_AND_ASSIGN(Bignum); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_BIGNUM_H_ diff --git a/src/bootstrapper.h b/src/bootstrapper.h index 659d74aad2..105c2d0300 100644 --- a/src/bootstrapper.h +++ b/src/bootstrapper.h @@ -176,6 +176,7 @@ class NativesExternalStringResource final size_t length_; }; -}} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_BOOTSTRAPPER_H_ diff --git a/src/builtins.h b/src/builtins.h index d9129608dc..db4dfed563 100644 --- a/src/builtins.h +++ b/src/builtins.h @@ -326,6 +326,7 @@ class Builtins { DISALLOW_COPY_AND_ASSIGN(Builtins); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_BUILTINS_H_ diff --git a/src/cached-powers.h b/src/cached-powers.h index bfe36351ba..fade5c9fca 100644 --- a/src/cached-powers.h +++ b/src/cached-powers.h @@ -37,6 +37,7 @@ class PowersOfTenCache { int* found_exponent); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_CACHED_POWERS_H_ diff --git a/src/char-predicates-inl.h b/src/char-predicates-inl.h index d90f919341..ab5caa7557 100644 --- a/src/char-predicates-inl.h +++ b/src/char-predicates-inl.h @@ -85,6 +85,7 @@ inline bool IsRegExpNewline(uc16 c) { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_CHAR_PREDICATES_INL_H_ diff --git a/src/char-predicates.h b/src/char-predicates.h index 89f417196e..3161ae4ae9 100644 --- a/src/char-predicates.h +++ b/src/char-predicates.h @@ -79,6 +79,7 @@ struct WhiteSpaceOrLineTerminator { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_CHAR_PREDICATES_H_ diff --git a/src/checks.h b/src/checks.h index bd798663ad..80404e8d89 100644 --- a/src/checks.h +++ b/src/checks.h @@ -23,7 +23,8 @@ extern bool FLAG_enable_slow_asserts; const bool FLAG_enable_slow_asserts = false; #endif -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #define DCHECK_TAG_ALIGNED(address) \ DCHECK((reinterpret_cast(address) & \ diff --git a/src/code-stubs.h b/src/code-stubs.h index 163fdd8808..f5f8bd2939 100644 --- a/src/code-stubs.h +++ b/src/code-stubs.h @@ -597,7 +597,8 @@ class RuntimeCallHelper { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #if V8_TARGET_ARCH_IA32 #include "src/ia32/code-stubs-ia32.h" diff --git a/src/codegen.h b/src/codegen.h index 04f130999e..7019d3d106 100644 --- a/src/codegen.h +++ b/src/codegen.h @@ -170,6 +170,7 @@ class CodeAgingHelper { #endif }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_CODEGEN_H_ diff --git a/src/compilation-cache.h b/src/compilation-cache.h index 2d7609ec18..2295f4c685 100644 --- a/src/compilation-cache.h +++ b/src/compilation-cache.h @@ -236,6 +236,7 @@ class CompilationCache { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_COMPILATION_CACHE_H_ diff --git a/src/compilation-dependencies.h b/src/compilation-dependencies.h index c14220880f..e7ee58fffc 100644 --- a/src/compilation-dependencies.h +++ b/src/compilation-dependencies.h @@ -61,7 +61,7 @@ class CompilationDependencies { DependentCode* Get(Handle object); void Set(Handle object, Handle dep); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_DEPENDENCIES_H_ diff --git a/src/compiler.h b/src/compiler.h index 45cf7b5183..ed3855971d 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -716,6 +716,7 @@ class CompilationPhase BASE_EMBEDDED { DISALLOW_COPY_AND_ASSIGN(CompilationPhase); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_COMPILER_H_ diff --git a/src/compiler/arm64/instruction-codes-arm64.h b/src/compiler/arm64/instruction-codes-arm64.h index c2a52af7cb..cbc0ac4ef2 100644 --- a/src/compiler/arm64/instruction-codes-arm64.h +++ b/src/compiler/arm64/instruction-codes-arm64.h @@ -158,8 +158,8 @@ namespace compiler { V(Operand2_R_SXTB) /* %r0 SXTB (signed extend byte) */ \ V(Operand2_R_SXTH) /* %r0 SXTH (signed extend halfword) */ -} // namespace internal } // namespace compiler +} // namespace internal } // namespace v8 #endif // V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_ diff --git a/src/compiler/ast-loop-assignment-analyzer.h b/src/compiler/ast-loop-assignment-analyzer.h index cd56d0a7ef..c2b47a742c 100644 --- a/src/compiler/ast-loop-assignment-analyzer.h +++ b/src/compiler/ast-loop-assignment-analyzer.h @@ -70,8 +70,8 @@ class AstLoopAssignmentAnalyzer : public AstVisitor { DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); DISALLOW_COPY_AND_ASSIGN(AstLoopAssignmentAnalyzer); }; -} -} -} // namespace v8::internal::compiler +} // namespace compiler +} // namespace internal +} // namespace v8 #endif // V8_COMPILER_AST_LOOP_ASSIGNMENT_ANALYZER_H_ diff --git a/src/compiler/c-linkage.cc b/src/compiler/c-linkage.cc index 76ddd2ed7d..af5f813a30 100644 --- a/src/compiler/c-linkage.cc +++ b/src/compiler/c-linkage.cc @@ -223,6 +223,7 @@ CallDescriptor* Linkage::GetSimplifiedCDescriptor( CallDescriptor::kNoFlags, // flags "c-call"); } -} -} -} + +} // namespace compiler +} // namespace internal +} // namespace v8 diff --git a/src/compiler/frame.h b/src/compiler/frame.h index 0b066783c3..9764b261ef 100644 --- a/src/compiler/frame.h +++ b/src/compiler/frame.h @@ -184,8 +184,8 @@ class FrameOffset { static const int kFromSp = 1; static const int kFromFp = 0; }; -} -} -} // namespace v8::internal::compiler +} // namespace compiler +} // namespace internal +} // namespace v8 #endif // V8_COMPILER_FRAME_H_ diff --git a/src/compiler/interpreter-assembler.cc b/src/compiler/interpreter-assembler.cc index 1f5c0a26a5..43ef6db4f4 100644 --- a/src/compiler/interpreter-assembler.cc +++ b/src/compiler/interpreter-assembler.cc @@ -452,6 +452,6 @@ Schedule* InterpreterAssembler::schedule() { Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } -} // namespace interpreter +} // namespace compiler } // namespace internal } // namespace v8 diff --git a/src/compiler/interpreter-assembler.h b/src/compiler/interpreter-assembler.h index 67ab9cc2a9..f77ed22154 100644 --- a/src/compiler/interpreter-assembler.h +++ b/src/compiler/interpreter-assembler.h @@ -178,7 +178,7 @@ class InterpreterAssembler { DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); }; -} // namespace interpreter +} // namespace compiler } // namespace internal } // namespace v8 diff --git a/src/compiler/verifier.h b/src/compiler/verifier.h index cee323e480..428558d42d 100644 --- a/src/compiler/verifier.h +++ b/src/compiler/verifier.h @@ -56,8 +56,8 @@ class ScheduleVerifier { public: static void Run(Schedule* schedule); }; -} -} -} // namespace v8::internal::compiler +} // namespace compiler +} // namespace internal +} // namespace v8 #endif // V8_COMPILER_VERIFIER_H_ diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc index 4c991718f8..495470533d 100644 --- a/src/compiler/x64/code-generator-x64.cc +++ b/src/compiler/x64/code-generator-x64.cc @@ -1816,6 +1816,6 @@ void CodeGenerator::EnsureSpaceForLazyDeopt() { #undef __ -} // namespace internal } // namespace compiler +} // namespace internal } // namespace v8 diff --git a/src/context-measure.cc b/src/context-measure.cc index da4aae498b..0b87e39614 100644 --- a/src/context-measure.cc +++ b/src/context-measure.cc @@ -74,5 +74,5 @@ void ContextMeasure::VisitPointers(Object** start, Object** end) { MeasureObject(HeapObject::cast(*current)); } } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 diff --git a/src/context-measure.h b/src/context-measure.h index f01c37418f..adfefbf1ae 100644 --- a/src/context-measure.h +++ b/src/context-measure.h @@ -41,7 +41,7 @@ class ContextMeasure : public ObjectVisitor { DISALLOW_COPY_AND_ASSIGN(ContextMeasure); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_CONTEXT_MEASURE_H_ diff --git a/src/contexts.h b/src/contexts.h index fdd665097f..9739c721b3 100644 --- a/src/contexts.h +++ b/src/contexts.h @@ -552,6 +552,7 @@ class Context: public FixedArray { STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_CONTEXTS_H_ diff --git a/src/conversions-inl.h b/src/conversions-inl.h index 4b3ac27cf1..f1ccb15377 100644 --- a/src/conversions-inl.h +++ b/src/conversions-inl.h @@ -758,6 +758,7 @@ double InternalStringToDouble(UnicodeCache* unicode_cache, return (sign == NEGATIVE) ? -converted : converted; } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_CONVERSIONS_INL_H_ diff --git a/src/counters.h b/src/counters.h index 740b2a86e4..7d41501eec 100644 --- a/src/counters.h +++ b/src/counters.h @@ -886,6 +886,7 @@ class Counters { DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_COUNTERS_H_ diff --git a/src/date.h b/src/date.h index 813d3126ed..813e5b83c0 100644 --- a/src/date.h +++ b/src/date.h @@ -276,6 +276,7 @@ class DateCache { base::TimezoneCache* tz_cache_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif diff --git a/src/dateparser-inl.h b/src/dateparser-inl.h index e0b5cf9c55..5b3ac46025 100644 --- a/src/dateparser-inl.h +++ b/src/dateparser-inl.h @@ -327,6 +327,7 @@ DateParser::DateToken DateParser::ParseES6DateTime( } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_DATEPARSER_INL_H_ diff --git a/src/dateparser.h b/src/dateparser.h index d40e38482a..ad9ce70ab7 100644 --- a/src/dateparser.h +++ b/src/dateparser.h @@ -366,6 +366,7 @@ class DateParser : public AllStatic { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_DATEPARSER_H_ diff --git a/src/debug/debug.h b/src/debug/debug.h index 6a963c8994..e319469ce5 100644 --- a/src/debug/debug.h +++ b/src/debug/debug.h @@ -762,6 +762,7 @@ class DebugCodegen : public AllStatic { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_DEBUG_DEBUG_H_ diff --git a/src/debug/liveedit.h b/src/debug/liveedit.h index 251368f0cb..29fe60579f 100644 --- a/src/debug/liveedit.h +++ b/src/debug/liveedit.h @@ -364,6 +364,7 @@ class SharedInfoWrapper : public JSArrayBasedStruct { friend class JSArrayBasedStruct; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif /* V8_DEBUG_LIVEEDIT_H_ */ diff --git a/src/disassembler.h b/src/disassembler.h index 32e48c4e92..ac53f775b1 100644 --- a/src/disassembler.h +++ b/src/disassembler.h @@ -20,6 +20,7 @@ class Disassembler : public AllStatic { Code* code = NULL); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_DISASSEMBLER_H_ diff --git a/src/diy-fp.h b/src/diy-fp.h index e0daf27a1e..1325c94519 100644 --- a/src/diy-fp.h +++ b/src/diy-fp.h @@ -93,6 +93,7 @@ class DiyFp { int e_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_DIY_FP_H_ diff --git a/src/double.h b/src/double.h index cb12628675..f21bd748f9 100644 --- a/src/double.h +++ b/src/double.h @@ -204,6 +204,7 @@ class Double { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_DOUBLE_H_ diff --git a/src/dtoa.h b/src/dtoa.h index ca6277ee56..9f190ab472 100644 --- a/src/dtoa.h +++ b/src/dtoa.h @@ -59,6 +59,7 @@ const int kBase10MaximalLength = 17; void DoubleToAscii(double v, DtoaMode mode, int requested_digits, Vector buffer, int* sign, int* length, int* point); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_DTOA_H_ diff --git a/src/effects.h b/src/effects.h index 8d539f64bd..020471830c 100644 --- a/src/effects.h +++ b/src/effects.h @@ -329,6 +329,7 @@ class NestedEffects: public } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_EFFECTS_H_ diff --git a/src/elements-kind.h b/src/elements-kind.h index 1397bd7c19..5f6cd62c46 100644 --- a/src/elements-kind.h +++ b/src/elements-kind.h @@ -226,6 +226,7 @@ inline bool IsTransitionableFastElementsKind(ElementsKind from_kind) { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ELEMENTS_KIND_H_ diff --git a/src/elements.h b/src/elements.h index fcc90024ba..27695b8fdb 100644 --- a/src/elements.h +++ b/src/elements.h @@ -189,6 +189,7 @@ MUST_USE_RESULT MaybeHandle ArrayConstructInitializeElements( Handle array, Arguments* args); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ELEMENTS_H_ diff --git a/src/execution.h b/src/execution.h index 84f106a496..0b603ee5a9 100644 --- a/src/execution.h +++ b/src/execution.h @@ -247,6 +247,7 @@ class StackGuard final { DISALLOW_COPY_AND_ASSIGN(StackGuard); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_EXECUTION_H_ diff --git a/src/expression-classifier.h b/src/expression-classifier.h index fb45f41fa1..0c4e5884e5 100644 --- a/src/expression-classifier.h +++ b/src/expression-classifier.h @@ -279,7 +279,8 @@ class ExpressionClassifier { Error strong_mode_formal_parameter_error_; DuplicateFinder* duplicate_finder_; }; -} -} // v8::internal + +} // namespace internal +} // namespace v8 #endif // V8_EXPRESSION_CLASSIFIER_H diff --git a/src/extensions/externalize-string-extension.h b/src/extensions/externalize-string-extension.h index 009e818497..c8907b42ed 100644 --- a/src/extensions/externalize-string-extension.h +++ b/src/extensions/externalize-string-extension.h @@ -22,6 +22,7 @@ class ExternalizeStringExtension : public v8::Extension { static const char* const kSource; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_EXTENSIONS_EXTERNALIZE_STRING_EXTENSION_H_ diff --git a/src/extensions/free-buffer-extension.h b/src/extensions/free-buffer-extension.h index bb1418c4a3..6bc5e57cbc 100644 --- a/src/extensions/free-buffer-extension.h +++ b/src/extensions/free-buffer-extension.h @@ -19,6 +19,7 @@ class FreeBufferExtension : public v8::Extension { static void FreeBuffer(const v8::FunctionCallbackInfo& args); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_EXTENSIONS_FREE_BUFFER_EXTENSION_H_ diff --git a/src/extensions/gc-extension.h b/src/extensions/gc-extension.h index 91433911c2..9be0d4b701 100644 --- a/src/extensions/gc-extension.h +++ b/src/extensions/gc-extension.h @@ -30,6 +30,7 @@ class GCExtension : public v8::Extension { char buffer_[50]; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_EXTENSIONS_GC_EXTENSION_H_ diff --git a/src/extensions/statistics-extension.h b/src/extensions/statistics-extension.h index 5dac4097b6..714f86aeba 100644 --- a/src/extensions/statistics-extension.h +++ b/src/extensions/statistics-extension.h @@ -21,6 +21,7 @@ class StatisticsExtension : public v8::Extension { static const char* const kSource; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_EXTENSIONS_STATISTICS_EXTENSION_H_ diff --git a/src/extensions/trigger-failure-extension.h b/src/extensions/trigger-failure-extension.h index 4b10bdc886..7c7ecf882c 100644 --- a/src/extensions/trigger-failure-extension.h +++ b/src/extensions/trigger-failure-extension.h @@ -26,6 +26,7 @@ class TriggerFailureExtension : public v8::Extension { static const char* const kSource; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_EXTENSIONS_TRIGGER_FAILURE_EXTENSION_H_ diff --git a/src/factory.h b/src/factory.h index b7602e023b..4160f0de4b 100644 --- a/src/factory.h +++ b/src/factory.h @@ -720,6 +720,7 @@ class Factory final { void ReinitializeJSProxy(Handle proxy, InstanceType type, int size); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_FACTORY_H_ diff --git a/src/fast-dtoa.h b/src/fast-dtoa.h index 38e8a82499..d9e3ba8932 100644 --- a/src/fast-dtoa.h +++ b/src/fast-dtoa.h @@ -57,6 +57,7 @@ bool FastDtoa(double d, int* length, int* decimal_point); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_FAST_DTOA_H_ diff --git a/src/field-index-inl.h b/src/field-index-inl.h index b8bc67bfa0..2e6693ce38 100644 --- a/src/field-index-inl.h +++ b/src/field-index-inl.h @@ -118,6 +118,7 @@ inline int FieldIndex::GetKeyedLookupCacheIndex() const { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif diff --git a/src/field-index.h b/src/field-index.h index 67515be047..ae054a64d9 100644 --- a/src/field-index.h +++ b/src/field-index.h @@ -111,6 +111,7 @@ class FieldIndex final { int bit_field_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif diff --git a/src/fixed-dtoa.h b/src/fixed-dtoa.h index 0a6cb50818..f8a29e0639 100644 --- a/src/fixed-dtoa.h +++ b/src/fixed-dtoa.h @@ -29,6 +29,7 @@ namespace internal { bool FastFixedDtoa(double v, int fractional_count, Vector buffer, int* length, int* decimal_point); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_FIXED_DTOA_H_ diff --git a/src/flags.h b/src/flags.h index 545c172d36..7bf515100c 100644 --- a/src/flags.h +++ b/src/flags.h @@ -63,6 +63,7 @@ class FlagList { static uint32_t Hash(); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_FLAGS_H_ diff --git a/src/frames-inl.h b/src/frames-inl.h index cccd4d191a..2a02f9089b 100644 --- a/src/frames-inl.h +++ b/src/frames-inl.h @@ -286,6 +286,7 @@ inline StackFrame* SafeStackFrameIterator::frame() const { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_FRAMES_INL_H_ diff --git a/src/frames.h b/src/frames.h index d6bfd7aab8..9d06b48f38 100644 --- a/src/frames.h +++ b/src/frames.h @@ -949,6 +949,7 @@ class StackFrameLocator BASE_EMBEDDED { // zone memory. Vector CreateStackMap(Isolate* isolate, Zone* zone); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_FRAMES_H_ diff --git a/src/full-codegen/full-codegen.h b/src/full-codegen/full-codegen.h index 02da16b865..9051a46dbc 100644 --- a/src/full-codegen/full-codegen.h +++ b/src/full-codegen/full-codegen.h @@ -1081,6 +1081,7 @@ class BackEdgeTable { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ diff --git a/src/func-name-inferrer.h b/src/func-name-inferrer.h index 8b077f9d8c..8bc0e6c81e 100644 --- a/src/func-name-inferrer.h +++ b/src/func-name-inferrer.h @@ -109,6 +109,7 @@ class FuncNameInferrer : public ZoneObject { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_FUNC_NAME_INFERRER_H_ diff --git a/src/futex-emulation.h b/src/futex-emulation.h index e7e2230da2..9949bdf44f 100644 --- a/src/futex-emulation.h +++ b/src/futex-emulation.h @@ -125,7 +125,7 @@ class FutexEmulation : public AllStatic { static base::LazyMutex mutex_; static base::LazyInstance::type wait_list_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_FUTEX_EMULATION_H_ diff --git a/src/global-handles.h b/src/global-handles.h index 0ee8c20a37..63c1760796 100644 --- a/src/global-handles.h +++ b/src/global-handles.h @@ -438,6 +438,7 @@ class EternalHandles { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_GLOBAL_HANDLES_H_ diff --git a/src/globals.h b/src/globals.h index 9d4bafb6ff..337947a026 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1020,7 +1020,8 @@ inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { DCHECK(IsValidFunctionKind(kind)); return kind; } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 namespace i = v8::internal; diff --git a/src/hashmap.h b/src/hashmap.h index ee3797fe59..f94def7c3c 100644 --- a/src/hashmap.h +++ b/src/hashmap.h @@ -350,6 +350,7 @@ class TemplateHashMap: private TemplateHashMapImpl { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HASHMAP_H_ diff --git a/src/heap/array-buffer-tracker.h b/src/heap/array-buffer-tracker.h index c12557a9fc..7ba22fb573 100644 --- a/src/heap/array-buffer-tracker.h +++ b/src/heap/array-buffer-tracker.h @@ -68,6 +68,6 @@ class ArrayBufferTracker { std::map live_array_buffers_for_scavenge_; std::map not_yet_discovered_array_buffers_for_scavenge_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HEAP_ARRAY_BUFFER_TRACKER_H_ diff --git a/src/heap/gc-idle-time-handler.cc b/src/heap/gc-idle-time-handler.cc index f77c015bf5..73dd857f99 100644 --- a/src/heap/gc-idle-time-handler.cc +++ b/src/heap/gc-idle-time-handler.cc @@ -186,5 +186,5 @@ GCIdleTimeAction GCIdleTimeHandler::Compute(double idle_time_in_ms, } -} -} +} // namespace internal +} // namespace v8 diff --git a/src/heap/gc-tracer.h b/src/heap/gc-tracer.h index de48d23997..8036cde641 100644 --- a/src/heap/gc-tracer.h +++ b/src/heap/gc-tracer.h @@ -555,7 +555,7 @@ class GCTracer { DISALLOW_COPY_AND_ASSIGN(GCTracer); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HEAP_GC_TRACER_H_ diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h index c1e18a79bf..856d3aa259 100644 --- a/src/heap/heap-inl.h +++ b/src/heap/heap-inl.h @@ -701,7 +701,7 @@ void VerifySmisVisitor::VisitPointers(Object** start, Object** end) { CHECK((*current)->IsSmi()); } } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HEAP_HEAP_INL_H_ diff --git a/src/heap/heap.h b/src/heap/heap.h index 0e427de1c9..6f8a124d26 100644 --- a/src/heap/heap.h +++ b/src/heap/heap.h @@ -2712,7 +2712,7 @@ class PathTracer : public ObjectVisitor { DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); }; #endif // DEBUG -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HEAP_HEAP_H_ diff --git a/src/heap/incremental-marking-job.h b/src/heap/incremental-marking-job.h index fad46c1246..c998139a92 100644 --- a/src/heap/incremental-marking-job.h +++ b/src/heap/incremental-marking-job.h @@ -75,7 +75,7 @@ class IncrementalMarkingJob { bool delayed_task_pending_; bool made_progress_since_last_delayed_task_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HEAP_INCREMENTAL_MARKING_JOB_H_ diff --git a/src/heap/incremental-marking.h b/src/heap/incremental-marking.h index 8f38b5ad4a..ee1290e6c8 100644 --- a/src/heap/incremental-marking.h +++ b/src/heap/incremental-marking.h @@ -276,7 +276,7 @@ class IncrementalMarking { DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h index 724650c1c4..527800f4d1 100644 --- a/src/heap/mark-compact.h +++ b/src/heap/mark-compact.h @@ -850,7 +850,7 @@ class EvacuationScope BASE_EMBEDDED { const char* AllocationSpaceName(AllocationSpace space); -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HEAP_MARK_COMPACT_H_ diff --git a/src/heap/memory-reducer.cc b/src/heap/memory-reducer.cc index 45d6bd3d7f..24663dbf61 100644 --- a/src/heap/memory-reducer.cc +++ b/src/heap/memory-reducer.cc @@ -225,5 +225,5 @@ void MemoryReducer::ScheduleTimer(double delay_ms) { void MemoryReducer::TearDown() { state_ = State(kDone, 0, 0, 0.0); } -} // internal -} // v8 +} // namespace internal +} // namespace v8 diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h index 55734fd463..ab0b357f40 100644 --- a/src/heap/objects-visiting-inl.h +++ b/src/heap/objects-visiting-inl.h @@ -902,7 +902,7 @@ void Code::CodeIterateBody(Heap* heap) { it.rinfo()->template Visit(heap); } } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_OBJECTS_VISITING_INL_H_ diff --git a/src/heap/objects-visiting.h b/src/heap/objects-visiting.h index 1eba88731b..6b0381b56e 100644 --- a/src/heap/objects-visiting.h +++ b/src/heap/objects-visiting.h @@ -491,7 +491,7 @@ class WeakObjectRetainer; // access the next-element pointers. template Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer); -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_OBJECTS_VISITING_H_ diff --git a/src/heap/scavenge-job.cc b/src/heap/scavenge-job.cc index c3804436fb..faf90face5 100644 --- a/src/heap/scavenge-job.cc +++ b/src/heap/scavenge-job.cc @@ -112,5 +112,5 @@ void ScavengeJob::ScheduleIdleTask(Heap* heap) { } } } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 diff --git a/src/heap/scavenge-job.h b/src/heap/scavenge-job.h index c9e508ec52..56299a154b 100644 --- a/src/heap/scavenge-job.h +++ b/src/heap/scavenge-job.h @@ -74,7 +74,7 @@ class ScavengeJob { bool idle_task_rescheduled_; int bytes_allocated_since_the_last_task_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HEAP_SCAVENGE_JOB_H_ diff --git a/src/heap/spaces-inl.h b/src/heap/spaces-inl.h index a12ed6f296..cd76fe68ce 100644 --- a/src/heap/spaces-inl.h +++ b/src/heap/spaces-inl.h @@ -487,7 +487,7 @@ intptr_t LargeObjectSpace::Available() { return ObjectSizeFor(heap()->isolate()->memory_allocator()->Available()); } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HEAP_SPACES_INL_H_ diff --git a/src/heap/spaces.h b/src/heap/spaces.h index 222380856b..a4664d71eb 100644 --- a/src/heap/spaces.h +++ b/src/heap/spaces.h @@ -2973,7 +2973,7 @@ struct CommentStatistic { static const int kMaxComments = 64; }; #endif -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HEAP_SPACES_H_ diff --git a/src/heap/store-buffer-inl.h b/src/heap/store-buffer-inl.h index 1f3dda21d2..e11ad87087 100644 --- a/src/heap/store-buffer-inl.h +++ b/src/heap/store-buffer-inl.h @@ -48,7 +48,7 @@ void StoreBuffer::EnterDirectlyIntoStoreBuffer(Address addr) { } } } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_STORE_BUFFER_INL_H_ diff --git a/src/heap/store-buffer.h b/src/heap/store-buffer.h index 37a78eb075..08dcebfc08 100644 --- a/src/heap/store-buffer.h +++ b/src/heap/store-buffer.h @@ -227,7 +227,7 @@ class DontMoveStoreBufferEntriesScope { StoreBuffer* store_buffer_; bool stored_state_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_STORE_BUFFER_H_ diff --git a/src/hydrogen-alias-analysis.h b/src/hydrogen-alias-analysis.h index 368dd5f020..1ab078ecd6 100644 --- a/src/hydrogen-alias-analysis.h +++ b/src/hydrogen-alias-analysis.h @@ -68,6 +68,7 @@ class HAliasAnalyzer : public ZoneObject { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_ALIAS_ANALYSIS_H_ diff --git a/src/hydrogen-bce.h b/src/hydrogen-bce.h index 70c0a07d06..a5b1f3f802 100644 --- a/src/hydrogen-bce.h +++ b/src/hydrogen-bce.h @@ -46,6 +46,7 @@ class HBoundsCheckEliminationPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_BCE_H_ diff --git a/src/hydrogen-bch.h b/src/hydrogen-bch.h index 852c264c4f..708bbd4360 100644 --- a/src/hydrogen-bch.h +++ b/src/hydrogen-bch.h @@ -27,6 +27,7 @@ class HBoundsCheckHoistingPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_BCE_H_ diff --git a/src/hydrogen-canonicalize.h b/src/hydrogen-canonicalize.h index eb230332fd..693085b410 100644 --- a/src/hydrogen-canonicalize.h +++ b/src/hydrogen-canonicalize.h @@ -23,6 +23,7 @@ class HCanonicalizePhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_CANONICALIZE_H_ diff --git a/src/hydrogen-check-elimination.h b/src/hydrogen-check-elimination.h index 7102a439f3..fdba94936f 100644 --- a/src/hydrogen-check-elimination.h +++ b/src/hydrogen-check-elimination.h @@ -68,6 +68,7 @@ class HCheckEliminationPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_CHECK_ELIMINATION_H_ diff --git a/src/hydrogen-dce.h b/src/hydrogen-dce.h index af3679d9d3..08f5326045 100644 --- a/src/hydrogen-dce.h +++ b/src/hydrogen-dce.h @@ -29,6 +29,7 @@ class HDeadCodeEliminationPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_DCE_H_ diff --git a/src/hydrogen-dehoist.h b/src/hydrogen-dehoist.h index 4aab30fafa..11e83860e1 100644 --- a/src/hydrogen-dehoist.h +++ b/src/hydrogen-dehoist.h @@ -23,6 +23,7 @@ class HDehoistIndexComputationsPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_DEHOIST_H_ diff --git a/src/hydrogen-environment-liveness.h b/src/hydrogen-environment-liveness.h index e595927f9d..f97a78ccae 100644 --- a/src/hydrogen-environment-liveness.h +++ b/src/hydrogen-environment-liveness.h @@ -63,6 +63,7 @@ class HEnvironmentLivenessAnalysisPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif /* V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_ */ diff --git a/src/hydrogen-escape-analysis.h b/src/hydrogen-escape-analysis.h index 0726b8edbe..be5f9f488e 100644 --- a/src/hydrogen-escape-analysis.h +++ b/src/hydrogen-escape-analysis.h @@ -65,6 +65,7 @@ class HEscapeAnalysisPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_ESCAPE_ANALYSIS_H_ diff --git a/src/hydrogen-flow-engine.h b/src/hydrogen-flow-engine.h index 257ab466a1..9735ea811a 100644 --- a/src/hydrogen-flow-engine.h +++ b/src/hydrogen-flow-engine.h @@ -214,6 +214,7 @@ class HFlowEngine { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_FLOW_ENGINE_H_ diff --git a/src/hydrogen-gvn.h b/src/hydrogen-gvn.h index fc7f27368e..ae45ecb06b 100644 --- a/src/hydrogen-gvn.h +++ b/src/hydrogen-gvn.h @@ -148,6 +148,7 @@ class HGlobalValueNumberingPhase final : public HPhase { DISALLOW_COPY_AND_ASSIGN(HGlobalValueNumberingPhase); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_GVN_H_ diff --git a/src/hydrogen-infer-representation.h b/src/hydrogen-infer-representation.h index d07f89d973..883173d8a3 100644 --- a/src/hydrogen-infer-representation.h +++ b/src/hydrogen-infer-representation.h @@ -29,6 +29,7 @@ class HInferRepresentationPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_INFER_REPRESENTATION_H_ diff --git a/src/hydrogen-infer-types.h b/src/hydrogen-infer-types.h index 41337ac5c0..e5f5ef94ee 100644 --- a/src/hydrogen-infer-types.h +++ b/src/hydrogen-infer-types.h @@ -31,6 +31,7 @@ class HInferTypesPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_INFER_TYPES_H_ diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h index 9f5bc2099c..0c272fe332 100644 --- a/src/hydrogen-instructions.h +++ b/src/hydrogen-instructions.h @@ -7983,6 +7983,7 @@ class HAllocateBlockContext: public HTemplateInstruction<2> { #undef DECLARE_INSTRUCTION #undef DECLARE_CONCRETE_INSTRUCTION -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ diff --git a/src/hydrogen-load-elimination.h b/src/hydrogen-load-elimination.h index e6b432c6ac..862df7163f 100644 --- a/src/hydrogen-load-elimination.h +++ b/src/hydrogen-load-elimination.h @@ -22,6 +22,7 @@ class HLoadEliminationPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_LOAD_ELIMINATION_H_ diff --git a/src/hydrogen-mark-deoptimize.h b/src/hydrogen-mark-deoptimize.h index 52a6ef96c9..ad498cdab0 100644 --- a/src/hydrogen-mark-deoptimize.h +++ b/src/hydrogen-mark-deoptimize.h @@ -47,6 +47,7 @@ class HComputeChangeUndefinedToNaN : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_MARK_DEOPTIMIZE_H_ diff --git a/src/hydrogen-mark-unreachable.h b/src/hydrogen-mark-unreachable.h index d43d22bbba..a7b2459f6a 100644 --- a/src/hydrogen-mark-unreachable.h +++ b/src/hydrogen-mark-unreachable.h @@ -25,6 +25,7 @@ class HMarkUnreachableBlocksPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_MARK_UNREACHABLE_H_ diff --git a/src/hydrogen-osr.h b/src/hydrogen-osr.h index 433548c1a8..6a63988a06 100644 --- a/src/hydrogen-osr.h +++ b/src/hydrogen-osr.h @@ -49,6 +49,7 @@ class HOsrBuilder : public ZoneObject { ZoneList* osr_values_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_OSR_H_ diff --git a/src/hydrogen-range-analysis.h b/src/hydrogen-range-analysis.h index 1269ec7529..f553302d5f 100644 --- a/src/hydrogen-range-analysis.h +++ b/src/hydrogen-range-analysis.h @@ -45,6 +45,7 @@ class HRangeAnalysisPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_RANGE_ANALYSIS_H_ diff --git a/src/hydrogen-redundant-phi.h b/src/hydrogen-redundant-phi.h index 7f5ec4e52d..7af46a4f00 100644 --- a/src/hydrogen-redundant-phi.h +++ b/src/hydrogen-redundant-phi.h @@ -28,6 +28,7 @@ class HRedundantPhiEliminationPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_REDUNDANT_PHI_H_ diff --git a/src/hydrogen-removable-simulates.h b/src/hydrogen-removable-simulates.h index 9bd25056bd..569b974692 100644 --- a/src/hydrogen-removable-simulates.h +++ b/src/hydrogen-removable-simulates.h @@ -23,6 +23,7 @@ class HMergeRemovableSimulatesPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_REMOVABLE_SIMULATES_H_ diff --git a/src/hydrogen-representation-changes.h b/src/hydrogen-representation-changes.h index 2f5958a70f..0d60739e3e 100644 --- a/src/hydrogen-representation-changes.h +++ b/src/hydrogen-representation-changes.h @@ -27,6 +27,7 @@ class HRepresentationChangesPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_REPRESENTATION_CHANGES_H_ diff --git a/src/hydrogen-sce.h b/src/hydrogen-sce.h index 276d348676..04b0f07e93 100644 --- a/src/hydrogen-sce.h +++ b/src/hydrogen-sce.h @@ -20,6 +20,7 @@ class HStackCheckEliminationPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_SCE_H_ diff --git a/src/hydrogen-store-elimination.h b/src/hydrogen-store-elimination.h index 35a23a2660..d818be9163 100644 --- a/src/hydrogen-store-elimination.h +++ b/src/hydrogen-store-elimination.h @@ -29,6 +29,7 @@ class HStoreEliminationPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif diff --git a/src/hydrogen-types.h b/src/hydrogen-types.h index fe13345f76..ebfbac30d4 100644 --- a/src/hydrogen-types.h +++ b/src/hydrogen-types.h @@ -86,6 +86,7 @@ class HType final { std::ostream& operator<<(std::ostream& os, const HType& t); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // HYDROGEN_TYPES_H_ diff --git a/src/hydrogen-uint32-analysis.h b/src/hydrogen-uint32-analysis.h index 4d2797fa3a..66674696b1 100644 --- a/src/hydrogen-uint32-analysis.h +++ b/src/hydrogen-uint32-analysis.h @@ -31,6 +31,7 @@ class HUint32AnalysisPhase : public HPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_UINT32_ANALYSIS_H_ diff --git a/src/hydrogen.h b/src/hydrogen.h index c1215a33ba..59dec0950d 100644 --- a/src/hydrogen.h +++ b/src/hydrogen.h @@ -3073,6 +3073,7 @@ class NoObservableSideEffectsScope final { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_HYDROGEN_H_ diff --git a/src/i18n.h b/src/i18n.h index ea8380baa7..a8db4d18a6 100644 --- a/src/i18n.h +++ b/src/i18n.h @@ -128,6 +128,7 @@ class BreakIterator { BreakIterator(); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_I18N_H_ diff --git a/src/ia32/assembler-ia32-inl.h b/src/ia32/assembler-ia32-inl.h index 17ae01ad53..6c9c538cc9 100644 --- a/src/ia32/assembler-ia32-inl.h +++ b/src/ia32/assembler-ia32-inl.h @@ -559,6 +559,7 @@ Operand::Operand(Immediate imm) { set_modrm(0, ebp); set_dispr(imm.x_, imm.rmode_); } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ diff --git a/src/ia32/assembler-ia32.h b/src/ia32/assembler-ia32.h index 57987bc751..fd5cf1ae82 100644 --- a/src/ia32/assembler-ia32.h +++ b/src/ia32/assembler-ia32.h @@ -1595,6 +1595,7 @@ class EnsureSpace BASE_EMBEDDED { #endif }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IA32_ASSEMBLER_IA32_H_ diff --git a/src/ia32/code-stubs-ia32.h b/src/ia32/code-stubs-ia32.h index c09b27b773..fc6ba80758 100644 --- a/src/ia32/code-stubs-ia32.h +++ b/src/ia32/code-stubs-ia32.h @@ -385,6 +385,7 @@ class RecordWriteStub: public PlatformCodeStub { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IA32_CODE_STUBS_IA32_H_ diff --git a/src/ia32/codegen-ia32.h b/src/ia32/codegen-ia32.h index 2382388bea..03bb128dd6 100644 --- a/src/ia32/codegen-ia32.h +++ b/src/ia32/codegen-ia32.h @@ -42,6 +42,7 @@ class MathExpGenerator : public AllStatic { DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IA32_CODEGEN_IA32_H_ diff --git a/src/ia32/frames-ia32.h b/src/ia32/frames-ia32.h index a5ce6a5f02..609dfec7b6 100644 --- a/src/ia32/frames-ia32.h +++ b/src/ia32/frames-ia32.h @@ -80,6 +80,7 @@ class JavaScriptFrameConstants : public AllStatic { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IA32_FRAMES_IA32_H_ diff --git a/src/ia32/lithium-codegen-ia32.h b/src/ia32/lithium-codegen-ia32.h index a26903a9ac..5de35d8c3a 100644 --- a/src/ia32/lithium-codegen-ia32.h +++ b/src/ia32/lithium-codegen-ia32.h @@ -398,6 +398,7 @@ class LDeferredCode : public ZoneObject { int instruction_index_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ diff --git a/src/ia32/lithium-gap-resolver-ia32.h b/src/ia32/lithium-gap-resolver-ia32.h index d36e78b5f6..07a187820b 100644 --- a/src/ia32/lithium-gap-resolver-ia32.h +++ b/src/ia32/lithium-gap-resolver-ia32.h @@ -80,6 +80,7 @@ class LGapResolver final BASE_EMBEDDED { int spilled_register_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IA32_LITHIUM_GAP_RESOLVER_IA32_H_ diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h index 9e4b885c48..c59b3361f3 100644 --- a/src/ia32/lithium-ia32.h +++ b/src/ia32/lithium-ia32.h @@ -2885,6 +2885,7 @@ class LChunkBuilder final : public LChunkBuilderBase { #undef DECLARE_HYDROGEN_ACCESSOR #undef DECLARE_CONCRETE_INSTRUCTION -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IA32_LITHIUM_IA32_H_ diff --git a/src/ia32/macro-assembler-ia32.h b/src/ia32/macro-assembler-ia32.h index 508e2099ad..68c4435284 100644 --- a/src/ia32/macro-assembler-ia32.h +++ b/src/ia32/macro-assembler-ia32.h @@ -1129,6 +1129,7 @@ extern void LogGeneratedCodeCoverage(const char* file_line); #endif -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ diff --git a/src/ia32/simulator-ia32.h b/src/ia32/simulator-ia32.h index 02a8e9c03a..af7ee3c71b 100644 --- a/src/ia32/simulator-ia32.h +++ b/src/ia32/simulator-ia32.h @@ -43,6 +43,7 @@ class SimulatorStack : public v8::internal::AllStatic { static inline void UnregisterCTryCatch() { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IA32_SIMULATOR_IA32_H_ diff --git a/src/ic/access-compiler.h b/src/ic/access-compiler.h index a5beb714f8..223bde479a 100644 --- a/src/ic/access-compiler.h +++ b/src/ic/access-compiler.h @@ -81,7 +81,7 @@ class PropertyAccessCompiler BASE_EMBEDDED { // Ensure that MacroAssembler has a reasonable size. STATIC_ASSERT(sizeof(MacroAssembler) < 128 * kPointerSize); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IC_ACCESS_COMPILER_H_ diff --git a/src/ic/call-optimization.h b/src/ic/call-optimization.h index 01947d7fed..7963d1ce67 100644 --- a/src/ic/call-optimization.h +++ b/src/ic/call-optimization.h @@ -61,7 +61,7 @@ class CallOptimization BASE_EMBEDDED { Handle expected_receiver_type_; Handle api_call_info_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IC_CALL_OPTIMIZATION_H_ diff --git a/src/ic/handler-compiler.h b/src/ic/handler-compiler.h index f5dafe9038..4154b58a3f 100644 --- a/src/ic/handler-compiler.h +++ b/src/ic/handler-compiler.h @@ -297,7 +297,7 @@ class ElementHandlerCompiler : public PropertyHandlerCompiler { static void GenerateStoreSlow(MacroAssembler* masm); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IC_HANDLER_COMPILER_H_ diff --git a/src/ic/ic-compiler.h b/src/ic/ic-compiler.h index ee6597d59d..ff32404afa 100644 --- a/src/ic/ic-compiler.h +++ b/src/ic/ic-compiler.h @@ -125,7 +125,7 @@ class PropertyICCompiler : public PropertyAccessCompiler { }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IC_IC_COMPILER_H_ diff --git a/src/ic/ic-inl.h b/src/ic/ic-inl.h index 646b73d641..0998894296 100644 --- a/src/ic/ic-inl.h +++ b/src/ic/ic-inl.h @@ -193,7 +193,7 @@ bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) { return (host->kind() == Code::OPTIMIZED_FUNCTION && host->marked_for_deoptimization()); } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IC_INL_H_ diff --git a/src/ic/ic-state.h b/src/ic/ic-state.h index b529b8c54d..6d014d1ca4 100644 --- a/src/ic/ic-state.h +++ b/src/ic/ic-state.h @@ -268,7 +268,8 @@ class StoreICState final BASE_EMBEDDED { private: const ExtraICState state_; }; -} -} + +} // namespace internal +} // namespace v8 #endif // V8_IC_STATE_H_ diff --git a/src/ic/ic.h b/src/ic/ic.h index d65d7a8c1b..b88fe68b7e 100644 --- a/src/ic/ic.h +++ b/src/ic/ic.h @@ -685,7 +685,7 @@ class ToBooleanIC : public IC { enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IC_H_ diff --git a/src/ic/stub-cache.h b/src/ic/stub-cache.h index cb1b62848e..4b27e6e396 100644 --- a/src/ic/stub-cache.h +++ b/src/ic/stub-cache.h @@ -165,7 +165,7 @@ class StubCache { DISALLOW_COPY_AND_ASSIGN(StubCache); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_STUB_CACHE_H_ diff --git a/src/icu_util.h b/src/icu_util.h index cd98ff0dfc..c308decfe5 100644 --- a/src/icu_util.h +++ b/src/icu_util.h @@ -14,6 +14,7 @@ namespace internal { // function should be called before ICU is used. bool InitializeICU(const char* icu_data_file); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ICU_UTIL_H_ diff --git a/src/identity-map.h b/src/identity-map.h index 2143e24e37..7c3e6a98bf 100644 --- a/src/identity-map.h +++ b/src/identity-map.h @@ -92,7 +92,7 @@ class IdentityMap : public IdentityMapBase { *(reinterpret_cast(GetEntry(key))) = value; } }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_IDENTITY_MAP_H_ diff --git a/src/interface-descriptors.cc b/src/interface-descriptors.cc index b71f973120..73090d6515 100644 --- a/src/interface-descriptors.cc +++ b/src/interface-descriptors.cc @@ -29,7 +29,7 @@ Type* AnyTagged(Zone* zone) { Type* ExternalPointer(Zone* zone) { return Type::Intersect(Type::Internal(), Type::UntaggedPointer(), zone); } -} +} // namespace Type::FunctionType* CallInterfaceDescriptor::BuildDefaultFunctionType( diff --git a/src/interface-descriptors.h b/src/interface-descriptors.h index 534313f7d3..05b43dce3e 100644 --- a/src/interface-descriptors.h +++ b/src/interface-descriptors.h @@ -720,8 +720,8 @@ class PushArgsAndCallDescriptor : public CallInterfaceDescriptor { CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } INTERFACE_DESCRIPTOR_LIST(DEF_KEY) #undef DEF_KEY -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #if V8_TARGET_ARCH_ARM64 diff --git a/src/isolate.h b/src/isolate.h index 035b4b363c..daddfdae4f 100644 --- a/src/isolate.h +++ b/src/isolate.h @@ -1550,6 +1550,7 @@ class CodeTracer final : public Malloced { int scope_depth_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ISOLATE_H_ diff --git a/src/json-parser.h b/src/json-parser.h index cac4979859..21889530c3 100644 --- a/src/json-parser.h +++ b/src/json-parser.h @@ -845,6 +845,7 @@ Handle JsonParser::ScanJsonString() { return result; } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_JSON_PARSER_H_ diff --git a/src/json-stringifier.h b/src/json-stringifier.h index 260cade1ff..c06256d4d7 100644 --- a/src/json-stringifier.h +++ b/src/json-stringifier.h @@ -675,6 +675,7 @@ void BasicJsonStringifier::SerializeString(Handle object) { } } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_JSON_STRINGIFIER_H_ diff --git a/src/layout-descriptor-inl.h b/src/layout-descriptor-inl.h index 3771064c8f..31ab5d1dd7 100644 --- a/src/layout-descriptor-inl.h +++ b/src/layout-descriptor-inl.h @@ -250,7 +250,7 @@ bool LayoutDescriptorHelper::IsTagged(int offset_in_bytes) { return layout_descriptor_->IsTagged(field_index); } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LAYOUT_DESCRIPTOR_INL_H_ diff --git a/src/layout-descriptor.h b/src/layout-descriptor.h index 11d8d35f26..5a80e73f1f 100644 --- a/src/layout-descriptor.h +++ b/src/layout-descriptor.h @@ -153,7 +153,7 @@ class LayoutDescriptorHelper { int header_size_; LayoutDescriptor* layout_descriptor_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LAYOUT_DESCRIPTOR_H_ diff --git a/src/libplatform/default-platform.cc b/src/libplatform/default-platform.cc index ddceab5457..383d8ce1e0 100644 --- a/src/libplatform/default-platform.cc +++ b/src/libplatform/default-platform.cc @@ -168,4 +168,5 @@ double DefaultPlatform::MonotonicallyIncreasingTime() { return base::TimeTicks::HighResolutionNow().ToInternalValue() / static_cast(base::Time::kMicrosecondsPerSecond); } -} } // namespace v8::platform +} // namespace platform +} // namespace v8 diff --git a/src/libplatform/default-platform.h b/src/libplatform/default-platform.h index 94ef9c5055..0dbedb6fc0 100644 --- a/src/libplatform/default-platform.h +++ b/src/libplatform/default-platform.h @@ -68,7 +68,8 @@ class DefaultPlatform : public Platform { }; -} } // namespace v8::platform +} // namespace platform +} // namespace v8 #endif // V8_LIBPLATFORM_DEFAULT_PLATFORM_H_ diff --git a/src/libplatform/task-queue.cc b/src/libplatform/task-queue.cc index 7a9071f362..0a630ed3c3 100644 --- a/src/libplatform/task-queue.cc +++ b/src/libplatform/task-queue.cc @@ -53,4 +53,5 @@ void TaskQueue::Terminate() { process_queue_semaphore_.Signal(); } -} } // namespace v8::platform +} // namespace platform +} // namespace v8 diff --git a/src/libplatform/task-queue.h b/src/libplatform/task-queue.h index eb9d6987e9..efe9e07e06 100644 --- a/src/libplatform/task-queue.h +++ b/src/libplatform/task-queue.h @@ -41,7 +41,8 @@ class TaskQueue { DISALLOW_COPY_AND_ASSIGN(TaskQueue); }; -} } // namespace v8::platform +} // namespace platform +} // namespace v8 #endif // V8_LIBPLATFORM_TASK_QUEUE_H_ diff --git a/src/libplatform/worker-thread.cc b/src/libplatform/worker-thread.cc index 99637151e2..a8e714a896 100644 --- a/src/libplatform/worker-thread.cc +++ b/src/libplatform/worker-thread.cc @@ -28,4 +28,5 @@ void WorkerThread::Run() { } } -} } // namespace v8::platform +} // namespace platform +} // namespace v8 diff --git a/src/libplatform/worker-thread.h b/src/libplatform/worker-thread.h index 730e039ca1..6a55a6bc89 100644 --- a/src/libplatform/worker-thread.h +++ b/src/libplatform/worker-thread.h @@ -32,7 +32,8 @@ class WorkerThread : public base::Thread { DISALLOW_COPY_AND_ASSIGN(WorkerThread); }; -} } // namespace v8::platform +} // namespace platform +} // namespace v8 #endif // V8_LIBPLATFORM_WORKER_THREAD_H_ diff --git a/src/list-inl.h b/src/list-inl.h index 5a247d5fd7..9a2d11f96a 100644 --- a/src/list-inl.h +++ b/src/list-inl.h @@ -286,6 +286,7 @@ int SortedListBSearch(const List& list, T elem) { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LIST_INL_H_ diff --git a/src/list.h b/src/list.h index d935f764b8..8b8a5dd1ed 100644 --- a/src/list.h +++ b/src/list.h @@ -229,7 +229,8 @@ template int SortedListBSearch(const List& list, T elem); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LIST_H_ diff --git a/src/lithium-allocator-inl.h b/src/lithium-allocator-inl.h index 98923ae3aa..bad299613d 100644 --- a/src/lithium-allocator-inl.h +++ b/src/lithium-allocator-inl.h @@ -54,6 +54,7 @@ void LAllocator::SetLiveRangeAssignedRegister(LiveRange* range, int reg) { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LITHIUM_ALLOCATOR_INL_H_ diff --git a/src/lithium-allocator.h b/src/lithium-allocator.h index 7c94772450..bd5127d66d 100644 --- a/src/lithium-allocator.h +++ b/src/lithium-allocator.h @@ -568,6 +568,7 @@ class LAllocatorPhase : public CompilationPhase { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LITHIUM_ALLOCATOR_H_ diff --git a/src/lithium-codegen.h b/src/lithium-codegen.h index ce04da9006..c654ff7ce5 100644 --- a/src/lithium-codegen.h +++ b/src/lithium-codegen.h @@ -91,6 +91,7 @@ class LCodeGenBase BASE_EMBEDDED { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LITHIUM_CODEGEN_H_ diff --git a/src/lithium-inl.h b/src/lithium-inl.h index 1a10773390..cd15a45e24 100644 --- a/src/lithium-inl.h +++ b/src/lithium-inl.h @@ -108,7 +108,7 @@ LOperand* UseIterator::Current() { void UseIterator::Advance() { input_iterator_.Done() ? env_iterator_.Advance() : input_iterator_.Advance(); } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LITHIUM_INL_H_ diff --git a/src/lithium.h b/src/lithium.h index 046de19fd0..97c5c1d927 100644 --- a/src/lithium.h +++ b/src/lithium.h @@ -835,6 +835,7 @@ class UseIterator BASE_EMBEDDED { class LInstruction; class LCodeGen; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LITHIUM_H_ diff --git a/src/log-inl.h b/src/log-inl.h index 520d05c4d3..70c74bc33f 100644 --- a/src/log-inl.h +++ b/src/log-inl.h @@ -38,6 +38,7 @@ void Logger::CallEventLogger(Isolate* isolate, const char* name, StartEnd se, } } } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LOG_INL_H_ diff --git a/src/log-utils.h b/src/log-utils.h index 87dab52406..0ceaccb61d 100644 --- a/src/log-utils.h +++ b/src/log-utils.h @@ -134,6 +134,7 @@ class Log { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LOG_UTILS_H_ diff --git a/src/log.h b/src/log.h index 33c1b29d96..064115b3aa 100644 --- a/src/log.h +++ b/src/log.h @@ -526,7 +526,8 @@ class CodeEventLogger : public CodeEventListener { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LOG_H_ diff --git a/src/lookup-inl.h b/src/lookup-inl.h index 3df2194d3f..003ae5a6db 100644 --- a/src/lookup-inl.h +++ b/src/lookup-inl.h @@ -136,7 +136,7 @@ LookupIterator::State LookupIterator::LookupNonMaskingInterceptorInHolder( UNREACHABLE(); return state_; } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LOOKUP_INL_H_ diff --git a/src/lookup.h b/src/lookup.h index 3888ed6240..8365cfcaba 100644 --- a/src/lookup.h +++ b/src/lookup.h @@ -316,6 +316,7 @@ class LookupIterator final BASE_EMBEDDED { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_LOOKUP_H_ diff --git a/src/macro-assembler.h b/src/macro-assembler.h index c865a5fb0c..fd2aa7c314 100644 --- a/src/macro-assembler.h +++ b/src/macro-assembler.h @@ -278,6 +278,7 @@ class AllocationUtils { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MACRO_ASSEMBLER_H_ diff --git a/src/messages.h b/src/messages.h index bb78f3d0a5..2c574a5b36 100644 --- a/src/messages.h +++ b/src/messages.h @@ -490,6 +490,7 @@ class ErrorToStringHelper { List > visited_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MESSAGES_H_ diff --git a/src/mips/assembler-mips-inl.h b/src/mips/assembler-mips-inl.h index f4bddf5461..01f33a560b 100644 --- a/src/mips/assembler-mips-inl.h +++ b/src/mips/assembler-mips-inl.h @@ -485,6 +485,7 @@ void Assembler::emit(Instr x) { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ diff --git a/src/mips/assembler-mips.h b/src/mips/assembler-mips.h index c47f6d3abe..331e31054e 100644 --- a/src/mips/assembler-mips.h +++ b/src/mips/assembler-mips.h @@ -1450,6 +1450,7 @@ class EnsureSpace BASE_EMBEDDED { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_ASSEMBLER_MIPS_H_ diff --git a/src/mips/code-stubs-mips.h b/src/mips/code-stubs-mips.h index 67228e0170..9009ec2692 100644 --- a/src/mips/code-stubs-mips.h +++ b/src/mips/code-stubs-mips.h @@ -343,6 +343,7 @@ class NameDictionaryLookupStub: public PlatformCodeStub { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_CODE_STUBS_MIPS_H_ diff --git a/src/mips/codegen-mips.h b/src/mips/codegen-mips.h index f79ad4e41c..22784fcf53 100644 --- a/src/mips/codegen-mips.h +++ b/src/mips/codegen-mips.h @@ -46,6 +46,7 @@ class MathExpGenerator : public AllStatic { DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_CODEGEN_MIPS_H_ diff --git a/src/mips/constants-mips.h b/src/mips/constants-mips.h index fcbda80191..813e33a7f0 100644 --- a/src/mips/constants-mips.h +++ b/src/mips/constants-mips.h @@ -1178,6 +1178,7 @@ Instruction::Type Instruction::InstructionType(TypeChecks checks) const { #undef OpcodeToBitNumber #undef FunctionFieldToBitNumber -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // #ifndef V8_MIPS_CONSTANTS_H_ diff --git a/src/mips/frames-mips.h b/src/mips/frames-mips.h index 0452ece222..849dea2841 100644 --- a/src/mips/frames-mips.h +++ b/src/mips/frames-mips.h @@ -169,6 +169,7 @@ class JavaScriptFrameConstants : public AllStatic { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif diff --git a/src/mips/lithium-codegen-mips.h b/src/mips/lithium-codegen-mips.h index 858c7f12bc..9aab4dfa46 100644 --- a/src/mips/lithium-codegen-mips.h +++ b/src/mips/lithium-codegen-mips.h @@ -426,6 +426,7 @@ class LDeferredCode : public ZoneObject { int instruction_index_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ diff --git a/src/mips/lithium-gap-resolver-mips.h b/src/mips/lithium-gap-resolver-mips.h index 7374da7727..6ede420d6f 100644 --- a/src/mips/lithium-gap-resolver-mips.h +++ b/src/mips/lithium-gap-resolver-mips.h @@ -53,6 +53,7 @@ class LGapResolver final BASE_EMBEDDED { LOperand* saved_destination_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_LITHIUM_GAP_RESOLVER_MIPS_H_ diff --git a/src/mips/lithium-mips.h b/src/mips/lithium-mips.h index ed3332ca65..cb62e35d81 100644 --- a/src/mips/lithium-mips.h +++ b/src/mips/lithium-mips.h @@ -2843,6 +2843,7 @@ class LChunkBuilder final : public LChunkBuilderBase { #undef DECLARE_HYDROGEN_ACCESSOR #undef DECLARE_CONCRETE_INSTRUCTION -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_LITHIUM_MIPS_H_ diff --git a/src/mips/macro-assembler-mips.h b/src/mips/macro-assembler-mips.h index 1608c951b6..c8e21c421b 100644 --- a/src/mips/macro-assembler-mips.h +++ b/src/mips/macro-assembler-mips.h @@ -1744,6 +1744,7 @@ class CodePatcher { #define ACCESS_MASM(masm) masm-> #endif -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ diff --git a/src/mips/simulator-mips.h b/src/mips/simulator-mips.h index bd30172d5b..796d08fc27 100644 --- a/src/mips/simulator-mips.h +++ b/src/mips/simulator-mips.h @@ -55,7 +55,8 @@ class SimulatorStack : public v8::internal::AllStatic { static inline void UnregisterCTryCatch() { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 // Calculated the stack limit beyond which we will throw stack overflow errors. // This macro must be called from a C++ method. It relies on being able to take @@ -480,7 +481,8 @@ class SimulatorStack : public v8::internal::AllStatic { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // !defined(USE_SIMULATOR) #endif // V8_MIPS_SIMULATOR_MIPS_H_ diff --git a/src/mips64/assembler-mips64-inl.h b/src/mips64/assembler-mips64-inl.h index 16ca33a9f3..62dc2d3fa9 100644 --- a/src/mips64/assembler-mips64-inl.h +++ b/src/mips64/assembler-mips64-inl.h @@ -488,6 +488,7 @@ void Assembler::emit(uint64_t x) { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ diff --git a/src/mips64/assembler-mips64.h b/src/mips64/assembler-mips64.h index be57f29806..b1be0e8b39 100644 --- a/src/mips64/assembler-mips64.h +++ b/src/mips64/assembler-mips64.h @@ -1507,6 +1507,7 @@ class EnsureSpace BASE_EMBEDDED { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ARM_ASSEMBLER_MIPS_H_ diff --git a/src/mips64/code-stubs-mips64.h b/src/mips64/code-stubs-mips64.h index c54a3d07c5..2e18f59915 100644 --- a/src/mips64/code-stubs-mips64.h +++ b/src/mips64/code-stubs-mips64.h @@ -344,6 +344,7 @@ class NameDictionaryLookupStub: public PlatformCodeStub { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_CODE_STUBS_MIPS64_H_ diff --git a/src/mips64/codegen-mips64.h b/src/mips64/codegen-mips64.h index f79ad4e41c..22784fcf53 100644 --- a/src/mips64/codegen-mips64.h +++ b/src/mips64/codegen-mips64.h @@ -46,6 +46,7 @@ class MathExpGenerator : public AllStatic { DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_CODEGEN_MIPS_H_ diff --git a/src/mips64/constants-mips64.h b/src/mips64/constants-mips64.h index f23f103ac3..1de058bc37 100644 --- a/src/mips64/constants-mips64.h +++ b/src/mips64/constants-mips64.h @@ -1252,6 +1252,7 @@ Instruction::Type Instruction::InstructionType(TypeChecks checks) const { #undef OpcodeToBitNumber #undef FunctionFieldToBitNumber -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // #ifndef V8_MIPS_CONSTANTS_H_ diff --git a/src/mips64/frames-mips64.h b/src/mips64/frames-mips64.h index 9b6d326275..9c42d8d95c 100644 --- a/src/mips64/frames-mips64.h +++ b/src/mips64/frames-mips64.h @@ -169,6 +169,7 @@ class JavaScriptFrameConstants : public AllStatic { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif diff --git a/src/mips64/lithium-codegen-mips64.h b/src/mips64/lithium-codegen-mips64.h index b08de167be..7133f6d8e6 100644 --- a/src/mips64/lithium-codegen-mips64.h +++ b/src/mips64/lithium-codegen-mips64.h @@ -429,6 +429,7 @@ class LDeferredCode : public ZoneObject { int instruction_index_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ diff --git a/src/mips64/lithium-gap-resolver-mips64.h b/src/mips64/lithium-gap-resolver-mips64.h index 7374da7727..6ede420d6f 100644 --- a/src/mips64/lithium-gap-resolver-mips64.h +++ b/src/mips64/lithium-gap-resolver-mips64.h @@ -53,6 +53,7 @@ class LGapResolver final BASE_EMBEDDED { LOperand* saved_destination_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_LITHIUM_GAP_RESOLVER_MIPS_H_ diff --git a/src/mips64/lithium-mips64.h b/src/mips64/lithium-mips64.h index 01463c9d63..0720c7ef52 100644 --- a/src/mips64/lithium-mips64.h +++ b/src/mips64/lithium-mips64.h @@ -2889,6 +2889,7 @@ class LChunkBuilder final : public LChunkBuilderBase { #undef DECLARE_HYDROGEN_ACCESSOR #undef DECLARE_CONCRETE_INSTRUCTION -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_LITHIUM_MIPS_H_ diff --git a/src/mips64/macro-assembler-mips64.h b/src/mips64/macro-assembler-mips64.h index 5dfee07ad9..68acbe3db3 100644 --- a/src/mips64/macro-assembler-mips64.h +++ b/src/mips64/macro-assembler-mips64.h @@ -1841,6 +1841,7 @@ class CodePatcher { #define ACCESS_MASM(masm) masm-> #endif -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ diff --git a/src/mips64/simulator-mips64.h b/src/mips64/simulator-mips64.h index e45cbd449e..68d518ea10 100644 --- a/src/mips64/simulator-mips64.h +++ b/src/mips64/simulator-mips64.h @@ -84,7 +84,8 @@ class SimulatorStack : public v8::internal::AllStatic { static inline void UnregisterCTryCatch() { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 // Calculated the stack limit beyond which we will throw stack overflow errors. // This macro must be called from a C++ method. It relies on being able to take @@ -526,7 +527,8 @@ class SimulatorStack : public v8::internal::AllStatic { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // !defined(USE_SIMULATOR) #endif // V8_MIPS_SIMULATOR_MIPS_H_ diff --git a/src/modules.h b/src/modules.h index 33afd6128d..f1dbd2516a 100644 --- a/src/modules.h +++ b/src/modules.h @@ -115,6 +115,7 @@ class ModuleDescriptor : public ZoneObject { int index_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MODULES_H_ diff --git a/src/objects-inl.h b/src/objects-inl.h index 3d39278cce..58ccefa0cb 100644 --- a/src/objects-inl.h +++ b/src/objects-inl.h @@ -8046,6 +8046,7 @@ String::SubStringRange::iterator String::SubStringRange::end() { #undef NOBARRIER_READ_BYTE_FIELD #undef NOBARRIER_WRITE_BYTE_FIELD -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_OBJECTS_INL_H_ diff --git a/src/objects.h b/src/objects.h index 8566545a5f..a9d6fff635 100644 --- a/src/objects.h +++ b/src/objects.h @@ -10624,6 +10624,8 @@ class KeyAccumulator final BASE_EMBEDDED { int length_; DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); }; -} } // namespace v8::internal + +} // NOLINT, false-positive due to second-order macros. +} // NOLINT, false-positive due to second-order macros. #endif // V8_OBJECTS_H_ diff --git a/src/optimizing-compile-dispatcher.h b/src/optimizing-compile-dispatcher.h index ad09dfa734..9c4e4cb8df 100644 --- a/src/optimizing-compile-dispatcher.h +++ b/src/optimizing-compile-dispatcher.h @@ -131,7 +131,7 @@ class OptimizingCompileDispatcher { // is not safe to access them directly. int recompilation_delay_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_OPTIMIZING_COMPILE_DISPATCHER_H_ diff --git a/src/parser.h b/src/parser.h index cf4cdad66b..940b569ae8 100644 --- a/src/parser.h +++ b/src/parser.h @@ -1373,6 +1373,7 @@ void ParserTraits::AddParameterInitializationBlock( } } } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PARSER_H_ diff --git a/src/ppc/assembler-ppc-inl.h b/src/ppc/assembler-ppc-inl.h index b1e2825751..4f6a35d66e 100644 --- a/src/ppc/assembler-ppc-inl.h +++ b/src/ppc/assembler-ppc-inl.h @@ -720,7 +720,7 @@ void Assembler::set_target_address_at(Address pc, Address constant_pool, } UNREACHABLE(); } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PPC_ASSEMBLER_PPC_INL_H_ diff --git a/src/ppc/assembler-ppc.h b/src/ppc/assembler-ppc.h index a1c08ad0ea..c1d6358bb6 100644 --- a/src/ppc/assembler-ppc.h +++ b/src/ppc/assembler-ppc.h @@ -1612,7 +1612,7 @@ class EnsureSpace BASE_EMBEDDED { public: explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PPC_ASSEMBLER_PPC_H_ diff --git a/src/ppc/code-stubs-ppc.h b/src/ppc/code-stubs-ppc.h index bc6c26b217..ef4bdce5d1 100644 --- a/src/ppc/code-stubs-ppc.h +++ b/src/ppc/code-stubs-ppc.h @@ -322,7 +322,7 @@ class NameDictionaryLookupStub : public PlatformCodeStub { DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PPC_CODE_STUBS_PPC_H_ diff --git a/src/ppc/codegen-ppc.h b/src/ppc/codegen-ppc.h index f8da74eaa6..7f19beea7d 100644 --- a/src/ppc/codegen-ppc.h +++ b/src/ppc/codegen-ppc.h @@ -35,7 +35,7 @@ class MathExpGenerator : public AllStatic { private: DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PPC_CODEGEN_PPC_H_ diff --git a/src/ppc/constants-ppc.h b/src/ppc/constants-ppc.h index b304bad7ce..ece27a365e 100644 --- a/src/ppc/constants-ppc.h +++ b/src/ppc/constants-ppc.h @@ -592,7 +592,7 @@ class FPRegisters { private: static const char* names_[kNumFPRegisters]; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PPC_CONSTANTS_PPC_H_ diff --git a/src/ppc/frames-ppc.h b/src/ppc/frames-ppc.h index d5b6d3caa9..f5beb5c247 100644 --- a/src/ppc/frames-ppc.h +++ b/src/ppc/frames-ppc.h @@ -185,7 +185,7 @@ class JavaScriptFrameConstants : public AllStatic { }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PPC_FRAMES_PPC_H_ diff --git a/src/ppc/lithium-codegen-ppc.h b/src/ppc/lithium-codegen-ppc.h index 117dc574d5..d48ee05ba8 100644 --- a/src/ppc/lithium-codegen-ppc.h +++ b/src/ppc/lithium-codegen-ppc.h @@ -358,7 +358,7 @@ class LDeferredCode : public ZoneObject { Label* external_exit_; int instruction_index_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PPC_LITHIUM_CODEGEN_PPC_H_ diff --git a/src/ppc/lithium-gap-resolver-ppc.h b/src/ppc/lithium-gap-resolver-ppc.h index 7741080e55..e7cd789f78 100644 --- a/src/ppc/lithium-gap-resolver-ppc.h +++ b/src/ppc/lithium-gap-resolver-ppc.h @@ -52,7 +52,7 @@ class LGapResolver final BASE_EMBEDDED { bool in_cycle_; LOperand* saved_destination_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PPC_LITHIUM_GAP_RESOLVER_PPC_H_ diff --git a/src/ppc/lithium-ppc.h b/src/ppc/lithium-ppc.h index e862a11f63..304a3655ab 100644 --- a/src/ppc/lithium-ppc.h +++ b/src/ppc/lithium-ppc.h @@ -2760,7 +2760,7 @@ class LChunkBuilder final : public LChunkBuilderBase { #undef DECLARE_HYDROGEN_ACCESSOR #undef DECLARE_CONCRETE_INSTRUCTION -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PPC_LITHIUM_PPC_H_ diff --git a/src/ppc/macro-assembler-ppc.h b/src/ppc/macro-assembler-ppc.h index cfc1530600..09f6cab370 100644 --- a/src/ppc/macro-assembler-ppc.h +++ b/src/ppc/macro-assembler-ppc.h @@ -1566,7 +1566,7 @@ inline MemOperand GlobalObjectOperand() { #else #define ACCESS_MASM(masm) masm-> #endif -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ diff --git a/src/ppc/simulator-ppc.h b/src/ppc/simulator-ppc.h index 042b2ada2c..0df30da9e9 100644 --- a/src/ppc/simulator-ppc.h +++ b/src/ppc/simulator-ppc.h @@ -54,8 +54,8 @@ class SimulatorStack : public v8::internal::AllStatic { static inline void UnregisterCTryCatch() {} }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #else // !defined(USE_SIMULATOR) // Running with a simulator. @@ -422,8 +422,8 @@ class SimulatorStack : public v8::internal::AllStatic { Simulator::current(Isolate::Current())->PopAddress(); } }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // !defined(USE_SIMULATOR) #endif // V8_PPC_SIMULATOR_PPC_H_ diff --git a/src/preparse-data-format.h b/src/preparse-data-format.h index 560693f67e..c68a684562 100644 --- a/src/preparse-data-format.h +++ b/src/preparse-data-format.h @@ -35,6 +35,7 @@ struct PreparseDataConstants { }; -} } // namespace v8::internal. +} // namespace internal +} // namespace v8. #endif // V8_PREPARSE_DATA_FORMAT_H_ diff --git a/src/preparse-data.h b/src/preparse-data.h index f7ed1ed91a..711ff3b895 100644 --- a/src/preparse-data.h +++ b/src/preparse-data.h @@ -206,6 +206,7 @@ class CompleteParserRecorder : public ParserRecorder { }; -} } // namespace v8::internal. +} // namespace internal +} // namespace v8. #endif // V8_PREPARSE_DATA_H_ diff --git a/src/preparser.cc b/src/preparser.cc index 1bdcb85db7..4ff2c95466 100644 --- a/src/preparser.cc +++ b/src/preparser.cc @@ -1237,4 +1237,5 @@ PreParser::Expression PreParser::ParseV8Intrinsic(bool* ok) { #undef CHECK_OK -} } // v8::internal +} // namespace internal +} // namespace v8 diff --git a/src/preparser.h b/src/preparser.h index 50dbcf1a46..373944769c 100644 --- a/src/preparser.h +++ b/src/preparser.h @@ -4183,6 +4183,7 @@ void ParserBase::ClassLiteralChecker::CheckProperty( return; } } -} } // v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PREPARSER_H diff --git a/src/prettyprinter.h b/src/prettyprinter.h index 1971cfe839..33aa1ebd60 100644 --- a/src/prettyprinter.h +++ b/src/prettyprinter.h @@ -133,6 +133,7 @@ class AstPrinter: public PrettyPrinter { #endif // DEBUG -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PRETTYPRINTER_H_ diff --git a/src/profiler/allocation-tracker.h b/src/profiler/allocation-tracker.h index ebda3dba83..03802a5c66 100644 --- a/src/profiler/allocation-tracker.h +++ b/src/profiler/allocation-tracker.h @@ -152,6 +152,7 @@ class AllocationTracker { DISALLOW_COPY_AND_ASSIGN(AllocationTracker); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ALLOCATION_TRACKER_H_ diff --git a/src/profiler/circular-queue-inl.h b/src/profiler/circular-queue-inl.h index 66b4af5b4a..428945a2ee 100644 --- a/src/profiler/circular-queue-inl.h +++ b/src/profiler/circular-queue-inl.h @@ -64,6 +64,7 @@ typename SamplingCircularQueue::Entry* SamplingCircularQueue::Next( return next; } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROFILER_CIRCULAR_QUEUE_INL_H_ diff --git a/src/profiler/circular-queue.h b/src/profiler/circular-queue.h index 3508b371c4..272843bb2d 100644 --- a/src/profiler/circular-queue.h +++ b/src/profiler/circular-queue.h @@ -63,6 +63,7 @@ class SamplingCircularQueue { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROFILER_CIRCULAR_QUEUE_H_ diff --git a/src/profiler/cpu-profiler-inl.h b/src/profiler/cpu-profiler-inl.h index df727ae7cb..ea82c5589f 100644 --- a/src/profiler/cpu-profiler-inl.h +++ b/src/profiler/cpu-profiler-inl.h @@ -74,6 +74,7 @@ void ProfilerEventsProcessor::FinishTickSample() { ticks_buffer_.FinishEnqueue(); } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROFILER_CPU_PROFILER_INL_H_ diff --git a/src/profiler/cpu-profiler.h b/src/profiler/cpu-profiler.h index 2d6732725a..2326bb7652 100644 --- a/src/profiler/cpu-profiler.h +++ b/src/profiler/cpu-profiler.h @@ -270,7 +270,8 @@ class CpuProfiler : public CodeEventListener { DISALLOW_COPY_AND_ASSIGN(CpuProfiler); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROFILER_CPU_PROFILER_H_ diff --git a/src/profiler/heap-profiler.h b/src/profiler/heap-profiler.h index b304f388ff..d6fcbbdaca 100644 --- a/src/profiler/heap-profiler.h +++ b/src/profiler/heap-profiler.h @@ -79,6 +79,7 @@ class HeapProfiler { base::Mutex profiler_mutex_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROFILER_HEAP_PROFILER_H_ diff --git a/src/profiler/heap-snapshot-generator-inl.h b/src/profiler/heap-snapshot-generator-inl.h index 12e37f5e60..fb1e891c94 100644 --- a/src/profiler/heap-snapshot-generator-inl.h +++ b/src/profiler/heap-snapshot-generator-inl.h @@ -43,6 +43,7 @@ HeapGraphEdge** HeapEntry::children_arr() { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_INL_H_ diff --git a/src/profiler/heap-snapshot-generator.h b/src/profiler/heap-snapshot-generator.h index 1baebeee9e..4b3d1f08a0 100644 --- a/src/profiler/heap-snapshot-generator.h +++ b/src/profiler/heap-snapshot-generator.h @@ -616,6 +616,7 @@ class HeapSnapshotJSONSerializer { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_ diff --git a/src/profiler/profile-generator-inl.h b/src/profiler/profile-generator-inl.h index c2e98cc4c8..e8205c7212 100644 --- a/src/profiler/profile-generator-inl.h +++ b/src/profiler/profile-generator-inl.h @@ -43,6 +43,7 @@ ProfileNode::ProfileNode(ProfileTree* tree, CodeEntry* entry) inline unsigned ProfileNode::function_id() const { return tree_->GetFunctionId(this); } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROFILER_PROFILE_GENERATOR_INL_H_ diff --git a/src/profiler/profile-generator.h b/src/profiler/profile-generator.h index ce58d70ae9..cd79dfa979 100644 --- a/src/profiler/profile-generator.h +++ b/src/profiler/profile-generator.h @@ -383,6 +383,7 @@ class ProfileGenerator { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROFILER_PROFILE_GENERATOR_H_ diff --git a/src/profiler/sampler.h b/src/profiler/sampler.h index ed932c0354..354e935e31 100644 --- a/src/profiler/sampler.h +++ b/src/profiler/sampler.h @@ -130,6 +130,7 @@ class Sampler { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROFILER_SAMPLER_H_ diff --git a/src/profiler/unbound-queue-inl.h b/src/profiler/unbound-queue-inl.h index fef7bec8d3..8c45d09861 100644 --- a/src/profiler/unbound-queue-inl.h +++ b/src/profiler/unbound-queue-inl.h @@ -77,6 +77,7 @@ Record* UnboundQueue::Peek() const { return &next->value; } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROFILER_UNBOUND_QUEUE_INL_H_ diff --git a/src/profiler/unbound-queue.h b/src/profiler/unbound-queue.h index a63c327d10..c53b35a8ed 100644 --- a/src/profiler/unbound-queue.h +++ b/src/profiler/unbound-queue.h @@ -42,6 +42,7 @@ class UnboundQueue BASE_EMBEDDED { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROFILER_UNBOUND_QUEUE_ diff --git a/src/property-details.h b/src/property-details.h index 33d3b8d7ef..ca37927017 100644 --- a/src/property-details.h +++ b/src/property-details.h @@ -371,6 +371,7 @@ class PropertyDetails BASE_EMBEDDED { std::ostream& operator<<(std::ostream& os, const PropertyAttributes& attributes); std::ostream& operator<<(std::ostream& os, const PropertyDetails& details); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROPERTY_DETAILS_H_ diff --git a/src/property.h b/src/property.h index 09ec5f207f..b58c9c6acb 100644 --- a/src/property.h +++ b/src/property.h @@ -107,6 +107,7 @@ class AccessorConstantDescriptor final : public Descriptor { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_PROPERTY_H_ diff --git a/src/regexp/arm/regexp-macro-assembler-arm.h b/src/regexp/arm/regexp-macro-assembler-arm.h index 123a95711e..c6cff65635 100644 --- a/src/regexp/arm/regexp-macro-assembler-arm.h +++ b/src/regexp/arm/regexp-macro-assembler-arm.h @@ -214,6 +214,7 @@ class RegExpMacroAssemblerARM: public NativeRegExpMacroAssembler { #endif // V8_INTERPRETED_REGEXP -}} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ diff --git a/src/regexp/arm64/regexp-macro-assembler-arm64.h b/src/regexp/arm64/regexp-macro-assembler-arm64.h index a48291a421..0dc519580d 100644 --- a/src/regexp/arm64/regexp-macro-assembler-arm64.h +++ b/src/regexp/arm64/regexp-macro-assembler-arm64.h @@ -289,6 +289,7 @@ class RegExpMacroAssemblerARM64: public NativeRegExpMacroAssembler { #endif // V8_INTERPRETED_REGEXP -}} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ diff --git a/src/regexp/bytecodes-irregexp.h b/src/regexp/bytecodes-irregexp.h index 27691422f3..d6110a3cb5 100644 --- a/src/regexp/bytecodes-irregexp.h +++ b/src/regexp/bytecodes-irregexp.h @@ -76,6 +76,8 @@ BYTECODE_ITERATOR(DECLARE_BYTECODES) static const int BC_##name##_LENGTH = length; BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH) #undef DECLARE_BYTECODE_LENGTH -} } + +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_BYTECODES_IRREGEXP_H_ diff --git a/src/regexp/ia32/regexp-macro-assembler-ia32.h b/src/regexp/ia32/regexp-macro-assembler-ia32.h index 8ec0a9e543..06b9699d01 100644 --- a/src/regexp/ia32/regexp-macro-assembler-ia32.h +++ b/src/regexp/ia32/regexp-macro-assembler-ia32.h @@ -196,6 +196,7 @@ class RegExpMacroAssemblerIA32: public NativeRegExpMacroAssembler { }; #endif // V8_INTERPRETED_REGEXP -}} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ diff --git a/src/regexp/interpreter-irregexp.h b/src/regexp/interpreter-irregexp.h index d97d3b0f17..244af99091 100644 --- a/src/regexp/interpreter-irregexp.h +++ b/src/regexp/interpreter-irregexp.h @@ -23,6 +23,7 @@ class IrregexpInterpreter { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_INTERPRETER_IRREGEXP_H_ diff --git a/src/regexp/jsregexp-inl.h b/src/regexp/jsregexp-inl.h index 118f3dba9c..3eb7c3c170 100644 --- a/src/regexp/jsregexp-inl.h +++ b/src/regexp/jsregexp-inl.h @@ -78,6 +78,7 @@ int32_t* RegExpImpl::GlobalCache::LastSuccessfulMatch() { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_JSREGEXP_INL_H_ diff --git a/src/regexp/mips/regexp-macro-assembler-mips.h b/src/regexp/mips/regexp-macro-assembler-mips.h index 36fd4b1564..da59546a79 100644 --- a/src/regexp/mips/regexp-macro-assembler-mips.h +++ b/src/regexp/mips/regexp-macro-assembler-mips.h @@ -220,6 +220,7 @@ class RegExpMacroAssemblerMIPS: public NativeRegExpMacroAssembler { #endif // V8_INTERPRETED_REGEXP -}} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ diff --git a/src/regexp/mips64/regexp-macro-assembler-mips64.h b/src/regexp/mips64/regexp-macro-assembler-mips64.h index 84c85affbe..265bf773eb 100644 --- a/src/regexp/mips64/regexp-macro-assembler-mips64.h +++ b/src/regexp/mips64/regexp-macro-assembler-mips64.h @@ -262,6 +262,7 @@ class RegExpMacroAssemblerMIPS: public NativeRegExpMacroAssembler { #endif // V8_INTERPRETED_REGEXP -}} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ diff --git a/src/regexp/ppc/regexp-macro-assembler-ppc.h b/src/regexp/ppc/regexp-macro-assembler-ppc.h index 2dd339eb8d..04a0e5e416 100644 --- a/src/regexp/ppc/regexp-macro-assembler-ppc.h +++ b/src/regexp/ppc/regexp-macro-assembler-ppc.h @@ -208,7 +208,7 @@ const RegList kRegExpCalleeSaved = 1 << 25 | 1 << 26 | 1 << 27 | 1 << 28 | 1 << 29 | 1 << 30 | 1 << 31; #endif // V8_INTERPRETED_REGEXP -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_ diff --git a/src/regexp/regexp-macro-assembler-irregexp-inl.h b/src/regexp/regexp-macro-assembler-irregexp-inl.h index b86d28dfb9..6f176cd12c 100644 --- a/src/regexp/regexp-macro-assembler-irregexp-inl.h +++ b/src/regexp/regexp-macro-assembler-irregexp-inl.h @@ -56,6 +56,7 @@ void RegExpMacroAssemblerIrregexp::Emit32(uint32_t word) { #endif // V8_INTERPRETED_REGEXP -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ diff --git a/src/regexp/regexp-macro-assembler-irregexp.h b/src/regexp/regexp-macro-assembler-irregexp.h index 556d78d23d..bbfe5203d9 100644 --- a/src/regexp/regexp-macro-assembler-irregexp.h +++ b/src/regexp/regexp-macro-assembler-irregexp.h @@ -125,6 +125,7 @@ class RegExpMacroAssemblerIrregexp: public RegExpMacroAssembler { #endif // V8_INTERPRETED_REGEXP -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ diff --git a/src/regexp/regexp-macro-assembler-tracer.h b/src/regexp/regexp-macro-assembler-tracer.h index d4092ceaad..f9364195fa 100644 --- a/src/regexp/regexp-macro-assembler-tracer.h +++ b/src/regexp/regexp-macro-assembler-tracer.h @@ -81,6 +81,7 @@ class RegExpMacroAssemblerTracer: public RegExpMacroAssembler { RegExpMacroAssembler* assembler_; }; -}} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_TRACER_H_ diff --git a/src/regexp/regexp-macro-assembler.h b/src/regexp/regexp-macro-assembler.h index c3d94a6acf..ea97d5b29b 100644 --- a/src/regexp/regexp-macro-assembler.h +++ b/src/regexp/regexp-macro-assembler.h @@ -245,6 +245,7 @@ class NativeRegExpMacroAssembler: public RegExpMacroAssembler { #endif // V8_INTERPRETED_REGEXP -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_ diff --git a/src/regexp/regexp-stack.h b/src/regexp/regexp-stack.h index 9a6394e198..aea46cf673 100644 --- a/src/regexp/regexp-stack.h +++ b/src/regexp/regexp-stack.h @@ -124,6 +124,7 @@ class RegExpStack { DISALLOW_COPY_AND_ASSIGN(RegExpStack); }; -}} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_REGEXP_STACK_H_ diff --git a/src/regexp/x64/regexp-macro-assembler-x64.h b/src/regexp/x64/regexp-macro-assembler-x64.h index d690dc1974..dbee9e86b5 100644 --- a/src/regexp/x64/regexp-macro-assembler-x64.h +++ b/src/regexp/x64/regexp-macro-assembler-x64.h @@ -276,6 +276,7 @@ class RegExpMacroAssemblerX64: public NativeRegExpMacroAssembler { #endif // V8_INTERPRETED_REGEXP -}} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_X64_REGEXP_MACRO_ASSEMBLER_X64_H_ diff --git a/src/regexp/x87/regexp-macro-assembler-x87.h b/src/regexp/x87/regexp-macro-assembler-x87.h index f636ca08ce..0deea50357 100644 --- a/src/regexp/x87/regexp-macro-assembler-x87.h +++ b/src/regexp/x87/regexp-macro-assembler-x87.h @@ -196,6 +196,7 @@ class RegExpMacroAssemblerX87: public NativeRegExpMacroAssembler { }; #endif // V8_INTERPRETED_REGEXP -}} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REGEXP_X87_REGEXP_MACRO_ASSEMBLER_X87_H_ diff --git a/src/rewriter.h b/src/rewriter.h index b283a55ce0..4e76cd64c4 100644 --- a/src/rewriter.h +++ b/src/rewriter.h @@ -22,6 +22,7 @@ class Rewriter { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_REWRITER_H_ diff --git a/src/runtime-profiler.h b/src/runtime-profiler.h index eff443d926..0d57929d06 100644 --- a/src/runtime-profiler.h +++ b/src/runtime-profiler.h @@ -39,6 +39,7 @@ class RuntimeProfiler { bool any_ic_changed_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_RUNTIME_PROFILER_H_ diff --git a/src/runtime/runtime-atomics.cc b/src/runtime/runtime-atomics.cc index 84eab2ce11..636371c134 100644 --- a/src/runtime/runtime-atomics.cc +++ b/src/runtime/runtime-atomics.cc @@ -721,5 +721,5 @@ RUNTIME_FUNCTION(Runtime_AtomicsIsLockFree) { uint32_t usize = NumberToUint32(*size); return isolate->heap()->ToBoolean(AtomicIsLockFree(usize)); } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 diff --git a/src/runtime/runtime-futex.cc b/src/runtime/runtime-futex.cc index a96758d9f3..b2bad77c98 100644 --- a/src/runtime/runtime-futex.cc +++ b/src/runtime/runtime-futex.cc @@ -89,5 +89,5 @@ RUNTIME_FUNCTION(Runtime_AtomicsFutexNumWaitersForTesting) { return FutexEmulation::NumWaitersForTesting(isolate, array_buffer, addr); } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 diff --git a/src/runtime/runtime-utils.h b/src/runtime/runtime-utils.h index 4b072b1eb6..ded2c090c8 100644 --- a/src/runtime/runtime-utils.h +++ b/src/runtime/runtime-utils.h @@ -162,7 +162,7 @@ static inline ObjectPair MakePair(Object* x, Object* y) { } #endif -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_RUNTIME_RUNTIME_UTILS_H_ diff --git a/src/safepoint-table.h b/src/safepoint-table.h index a7719e036d..fbb0152eb3 100644 --- a/src/safepoint-table.h +++ b/src/safepoint-table.h @@ -230,6 +230,7 @@ class SafepointTableBuilder BASE_EMBEDDED { DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_SAFEPOINT_TABLE_H_ diff --git a/src/scanner-character-streams.h b/src/scanner-character-streams.h index a26f50a892..b15da52437 100644 --- a/src/scanner-character-streams.h +++ b/src/scanner-character-streams.h @@ -183,6 +183,7 @@ class ExternalTwoByteStringUtf16CharacterStream: public Utf16CharacterStream { size_t bookmark_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_SCANNER_CHARACTER_STREAMS_H_ diff --git a/src/scanner.h b/src/scanner.h index a86ed07ab9..c136a61432 100644 --- a/src/scanner.h +++ b/src/scanner.h @@ -763,6 +763,7 @@ class Scanner { bool has_multiline_comment_before_next_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_SCANNER_H_ diff --git a/src/scopeinfo.h b/src/scopeinfo.h index 70a17cd7d4..2afc667c30 100644 --- a/src/scopeinfo.h +++ b/src/scopeinfo.h @@ -169,6 +169,7 @@ class ModuleInfo: public FixedArray { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_SCOPEINFO_H_ diff --git a/src/scopes.h b/src/scopes.h index 61bf6338f7..3054f30e2b 100644 --- a/src/scopes.h +++ b/src/scopes.h @@ -821,6 +821,7 @@ class Scope: public ZoneObject { int class_declaration_group_start_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_SCOPES_H_ diff --git a/src/small-pointer-list.h b/src/small-pointer-list.h index 241689e5b2..9ece249064 100644 --- a/src/small-pointer-list.h +++ b/src/small-pointer-list.h @@ -170,6 +170,7 @@ class SmallPointerList { DISALLOW_COPY_AND_ASSIGN(SmallPointerList); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_SMALL_POINTER_LIST_H_ diff --git a/src/snapshot/natives.h b/src/snapshot/natives.h index c923a0f353..c1e2fcde62 100644 --- a/src/snapshot/natives.h +++ b/src/snapshot/natives.h @@ -62,6 +62,7 @@ void ReadNatives(); void DisposeNatives(); #endif -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_SNAPSHOT_NATIVES_H_ diff --git a/src/snapshot/serialize.h b/src/snapshot/serialize.h index 2863ede503..97cea9ac01 100644 --- a/src/snapshot/serialize.h +++ b/src/snapshot/serialize.h @@ -981,6 +981,7 @@ class SerializedCodeData : public SerializedData { static const int kChecksum2Offset = kChecksum1Offset + kInt32Size; static const int kHeaderSize = kChecksum2Offset + kInt32Size; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_SNAPSHOT_SERIALIZE_H_ diff --git a/src/snapshot/snapshot-source-sink.h b/src/snapshot/snapshot-source-sink.h index e0290c9415..af617ccee1 100644 --- a/src/snapshot/snapshot-source-sink.h +++ b/src/snapshot/snapshot-source-sink.h @@ -101,7 +101,7 @@ class SnapshotByteSink { List data_; }; -} // namespace v8::internal +} // namespace internal } // namespace v8 #endif // V8_SNAPSHOT_SNAPSHOT_SOURCE_SINK_H_ diff --git a/src/snapshot/snapshot.h b/src/snapshot/snapshot.h index 1379644fd8..f0b90bbacd 100644 --- a/src/snapshot/snapshot.h +++ b/src/snapshot/snapshot.h @@ -89,6 +89,7 @@ class Snapshot : public AllStatic { void SetSnapshotFromFile(StartupData* snapshot_blob); #endif -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_SNAPSHOT_SNAPSHOT_H_ diff --git a/src/splay-tree-inl.h b/src/splay-tree-inl.h index 6c7b4f404c..1adfdac6db 100644 --- a/src/splay-tree-inl.h +++ b/src/splay-tree-inl.h @@ -290,6 +290,7 @@ void SplayTree::ForEachNode(Callback* callback) { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_SPLAY_TREE_INL_H_ diff --git a/src/splay-tree.h b/src/splay-tree.h index 30e5d6787f..bee8429e39 100644 --- a/src/splay-tree.h +++ b/src/splay-tree.h @@ -198,6 +198,7 @@ class SplayTree { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_SPLAY_TREE_H_ diff --git a/src/string-builder.h b/src/string-builder.h index 554277dab1..76b6f5bf13 100644 --- a/src/string-builder.h +++ b/src/string-builder.h @@ -429,7 +429,7 @@ void IncrementalStringBuilder::Append(SrcChar c) { } if (current_index_ == part_length_) Extend(); } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_STRING_BUILDER_H_ diff --git a/src/string-search.h b/src/string-search.h index c0cc2cad4b..7db09934f5 100644 --- a/src/string-search.h +++ b/src/string-search.h @@ -563,6 +563,7 @@ int SearchString(Isolate* isolate, return search.Search(subject, start_index); } -}} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_STRING_SEARCH_H_ diff --git a/src/string-stream.h b/src/string-stream.h index 2f11b182d0..03ea0620ad 100644 --- a/src/string-stream.h +++ b/src/string-stream.h @@ -178,6 +178,7 @@ class StringStream final { DISALLOW_IMPLICIT_CONSTRUCTORS(StringStream); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_STRING_STREAM_H_ diff --git a/src/strings-storage.h b/src/strings-storage.h index 8fd9da7d3c..bc3020dd51 100644 --- a/src/strings-storage.h +++ b/src/strings-storage.h @@ -41,7 +41,7 @@ class StringsStorage { DISALLOW_COPY_AND_ASSIGN(StringsStorage); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_STRINGS_STORAGE_H_ diff --git a/src/strtod.h b/src/strtod.h index 737b5484c5..75e60b029e 100644 --- a/src/strtod.h +++ b/src/strtod.h @@ -14,6 +14,7 @@ namespace internal { // contain a dot or a sign. It must not start with '0', and must not be empty. double Strtod(Vector buffer, int exponent); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_STRTOD_H_ diff --git a/src/third_party/fdlibm/fdlibm.h b/src/third_party/fdlibm/fdlibm.h index c7bc09a1b8..151980972e 100644 --- a/src/third_party/fdlibm/fdlibm.h +++ b/src/third_party/fdlibm/fdlibm.h @@ -25,7 +25,7 @@ int rempio2(double x, double* y); struct MathConstants { static const double constants[66]; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_FDLIBM_H_ diff --git a/src/token.h b/src/token.h index db9092d21b..2443e84238 100644 --- a/src/token.h +++ b/src/token.h @@ -318,6 +318,7 @@ class Token { static const char token_type[NUM_TOKENS]; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_TOKEN_H_ diff --git a/src/transitions-inl.h b/src/transitions-inl.h index f31eff96ba..a5ec52f667 100644 --- a/src/transitions-inl.h +++ b/src/transitions-inl.h @@ -173,6 +173,7 @@ void TransitionArray::SetNumberOfTransitions(int number_of_transitions) { set(kTransitionLengthIndex, Smi::FromInt(number_of_transitions)); } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_TRANSITIONS_INL_H_ diff --git a/src/transitions.h b/src/transitions.h index b0aab9502e..b979c97df3 100644 --- a/src/transitions.h +++ b/src/transitions.h @@ -302,6 +302,7 @@ class TransitionArray: public FixedArray { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_TRANSITIONS_H_ diff --git a/src/type-feedback-vector-inl.h b/src/type-feedback-vector-inl.h index 4d1c345e68..2301f03a45 100644 --- a/src/type-feedback-vector-inl.h +++ b/src/type-feedback-vector-inl.h @@ -166,7 +166,7 @@ void FeedbackNexus::SetFeedbackExtra(Object* feedback_extra, Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ diff --git a/src/type-feedback-vector.h b/src/type-feedback-vector.h index 5c28fca55f..2d394b0ca4 100644 --- a/src/type-feedback-vector.h +++ b/src/type-feedback-vector.h @@ -497,7 +497,7 @@ class KeyedStoreICNexus : public FeedbackNexus { InlineCacheState StateFromFeedback() const override; Name* FindFirstName() const override; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_TRANSITIONS_H_ diff --git a/src/type-info.h b/src/type-info.h index 96cc39f007..c41720acae 100644 --- a/src/type-info.h +++ b/src/type-info.h @@ -155,6 +155,7 @@ class TypeFeedbackOracle: public ZoneObject { DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_TYPE_INFO_H_ diff --git a/src/types-inl.h b/src/types-inl.h index 699d642d59..9af4bccd2e 100644 --- a/src/types-inl.h +++ b/src/types-inl.h @@ -481,6 +481,7 @@ void HeapTypeConfig::range_set_double(i::Handle range, i::Handle number = isolate->factory()->NewNumber(value); range->set(index + 2, *number); } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_TYPES_INL_H_ diff --git a/src/types.h b/src/types.h index 3acd5cc842..f78755e09e 100644 --- a/src/types.h +++ b/src/types.h @@ -1186,6 +1186,7 @@ struct BoundsImpl { typedef BoundsImpl Bounds; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_TYPES_H_ diff --git a/src/typing-asm.cc b/src/typing-asm.cc index f7688964a5..501af026dc 100644 --- a/src/typing-asm.cc +++ b/src/typing-asm.cc @@ -1072,5 +1072,5 @@ void AsmTyper::VisitWithExpectation(Expression* expr, Type* expected_type, } expected_type_ = save; } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 diff --git a/src/typing-asm.h b/src/typing-asm.h index 74c28fb3cf..26ce65a6a8 100644 --- a/src/typing-asm.h +++ b/src/typing-asm.h @@ -89,7 +89,7 @@ class AsmTyper : public AstVisitor { DISALLOW_COPY_AND_ASSIGN(AsmTyper); }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_TYPING_ASM_H_ diff --git a/src/typing-reset.cc b/src/typing-reset.cc index af7641b485..90f152c132 100644 --- a/src/typing-reset.cc +++ b/src/typing-reset.cc @@ -22,5 +22,5 @@ TypingReseter::TypingReseter(Isolate* isolate, Zone* zone, void TypingReseter::VisitExpression(Expression* expression) { expression->set_bounds(Bounds::Unbounded()); } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 diff --git a/src/typing-reset.h b/src/typing-reset.h index b809eb2161..4e589a37d3 100644 --- a/src/typing-reset.h +++ b/src/typing-reset.h @@ -20,7 +20,7 @@ class TypingReseter : public AstExpressionVisitor { protected: void VisitExpression(Expression* expression) override; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_TYPING_RESET_H_ diff --git a/src/typing.h b/src/typing.h index 8b3e97b67c..c8d9af82dc 100644 --- a/src/typing.h +++ b/src/typing.h @@ -76,6 +76,7 @@ class AstTyper: public AstVisitor { DISALLOW_COPY_AND_ASSIGN(AstTyper); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_TYPING_H_ diff --git a/src/unique.h b/src/unique.h index 8805218b1f..3497735496 100644 --- a/src/unique.h +++ b/src/unique.h @@ -355,6 +355,7 @@ class UniqueSet final : public ZoneObject { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_UNIQUE_H_ diff --git a/src/v8.h b/src/v8.h index f5b3b84735..6016ef1419 100644 --- a/src/v8.h +++ b/src/v8.h @@ -41,6 +41,7 @@ class V8 : public AllStatic { static v8::Platform* platform_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_V8_H_ diff --git a/src/v8memory.h b/src/v8memory.h index 615ec4fe87..b1ae939f84 100644 --- a/src/v8memory.h +++ b/src/v8memory.h @@ -66,6 +66,7 @@ class Memory { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_MEMORY_H_ diff --git a/src/v8threads.h b/src/v8threads.h index 3e189d5cb4..db0ed070fa 100644 --- a/src/v8threads.h +++ b/src/v8threads.h @@ -118,6 +118,7 @@ class ThreadManager { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_V8THREADS_H_ diff --git a/src/variables.h b/src/variables.h index dcd2e6af6e..1c6290dff4 100644 --- a/src/variables.h +++ b/src/variables.h @@ -193,6 +193,7 @@ class ClassVariable : public Variable { // checks for functions too. int declaration_group_start_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_VARIABLES_H_ diff --git a/src/vector.h b/src/vector.h index 4f3128b918..e4637c91c9 100644 --- a/src/vector.h +++ b/src/vector.h @@ -202,6 +202,7 @@ inline Vector MutableCStrVector(char* data, int max) { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_VECTOR_H_ diff --git a/src/version.h b/src/version.h index 2596beeb8a..3395d7f4fe 100644 --- a/src/version.h +++ b/src/version.h @@ -47,6 +47,7 @@ class Version { bool candidate, const char* soname); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_VERSION_H_ diff --git a/src/vm-state-inl.h b/src/vm-state-inl.h index ac3941ea84..d60548d27d 100644 --- a/src/vm-state-inl.h +++ b/src/vm-state-inl.h @@ -78,6 +78,7 @@ Address ExternalCallbackScope::scope_address() { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_VM_STATE_INL_H_ diff --git a/src/vm-state.h b/src/vm-state.h index 9838b8732b..81a90e3c08 100644 --- a/src/vm-state.h +++ b/src/vm-state.h @@ -46,7 +46,8 @@ class ExternalCallbackScope BASE_EMBEDDED { #endif }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_VM_STATE_H_ diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h index c66e86df3f..17376581b5 100644 --- a/src/x64/assembler-x64-inl.h +++ b/src/x64/assembler-x64-inl.h @@ -629,6 +629,7 @@ void Operand::set_disp64(int64_t disp) { *p = disp; len_ += sizeof(disp); } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X64_ASSEMBLER_X64_INL_H_ diff --git a/src/x64/assembler-x64.h b/src/x64/assembler-x64.h index 47e4d2bdda..956e142c9e 100644 --- a/src/x64/assembler-x64.h +++ b/src/x64/assembler-x64.h @@ -2148,6 +2148,7 @@ class EnsureSpace BASE_EMBEDDED { #endif }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X64_ASSEMBLER_X64_H_ diff --git a/src/x64/code-stubs-x64.h b/src/x64/code-stubs-x64.h index 1344400d48..4e3715b0e1 100644 --- a/src/x64/code-stubs-x64.h +++ b/src/x64/code-stubs-x64.h @@ -360,6 +360,7 @@ class RecordWriteStub: public PlatformCodeStub { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X64_CODE_STUBS_X64_H_ diff --git a/src/x64/codegen-x64.h b/src/x64/codegen-x64.h index 728d04048e..09af38ddea 100644 --- a/src/x64/codegen-x64.h +++ b/src/x64/codegen-x64.h @@ -108,6 +108,7 @@ class StackArgumentsAccessor BASE_EMBEDDED { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X64_CODEGEN_X64_H_ diff --git a/src/x64/frames-x64.h b/src/x64/frames-x64.h index 1d9cf1ec13..d213ecb7dc 100644 --- a/src/x64/frames-x64.h +++ b/src/x64/frames-x64.h @@ -71,6 +71,7 @@ class JavaScriptFrameConstants : public AllStatic { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X64_FRAMES_X64_H_ diff --git a/src/x64/lithium-codegen-x64.h b/src/x64/lithium-codegen-x64.h index e05b310dec..d5ca006dac 100644 --- a/src/x64/lithium-codegen-x64.h +++ b/src/x64/lithium-codegen-x64.h @@ -387,6 +387,7 @@ class LDeferredCode: public ZoneObject { int instruction_index_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ diff --git a/src/x64/lithium-gap-resolver-x64.h b/src/x64/lithium-gap-resolver-x64.h index 7882da56e0..db1a4ac2a9 100644 --- a/src/x64/lithium-gap-resolver-x64.h +++ b/src/x64/lithium-gap-resolver-x64.h @@ -44,6 +44,7 @@ class LGapResolver final BASE_EMBEDDED { ZoneList moves_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X64_LITHIUM_GAP_RESOLVER_X64_H_ diff --git a/src/x64/lithium-x64.h b/src/x64/lithium-x64.h index 6129516515..42d5a54366 100644 --- a/src/x64/lithium-x64.h +++ b/src/x64/lithium-x64.h @@ -2864,6 +2864,7 @@ class LChunkBuilder final : public LChunkBuilderBase { #undef DECLARE_HYDROGEN_ACCESSOR #undef DECLARE_CONCRETE_INSTRUCTION -} } // namespace v8::int +} // namespace internal +} // namespace v8 #endif // V8_X64_LITHIUM_X64_H_ diff --git a/src/x64/macro-assembler-x64.h b/src/x64/macro-assembler-x64.h index 1fca0e3594..75d48858c4 100644 --- a/src/x64/macro-assembler-x64.h +++ b/src/x64/macro-assembler-x64.h @@ -1640,6 +1640,7 @@ extern void LogGeneratedCodeCoverage(const char* file_line); #define ACCESS_MASM(masm) masm-> #endif -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ diff --git a/src/x64/simulator-x64.h b/src/x64/simulator-x64.h index 35cbdc7888..99649ec018 100644 --- a/src/x64/simulator-x64.h +++ b/src/x64/simulator-x64.h @@ -41,6 +41,7 @@ class SimulatorStack : public v8::internal::AllStatic { static inline void UnregisterCTryCatch() { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X64_SIMULATOR_X64_H_ diff --git a/src/x87/assembler-x87-inl.h b/src/x87/assembler-x87-inl.h index 4543047080..ef8876c15a 100644 --- a/src/x87/assembler-x87-inl.h +++ b/src/x87/assembler-x87-inl.h @@ -554,6 +554,7 @@ Operand::Operand(Immediate imm) { set_modrm(0, ebp); set_dispr(imm.x_, imm.rmode_); } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X87_ASSEMBLER_X87_INL_H_ diff --git a/src/x87/assembler-x87.h b/src/x87/assembler-x87.h index 1f454bcd90..2b5c7d2528 100644 --- a/src/x87/assembler-x87.h +++ b/src/x87/assembler-x87.h @@ -1097,6 +1097,7 @@ class EnsureSpace BASE_EMBEDDED { #endif }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X87_ASSEMBLER_X87_H_ diff --git a/src/x87/code-stubs-x87.h b/src/x87/code-stubs-x87.h index 25fc4d7718..41c77f5df7 100644 --- a/src/x87/code-stubs-x87.h +++ b/src/x87/code-stubs-x87.h @@ -374,6 +374,7 @@ class RecordWriteStub: public PlatformCodeStub { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X87_CODE_STUBS_X87_H_ diff --git a/src/x87/codegen-x87.h b/src/x87/codegen-x87.h index c23e8668da..e786b84f04 100644 --- a/src/x87/codegen-x87.h +++ b/src/x87/codegen-x87.h @@ -28,6 +28,7 @@ class StringCharLoadGenerator : public AllStatic { DISALLOW_COPY_AND_ASSIGN(StringCharLoadGenerator); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X87_CODEGEN_X87_H_ diff --git a/src/x87/frames-x87.h b/src/x87/frames-x87.h index 89e6ebda8c..1b900784cc 100644 --- a/src/x87/frames-x87.h +++ b/src/x87/frames-x87.h @@ -80,6 +80,7 @@ class JavaScriptFrameConstants : public AllStatic { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X87_FRAMES_X87_H_ diff --git a/src/x87/lithium-codegen-x87.h b/src/x87/lithium-codegen-x87.h index 2da1a31461..08075e3d4c 100644 --- a/src/x87/lithium-codegen-x87.h +++ b/src/x87/lithium-codegen-x87.h @@ -499,6 +499,7 @@ class LDeferredCode : public ZoneObject { LCodeGen::X87Stack x87_stack_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_ diff --git a/src/x87/lithium-gap-resolver-x87.h b/src/x87/lithium-gap-resolver-x87.h index cdd26b8776..964f3b98a2 100644 --- a/src/x87/lithium-gap-resolver-x87.h +++ b/src/x87/lithium-gap-resolver-x87.h @@ -80,6 +80,7 @@ class LGapResolver final BASE_EMBEDDED { int spilled_register_; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X87_LITHIUM_GAP_RESOLVER_X87_H_ diff --git a/src/x87/lithium-x87.h b/src/x87/lithium-x87.h index cc1a43fbaf..2f392f8d58 100644 --- a/src/x87/lithium-x87.h +++ b/src/x87/lithium-x87.h @@ -2897,6 +2897,7 @@ class LChunkBuilder final : public LChunkBuilderBase { #undef DECLARE_HYDROGEN_ACCESSOR #undef DECLARE_CONCRETE_INSTRUCTION -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X87_LITHIUM_X87_H_ diff --git a/src/x87/macro-assembler-x87.h b/src/x87/macro-assembler-x87.h index f1a8f82fe8..4f165c9415 100644 --- a/src/x87/macro-assembler-x87.h +++ b/src/x87/macro-assembler-x87.h @@ -1083,6 +1083,7 @@ extern void LogGeneratedCodeCoverage(const char* file_line); #endif -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ diff --git a/src/x87/simulator-x87.h b/src/x87/simulator-x87.h index a780e839d2..3071842f20 100644 --- a/src/x87/simulator-x87.h +++ b/src/x87/simulator-x87.h @@ -43,6 +43,7 @@ class SimulatorStack : public v8::internal::AllStatic { static inline void UnregisterCTryCatch() { } }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_X87_SIMULATOR_X87_H_ diff --git a/src/zone-allocator.h b/src/zone-allocator.h index 30abe21804..f46151ebc3 100644 --- a/src/zone-allocator.h +++ b/src/zone-allocator.h @@ -66,6 +66,7 @@ class zone_allocator { typedef zone_allocator ZoneBoolAllocator; typedef zone_allocator ZoneIntAllocator; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_ZONE_ALLOCATOR_H_ diff --git a/test/cctest/compiler/c-signature.h b/test/cctest/compiler/c-signature.h index 8eaf6325f2..6a17a29856 100644 --- a/test/cctest/compiler/c-signature.h +++ b/test/cctest/compiler/c-signature.h @@ -159,8 +159,8 @@ typedef CSignature2 CSignature_u_uu; typedef CSignature2 CSignature_f_ff; typedef CSignature2 CSignature_d_dd; typedef CSignature2 CSignature_o_oo; -} -} -} // namespace v8::internal::compiler +} // namespace compiler +} // namespace internal +} // namespace v8 #endif // V8_COMPILER_C_SIGNATURE_H_ diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h index c2b25e5547..48f0b942f6 100644 --- a/test/cctest/compiler/function-tester.h +++ b/test/cctest/compiler/function-tester.h @@ -212,8 +212,8 @@ class FunctionTester : public InitializedHandleScope { return function; } }; -} -} -} // namespace v8::internal::compiler +} // namespace compiler +} // namespace internal +} // namespace v8 #endif // V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ diff --git a/test/cctest/compiler/test-loop-assignment-analysis.cc b/test/cctest/compiler/test-loop-assignment-analysis.cc index b59f181f5e..d155ae8c72 100644 --- a/test/cctest/compiler/test-loop-assignment-analysis.cc +++ b/test/cctest/compiler/test-loop-assignment-analysis.cc @@ -59,7 +59,7 @@ struct TestHelper : public HandleAndZoneScope { } } }; -} +} // namespace TEST(SimpleLoop1) { diff --git a/test/cctest/expression-type-collector.cc b/test/cctest/expression-type-collector.cc index 9ab85edf82..d3fa3e8973 100644 --- a/test/cctest/expression-type-collector.cc +++ b/test/cctest/expression-type-collector.cc @@ -24,7 +24,8 @@ struct { AST_NODE_LIST(DECLARE_VISIT) #undef DECLARE_VISIT }; -} + +} // namespace ExpressionTypeCollector::ExpressionTypeCollector( @@ -57,5 +58,6 @@ void ExpressionTypeCollector::VisitExpression(Expression* expression) { } result_->push_back(e); } -} -} + +} // namespace internal +} // namespace v8 diff --git a/test/cctest/expression-type-collector.h b/test/cctest/expression-type-collector.h index 2175f5a045..e9ab36258e 100644 --- a/test/cctest/expression-type-collector.h +++ b/test/cctest/expression-type-collector.h @@ -33,7 +33,7 @@ class ExpressionTypeCollector : public AstExpressionVisitor { private: ZoneVector* result_; }; -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // V8_EXPRESSION_TYPE_COLLECTOR_H_ diff --git a/test/cctest/gay-fixed.h b/test/cctest/gay-fixed.h index c14c11f050..5baa6c2b89 100644 --- a/test/cctest/gay-fixed.h +++ b/test/cctest/gay-fixed.h @@ -44,6 +44,7 @@ struct PrecomputedFixed { // Gay's dtoa in mode "fixed". Vector PrecomputedFixedRepresentations(); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // GAY_FIXED_H_ diff --git a/test/cctest/gay-precision.h b/test/cctest/gay-precision.h index 08aaa1d3da..0ba3462aa6 100644 --- a/test/cctest/gay-precision.h +++ b/test/cctest/gay-precision.h @@ -44,6 +44,7 @@ struct PrecomputedPrecision { // Gay's dtoa in mode "precision". Vector PrecomputedPrecisionRepresentations(); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // GAY_PRECISION_H_ diff --git a/test/cctest/gay-shortest.h b/test/cctest/gay-shortest.h index 4efe76ba0b..b76476ea52 100644 --- a/test/cctest/gay-shortest.h +++ b/test/cctest/gay-shortest.h @@ -41,6 +41,7 @@ struct PrecomputedShortest { Vector PrecomputedShortestRepresentations(); -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif // GAY_SHORTEST_H_ diff --git a/test/cctest/heap-tester.h b/test/cctest/heap-tester.h index fc2e254393..f8cdded3da 100644 --- a/test/cctest/heap-tester.h +++ b/test/cctest/heap-tester.h @@ -53,7 +53,8 @@ class HeapTester { /* test-api.cc */ static void ResetWeakHandle(bool global_gc); }; -} -} + +} // namespace internal +} // namespace v8 #endif // HEAP_TESTER_H_ diff --git a/test/cctest/interpreter/test-bytecode-generator.cc b/test/cctest/interpreter/test-bytecode-generator.cc index e0668d5b49..3ffe0d68bb 100644 --- a/test/cctest/interpreter/test-bytecode-generator.cc +++ b/test/cctest/interpreter/test-bytecode-generator.cc @@ -905,4 +905,4 @@ TEST(IfConditions) { } // namespace interpreter } // namespace internal -} // namespance v8 +} // namespace v8 diff --git a/test/cctest/print-extension.h b/test/cctest/print-extension.h index b0d2b1ca19..c2961d0dd1 100644 --- a/test/cctest/print-extension.h +++ b/test/cctest/print-extension.h @@ -42,6 +42,7 @@ class PrintExtension : public v8::Extension { static void Print(const v8::FunctionCallbackInfo& args); }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif diff --git a/test/cctest/profiler-extension.h b/test/cctest/profiler-extension.h index 6f816b33fb..093a76e78d 100644 --- a/test/cctest/profiler-extension.h +++ b/test/cctest/profiler-extension.h @@ -49,6 +49,7 @@ class ProfilerExtension : public v8::Extension { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif diff --git a/test/cctest/test-api-interceptors.cc b/test/cctest/test-api-interceptors.cc index c0a8a287ae..0f94e59bc9 100644 --- a/test/cctest/test-api-interceptors.cc +++ b/test/cctest/test-api-interceptors.cc @@ -3251,7 +3251,8 @@ void DatabaseSetter(Local name, Local value, db->Set(context, name, value).FromJust(); info.GetReturnValue().Set(value); } -} + +} // namespace THREADED_TEST(NonMaskingInterceptorGlobalEvalRegression) { diff --git a/test/cctest/test-array-list.cc b/test/cctest/test-array-list.cc index 2852043b2f..abcbf110e7 100644 --- a/test/cctest/test-array-list.cc +++ b/test/cctest/test-array-list.cc @@ -38,4 +38,5 @@ TEST(ArrayList) { CHECK_EQ(100, Smi::cast(array->Get(0))->value()); CHECK_EQ(200, Smi::cast(array->Get(1))->value()); } -} + +} // namespace diff --git a/test/cctest/test-asm-validator.cc b/test/cctest/test-asm-validator.cc index 0cc71ec2f5..7b45a673f3 100644 --- a/test/cctest/test-asm-validator.cc +++ b/test/cctest/test-asm-validator.cc @@ -74,7 +74,8 @@ std::string Validate(Zone* zone, const char* source, return typer.error_message(); } } -} + +} // namespace TEST(ValidateMinimum) { @@ -439,7 +440,8 @@ void CheckStdlibShortcuts(Zone* zone, ZoneVector& types, CHECK_VAR_NEW_SHORTCUT(f32, Bounds(cache.kFloat32Array)); CHECK_VAR_NEW_SHORTCUT(f64, Bounds(cache.kFloat64Array)); } -} + +} // namespace #define CHECK_FUNC_TYPES_BEGIN(func) \ diff --git a/test/cctest/test-ast-expression-visitor.cc b/test/cctest/test-ast-expression-visitor.cc index 8bf4c600dc..5cef440dac 100644 --- a/test/cctest/test-ast-expression-visitor.cc +++ b/test/cctest/test-ast-expression-visitor.cc @@ -45,7 +45,8 @@ static void CollectTypes(HandleAndZoneScope* handles, const char* source, info.scope()->declarations()->at(0)->AsFunctionDeclaration()->fun(), dst) .Run(); } -} + +} // namespace TEST(VisitExpressions) { diff --git a/test/cctest/test-dictionary.cc b/test/cctest/test-dictionary.cc index dc8a8b5bed..b732094815 100644 --- a/test/cctest/test-dictionary.cc +++ b/test/cctest/test-dictionary.cc @@ -239,4 +239,4 @@ TEST(ObjectHashTableCausesGC) { } #endif -} +} // namespace diff --git a/test/cctest/test-feedback-vector.cc b/test/cctest/test-feedback-vector.cc index d455ca0f56..efd0819132 100644 --- a/test/cctest/test-feedback-vector.cc +++ b/test/cctest/test-feedback-vector.cc @@ -559,4 +559,5 @@ TEST(VectorStoreICBasic) { StoreICNexus nexus(feedback_vector, slot); CHECK_EQ(MONOMORPHIC, nexus.StateFromFeedback()); } -} + +} // namespace diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc index 55e553868b..909aba0d74 100644 --- a/test/cctest/test-heap-profiler.cc +++ b/test/cctest/test-heap-profiler.cc @@ -1351,7 +1351,8 @@ class TestActivityControl : public v8::ActivityControl { int total_; int abort_count_; }; -} + +} // namespace TEST(TakeHeapSnapshotAborting) { @@ -1444,7 +1445,8 @@ class TestRetainedObjectInfo : public v8::RetainedObjectInfo { i::List TestRetainedObjectInfo::instances; -} + +} // namespace static const v8::HeapGraphNode* GetNode(const v8::HeapGraphNode* parent, diff --git a/test/cctest/test-identity-map.cc b/test/cctest/test-identity-map.cc index ee64c4dd40..8523f25336 100644 --- a/test/cctest/test-identity-map.cc +++ b/test/cctest/test-identity-map.cc @@ -335,5 +335,6 @@ TEST(ExplicitGC) { t.CheckGet(num_keys[i], &num_keys[i]); } } -} -} + +} // namespace internal +} // namespace v8 diff --git a/test/cctest/test-microtask-delivery.cc b/test/cctest/test-microtask-delivery.cc index 5befdfba9f..415be3caf2 100644 --- a/test/cctest/test-microtask-delivery.cc +++ b/test/cctest/test-microtask-delivery.cc @@ -51,7 +51,7 @@ class HarmonyIsolate { private: v8::Isolate* isolate_; }; -} +} // namespace TEST(MicrotaskDeliverySimple) { diff --git a/test/cctest/test-typing-reset.cc b/test/cctest/test-typing-reset.cc index 426f411fff..1a5fc829d6 100644 --- a/test/cctest/test-typing-reset.cc +++ b/test/cctest/test-typing-reset.cc @@ -222,7 +222,8 @@ void CheckAllSame(ZoneVector& types, } CHECK_TYPES_END } -} + +} // namespace TEST(ResetTypingInfo) { diff --git a/test/cctest/test-unscopables-hidden-prototype.cc b/test/cctest/test-unscopables-hidden-prototype.cc index acfc4266ae..50db316537 100644 --- a/test/cctest/test-unscopables-hidden-prototype.cc +++ b/test/cctest/test-unscopables-hidden-prototype.cc @@ -120,4 +120,5 @@ TEST(Unscopables) { ->Int32Value(current_context) .FromJust()); } -} + +} // namespace diff --git a/test/cctest/trace-extension.h b/test/cctest/trace-extension.h index 792e437a89..53e178b3ba 100644 --- a/test/cctest/trace-extension.h +++ b/test/cctest/trace-extension.h @@ -52,6 +52,7 @@ class TraceExtension : public v8::Extension { static const char* kSource; }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif diff --git a/test/cctest/types-fuzz.h b/test/cctest/types-fuzz.h index 7aa8d854ee..5c43e8e694 100644 --- a/test/cctest/types-fuzz.h +++ b/test/cctest/types-fuzz.h @@ -340,6 +340,7 @@ class Types { }; -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif diff --git a/test/unittests/compiler/node-matchers-unittest.cc b/test/unittests/compiler/node-matchers-unittest.cc index 57174cc56b..f0cc407445 100644 --- a/test/unittests/compiler/node-matchers-unittest.cc +++ b/test/unittests/compiler/node-matchers-unittest.cc @@ -38,7 +38,8 @@ void CheckBaseWithIndexAndDisplacement(Matcher* matcher, Node* index, int scale, EXPECT_EQ(base, matcher->base()); EXPECT_EQ(displacement, matcher->displacement()); } -}; + +} // namespace TEST_F(NodeMatcherTest, ScaledWithOffset32Matcher) { diff --git a/test/unittests/compiler/register-allocator-unittest.cc b/test/unittests/compiler/register-allocator-unittest.cc index 23a118b6ad..75942b6854 100644 --- a/test/unittests/compiler/register-allocator-unittest.cc +++ b/test/unittests/compiler/register-allocator-unittest.cc @@ -75,7 +75,8 @@ bool IsParallelMovePresent(int instr_index, Instruction::GapPosition gap_pos, } return found_match; } -} + +} // namespace class RegisterAllocatorTest : public InstructionSequenceTest { @@ -722,7 +723,8 @@ class SlotConstraintTest : public RegisterAllocatorTest, private: typedef ::testing::WithParamInterface<::testing::tuple> B; }; -} + +} // namespace #if GTEST_HAS_COMBINE diff --git a/test/unittests/runtime/runtime-interpreter-unittest.cc b/test/unittests/runtime/runtime-interpreter-unittest.cc index 0c3d414798..97b7992af9 100644 --- a/test/unittests/runtime/runtime-interpreter-unittest.cc +++ b/test/unittests/runtime/runtime-interpreter-unittest.cc @@ -167,6 +167,6 @@ TEST_F(RuntimeInterpreterTest, ToBoolean) { } -} // Namespace interpreter +} // namespace interpreter } // namespace internal } // namespace v8 diff --git a/tools/presubmit.py b/tools/presubmit.py index 338c708548..5029450ee7 100755 --- a/tools/presubmit.py +++ b/tools/presubmit.py @@ -50,7 +50,6 @@ from subprocess import PIPE # build/include_what_you_use: Started giving false positives for variables # named "string" and "map" assuming that you needed to include STL headers. # TODO(bmeurer): Fix and re-enable readability/check -# TODO(mstarzinger): Fix and re-enable readability/namespace LINT_RULES = """ -build/header_guard @@ -59,7 +58,6 @@ LINT_RULES = """ -build/namespaces -readability/check -readability/inheritance --readability/namespace -readability/nolint +readability/streams -runtime/references diff --git a/tools/shell-utils.h b/tools/shell-utils.h index 31bd8ea8f6..bfd729d9b5 100644 --- a/tools/shell-utils.h +++ b/tools/shell-utils.h @@ -66,4 +66,5 @@ const byte* ReadFileAndRepeat(const char* name, int* size, int repeat) { return chars; } -} } // namespace v8::internal +} // namespace internal +} // namespace v8