1.1 --- a/src/Modules.cpp Mon Jun 10 00:46:29 2013 +0100
1.2 +++ b/src/Modules.cpp Mon Jun 10 01:04:43 2013 +0100
1.3 @@ -1,40 +1,40 @@
1.4 -/*
1.5 - * Copyright (C) 2012 David Anderson
1.6 - *
1.7 - * This file is part of JITCraft.
1.8 - *
1.9 - * JITCraft is free software: you can redistribute it and/or modify it under
1.10 - * the terms of the GNU General Public License as published by the Free
1.11 - * Software Foundation, either version 3 of the License, or (at your option)
1.12 - * any later version.
1.13 - *
1.14 - * Foobar is distributed in the hope that it will be useful, but WITHOUT ANY
1.15 - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.16 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1.17 - *
1.18 - * You should have received a copy of the GNU General Public License along with
1.19 - * JITCraft. If not, see http://www.gnu.org/licenses/.
1.20 - */
1.21 -#include "Modules.h"
1.22 -#include "Zone.h"
1.23 -#include "Heap.h"
1.24 -#include "Heap-inl.h"
1.25 -
1.26 -using namespace ke;
1.27 -
1.28 -Module *
1.29 -Module::New(Zone *zone, Handle<Package> package, Handle<String> path, Handle<String> name)
1.30 -{
1.31 - Local<Module> module(zone, Module::cast(zone->allocate(MapKind_Module, sizeof(Module), Heap::Tenure_Old)));
1.32 - if (!module)
1.33 - return NULL;
1.34 -
1.35 - module->parent_ = package;
1.36 - module->path_ = path;
1.37 - module->name_ = name;
1.38 - module->globals_ = NULL;
1.39 - module->nativeIdentity_ = NULL;
1.40 - module->globals_ = NULL;
1.41 - module->unit_ = NULL;
1.42 - return module;
1.43 -}
1.44 +/*
1.45 + * Copyright (C) 2012 David Anderson
1.46 + *
1.47 + * This file is part of JITCraft.
1.48 + *
1.49 + * JITCraft is free software: you can redistribute it and/or modify it under
1.50 + * the terms of the GNU General Public License as published by the Free
1.51 + * Software Foundation, either version 3 of the License, or (at your option)
1.52 + * any later version.
1.53 + *
1.54 + * Foobar is distributed in the hope that it will be useful, but WITHOUT ANY
1.55 + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.56 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1.57 + *
1.58 + * You should have received a copy of the GNU General Public License along with
1.59 + * JITCraft. If not, see http://www.gnu.org/licenses/.
1.60 + */
1.61 +#include "Modules.h"
1.62 +#include "Zone.h"
1.63 +#include "Heap.h"
1.64 +#include "Heap-inl.h"
1.65 +
1.66 +using namespace ke;
1.67 +
1.68 +Module *
1.69 +Module::New(Zone *zone, Handle<Package> package, Handle<String> path, Handle<String> name)
1.70 +{
1.71 + Local<Module> module(zone, Module::cast(zone->allocate(MapKind_Module, sizeof(Module), Heap::Tenure_Old)));
1.72 + if (!module)
1.73 + return NULL;
1.74 +
1.75 + module->parent_ = package;
1.76 + module->path_ = path;
1.77 + module->name_ = name;
1.78 + module->globals_ = NULL;
1.79 + module->nativeIdentity_ = NULL;
1.80 + module->globals_ = NULL;
1.81 + module->unit_ = NULL;
1.82 + return module;
1.83 +}