| Index: src/a64/debugger-a64.h
|
| diff --git a/src/extensions/gc-extension.h b/src/a64/debugger-a64.h
|
| similarity index 75%
|
| copy from src/extensions/gc-extension.h
|
| copy to src/a64/debugger-a64.h
|
| index e412b92a4d997aad87160ddd789b85419bdf3037..50480cc268a49f53fafc1650e79d73de573524ed 100644
|
| --- a/src/extensions/gc-extension.h
|
| +++ b/src/a64/debugger-a64.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2010 the V8 project authors. All rights reserved.
|
| +// Copyright 2013 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -25,23 +25,32 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -#ifndef V8_EXTENSIONS_GC_EXTENSION_H_
|
| -#define V8_EXTENSIONS_GC_EXTENSION_H_
|
| +#ifndef V8_A64_DEBUGGER_A64_H_
|
| +#define V8_A64_DEBUGGER_A64_H_
|
|
|
| -#include "v8.h"
|
| +#if defined(USE_SIMULATOR)
|
| +
|
| +#include "globals.h"
|
| +#include "utils.h"
|
| +#include "a64/constants-a64.h"
|
| +#include "a64/simulator-a64.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -class GCExtension : public v8::Extension {
|
| +
|
| +class Debugger : public Simulator {
|
| public:
|
| - explicit GCExtension(const char* source) : v8::Extension("v8/gc", source) {}
|
| - virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction(
|
| - v8::Handle<v8::String> name);
|
| - static void GC(const v8::FunctionCallbackInfo<v8::Value>& args);
|
| - static void Register();
|
| + Debugger(Decoder* decoder, FILE* stream = stdout)
|
| + : Simulator(decoder, NULL, stream) {}
|
| +
|
| + // Functions overloading.
|
| + void VisitException(Instruction* instr);
|
| };
|
|
|
| +
|
| } } // namespace v8::internal
|
|
|
| -#endif // V8_EXTENSIONS_GC_EXTENSION_H_
|
| +#endif // USE_SIMULATOR
|
| +
|
| +#endif // V8_A64_DEBUGGER_A64_H_
|
|
|