Bug 469739 - Add support for displaying Vista UAC shield icon; r=joe sr=vladimir
[wine-gecko.git] / js / src / nanojit / avmplus.cpp
blob848fa4aa8e403b7ef6e78a888d33940a9df791d0
1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
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.
12 * The Original Code is [Open Source Virtual Machine.]
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.
18 * Contributor(s): Adobe AS3 Team
19 * Andreas Gal <gal@mozilla.com>
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.
31 ***** END LICENSE BLOCK ***** */
33 #include "avmplus.h"
35 using namespace avmplus;
37 Config AvmCore::config;
38 static GC _gc;
39 GC* AvmCore::gc = &_gc;
40 GCHeap GC::heap;
41 String* AvmCore::k_str[] = { (String*)"" };
43 #ifdef _DEBUG
44 // NanoAssertFail matches JS_Assert in jsutil.cpp.
45 void NanoAssertFail()
47 #if defined(WIN32)
48 DebugBreak();
49 exit(3);
50 #elif defined(XP_OS2) || (defined(__GNUC__) && defined(__i386))
51 asm("int $3");
52 #endif
54 abort();
56 #endif