// Copyright 2006-2008 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/base/logging.h" #include <cctype> #include <cstdarg> #include <cstdio> #include <cstdlib> #include "src/base/debug/stack_trace.h" #include "src/base/platform/platform.h" namespace v8 { base // namespace base } // namespace v8 namespace { // FailureMessage is a stack allocated object which has a special marker field // at the start and at the end. This makes it possible to retrieve the embedded // message from the stack. // class FailureMessage { … }; } // namespace #ifdef DEBUG void V8_Fatal(const char* file, int line, const char* format, ...) { … } void V8_Dcheck(const char* file, int line, const char* message) { … }