| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "../../../core/include/fxcrt/fx_ext.h" | 7 #include "../../../core/include/fxcrt/fx_ext.h" |
| 8 #include "../../include/javascript/IJavaScript.h" | 8 #include "../../include/javascript/IJavaScript.h" |
| 9 #include "../../include/javascript/JS_Context.h" | 9 #include "../../include/javascript/JS_Context.h" |
| 10 #include "../../include/javascript/JS_Define.h" | 10 #include "../../include/javascript/JS_Define.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } g_hashVerify; | 64 } g_hashVerify; |
| 65 | 65 |
| 66 HashVerify::HashVerify() { | 66 HashVerify::HashVerify() { |
| 67 ASSERT(JSCONST_nStringHash == JS_CalcHash(kFXJSValueNameString)); | 67 ASSERT(JSCONST_nStringHash == JS_CalcHash(kFXJSValueNameString)); |
| 68 ASSERT(JSCONST_nNumberHash == JS_CalcHash(kFXJSValueNameNumber)); | 68 ASSERT(JSCONST_nNumberHash == JS_CalcHash(kFXJSValueNameNumber)); |
| 69 ASSERT(JSCONST_nBoolHash == JS_CalcHash(kFXJSValueNameBoolean)); | 69 ASSERT(JSCONST_nBoolHash == JS_CalcHash(kFXJSValueNameBoolean)); |
| 70 ASSERT(JSCONST_nDateHash == JS_CalcHash(kFXJSValueNameDate)); | 70 ASSERT(JSCONST_nDateHash == JS_CalcHash(kFXJSValueNameDate)); |
| 71 ASSERT(JSCONST_nObjectHash == JS_CalcHash(kFXJSValueNameObject)); | 71 ASSERT(JSCONST_nObjectHash == JS_CalcHash(kFXJSValueNameObject)); |
| 72 ASSERT(JSCONST_nFXobjHash == JS_CalcHash(kFXJSValueNameFxobj)); | 72 ASSERT(JSCONST_nFXobjHash == JS_CalcHash(kFXJSValueNameFxobj)); |
| 73 ASSERT(JSCONST_nNullHash == JS_CalcHash(kFXJSValueNameNull)); | 73 ASSERT(JSCONST_nNullHash == JS_CalcHash(kFXJSValueNameNull)); |
| 74 ASSERT(JSCONST_nUndefHash == JS_CalcHash(kFXJSValueNameUndefined); | 74 ASSERT(JSCONST_nUndefHash == JS_CalcHash(kFXJSValueNameUndefined)); |
| 75 } | 75 } |
| 76 #endif | 76 #endif |
| 77 | 77 |
| 78 BEGIN_JS_STATIC_CONST(CJS_Global) | 78 BEGIN_JS_STATIC_CONST(CJS_Global) |
| 79 END_JS_STATIC_CONST() | 79 END_JS_STATIC_CONST() |
| 80 | 80 |
| 81 BEGIN_JS_STATIC_PROP(CJS_Global) | 81 BEGIN_JS_STATIC_PROP(CJS_Global) |
| 82 END_JS_STATIC_PROP() | 82 END_JS_STATIC_PROP() |
| 83 | 83 |
| 84 BEGIN_JS_STATIC_METHOD(CJS_Global) | 84 BEGIN_JS_STATIC_METHOD(CJS_Global) |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 return CJS_Value::VT_boolean; | 532 return CJS_Value::VT_boolean; |
| 533 if (nHash == JSCONST_nDateHash) | 533 if (nHash == JSCONST_nDateHash) |
| 534 return CJS_Value::VT_date; | 534 return CJS_Value::VT_date; |
| 535 if (nHash == JSCONST_nObjectHash) | 535 if (nHash == JSCONST_nObjectHash) |
| 536 return CJS_Value::VT_object; | 536 return CJS_Value::VT_object; |
| 537 if (nHash == JSCONST_nFXobjHash) | 537 if (nHash == JSCONST_nFXobjHash) |
| 538 return CJS_Value::VT_fxobject; | 538 return CJS_Value::VT_fxobject; |
| 539 | 539 |
| 540 return CJS_Value::VT_unknown; | 540 return CJS_Value::VT_unknown; |
| 541 } | 541 } |
| OLD | NEW |