forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.cpp
More file actions
42 lines (36 loc) · 1.89 KB
/
Copy pathConstants.cpp
File metadata and controls
42 lines (36 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#include "RuntimeBasePch.h"
using namespace Js;
// The VS2013 linker treats this as a redefinition of an already
// defined constant and complains. So skip the declaration if we're compiling
// with VS2013 or below.
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const uint Constants::InvalidSourceIndex;
const RegSlot Constants::NoRegister;
#endif
const char16 Constants::AnonymousFunction[] = _u("Anonymous function");
const char16 Constants::Anonymous[] = _u("anonymous");
const char16 Constants::Empty[] = _u("");
const char16 Constants::FunctionCode[] = _u("Function code");
const char16 Constants::GlobalCode[] = _u("Global code");
const char16 Constants::ModuleCode[] = _u("Module code");
const char16 Constants::EvalCode[] = _u("eval code");
const char16 Constants::GlobalFunction[] = _u("glo");
const char16 Constants::UnknownScriptCode[] = _u("Unknown script code");
const char16 Constants::StringReplace[] = _u("String.prototype.replace");
const char16 Constants::StringMatch[] = _u("String.prototype.match");
const uint64 Constants::ExponentMask = 0x3FF0000000000000;
const uint64 Constants::MantissaMask = 0x000FFFFFFFFFFFFF;
#ifdef _M_AMD64
const size_t Constants::StackLimitForScriptInterrupt = 0x7fffffffffffffff;
#else
const size_t Constants::StackLimitForScriptInterrupt = 0x7fffffff;
#endif
#pragma warning(push)
#pragma warning(disable:4815) // Allow no storage for zero-sized array at end of NullFrameDisplay struct.
const Js::FrameDisplay Js::NullFrameDisplay = 0;
const Js::FrameDisplay Js::StrictNullFrameDisplay(0, true);
#pragma warning(pop)