/[jscoverage]/trunk/js/nanojit/avmplus.cpp
ViewVC logotype

Contents of /trunk/js/nanojit/avmplus.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 399 - (show annotations)
Tue Dec 9 03:37:47 2008 UTC (11 years ago) by siliconforks
File size: 2322 byte(s)
Use SpiderMonkey from Firefox 3.1b2.

1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 *
4 * The contents of this file are subject to the Mozilla Public License Version 1.1 (the
5 * "License"); you may not use this file except in compliance with the License. You may obtain
6 * a copy of the License at http://www.mozilla.org/MPL/
7 *
8 * Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
9 * WARRANTY OF ANY KIND, either express or implied. See the License for the specific
10 * language governing rights and limitations under the License.
11 *
12 * The Original Code is [Open Source Virtual Machine.]
13 *
14 * The Initial Developer of the Original Code is Adobe System Incorporated. Portions created
15 * by the Initial Developer are Copyright (C)[ 2004-2006 ] Adobe Systems Incorporated. All Rights
16 * Reserved.
17 *
18 * Contributor(s): Adobe AS3 Team
19 * Andreas Gal <gal@mozilla.com>
20 *
21 * Alternatively, the contents of this file may be used under the terms of either the GNU
22 * General Public License Version 2 or later (the "GPL"), or the GNU Lesser General Public
23 * License Version 2.1 or later (the "LGPL"), in which case the provisions of the GPL or the
24 * LGPL are applicable instead of those above. If you wish to allow use of your version of this
25 * file only under the terms of either the GPL or the LGPL, and not to allow others to use your
26 * version of this file under the terms of the MPL, indicate your decision by deleting provisions
27 * above and replace them with the notice and other provisions required by the GPL or the
28 * LGPL. If you do not delete the provisions above, a recipient may use your version of this file
29 * under the terms of any one of the MPL, the GPL or the LGPL.
30 *
31 ***** END LICENSE BLOCK ***** */
32
33 #include "avmplus.h"
34
35 using namespace avmplus;
36
37 AvmConfiguration AvmCore::config;
38 static GC _gc;
39 GC* AvmCore::gc = &_gc;
40 GCHeap GC::heap;
41 String* AvmCore::k_str[] = { (String*)"" };
42 bool AvmCore::sse2_available = false;
43 bool AvmCore::cmov_available = false;
44
45 #ifdef _DEBUG
46 // NanoAssertFail matches JS_Assert in jsutil.cpp.
47 void NanoAssertFail()
48 {
49 #if defined(WIN32)
50 DebugBreak();
51 exit(3);
52 #elif defined(XP_OS2) || (defined(__GNUC__) && defined(__i386))
53 asm("int $3");
54 #endif
55
56 abort();
57 }
58 #endif

  ViewVC Help
Powered by ViewVC 1.1.24