Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1293)

Unified Diff: src/a64/debugger-a64.h

Issue 144963003: A64: add missing files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/a64/debug-a64.cc ('k') | src/a64/debugger-a64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « src/a64/debug-a64.cc ('k') | src/a64/debugger-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698