diff src/TEMPLATE-INST/Array-jit.cc @ 14903:54ea692b8ab5

Reworking JIT implementation src/TEMPLATE-INST/Array-jit.cc: New file. src/TEMPLATE-INST/module.mk: Add Array-jit.cc. src/ov-base.h (octave_base_value::grab, octave_base_value::release): New functions. src/pt-jit.cc: Rewrite. src/pt-jit.h: Rewrite.
author Max Brister <max@2bass.com>
date Sat, 12 May 2012 19:24:32 -0600
parents
children 457eb974310b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/TEMPLATE-INST/Array-jit.cc	Sat May 12 19:24:32 2012 -0600
@@ -0,0 +1,34 @@
+/*
+
+Copyright (C) 2012 Max Brister <max@2bass.com>
+
+This file is part of Octave.
+
+Octave is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 3 of the License, or (at your
+option) any later version.
+
+Octave is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with Octave; see the file COPYING.  If not, see
+<http://www.gnu.org/licenses/>.
+
+*/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "Array.h"
+#include "Array.cc"
+
+#include "pt-jit.h"
+
+NO_INSTANTIATE_ARRAY_SORT (jit_function::overload);
+
+INSTANTIATE_ARRAY (jit_function::overload, OCTINTERP_API);