43538e57a4
R=jkummerow@chromium.org Review URL: https://codereview.chromium.org/596783002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24161 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
21 lines
585 B
C++
21 lines
585 B
C++
// Copyright 2014 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/bailout-reason.h"
|
|
#include "src/base/logging.h"
|
|
|
|
namespace v8 {
|
|
namespace internal {
|
|
|
|
const char* GetBailoutReason(BailoutReason reason) {
|
|
DCHECK(reason < kLastErrorMessage);
|
|
#define ERROR_MESSAGES_TEXTS(C, T) T,
|
|
static const char* error_messages_[] = {
|
|
ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)};
|
|
#undef ERROR_MESSAGES_TEXTS
|
|
return error_messages_[reason];
|
|
}
|
|
}
|
|
} // namespace v8::internal
|