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

Unified Diff: src/codegen.h

Issue 2808030: [Isolates] Move InlineRuntimeFunctionTable from runtime.h to codegen.h.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 10 years, 6 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 | « no previous file | src/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen.h
===================================================================
--- src/codegen.h (revision 4966)
+++ src/codegen.h (working copy)
@@ -80,6 +80,39 @@
enum UncatchableExceptionType { OUT_OF_MEMORY, TERMINATION };
+namespace v8 {
+namespace internal {
+
+class InlineRuntimeFunctionsTable {
+ public:
+ enum {
+#define LUT_ENTRY(name, argc, resize) __##name,
+ INLINE_RUNTIME_FUNCTION_LIST(LUT_ENTRY)
+ kInlineRuntimeFunctionsTableSize
+#undef LUT_ENTRY
+ };
+
+ struct Entry {
+ void (CodeGenerator::*method)(ZoneList<Expression*>*);
+ const char* name;
+ int nargs;
+ };
+
+ Entry* entries() { return entries_; }
+
+ private:
+ InlineRuntimeFunctionsTable();
+
+ Entry entries_[kInlineRuntimeFunctionsTableSize];
+
+ friend class Isolate;
+
+ DISALLOW_COPY_AND_ASSIGN(InlineRuntimeFunctionsTable);
+};
+
+} // namespace internal
+} // namespace v8
+
#if V8_TARGET_ARCH_IA32
#include "ia32/codegen-ia32.h"
#elif V8_TARGET_ARCH_X64
@@ -97,7 +130,6 @@
namespace v8 {
namespace internal {
-
// Support for "structured" code comments.
#ifdef DEBUG
« no previous file with comments | « no previous file | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698