62f929ff4c
New code should use nullptr instead of NULL. This patch updates existing use of NULL to nullptr where applicable, making the code base more consistent. BUG=v8:6928,v8:6921 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng;master.tryserver.v8:v8_linux_noi18n_rel_ng Change-Id: I4687f5b96fcfd88b41fa970a2b937b4f6538777c Reviewed-on: https://chromium-review.googlesource.com/718338 Commit-Queue: Mathias Bynens <mathias@chromium.org> Reviewed-by: Andreas Haas <ahaas@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Ulan Degenbaev <ulan@chromium.org> Reviewed-by: Toon Verwaest <verwaest@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#48557}
27 lines
789 B
C++
27 lines
789 B
C++
// 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.
|
|
|
|
#ifndef V8_DISASSEMBLER_H_
|
|
#define V8_DISASSEMBLER_H_
|
|
|
|
#include "src/allocation.h"
|
|
|
|
namespace v8 {
|
|
namespace internal {
|
|
|
|
class Disassembler : public AllStatic {
|
|
public:
|
|
// Decode instructions in the the interval [begin, end) and print the
|
|
// code into os. Returns the number of bytes disassembled or 1 if no
|
|
// instruction could be decoded.
|
|
// the code object is used for name resolution and may be null.
|
|
static int Decode(Isolate* isolate, std::ostream* os, byte* begin, byte* end,
|
|
Code* code = nullptr);
|
|
};
|
|
|
|
} // namespace internal
|
|
} // namespace v8
|
|
|
|
#endif // V8_DISASSEMBLER_H_
|