| 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 "xfa/src/fxjse/src/value.h" |
| 8 |
| 7 #include <math.h> | 9 #include <math.h> |
| 8 | 10 |
| 9 #include "xfa/src/foxitlib.h" | |
| 10 #include "xfa/src/fxjse/src/class.h" | 11 #include "xfa/src/fxjse/src/class.h" |
| 11 #include "xfa/src/fxjse/src/util_inline.h" | 12 #include "xfa/src/fxjse/src/util_inline.h" |
| 12 #include "xfa/src/fxjse/src/value.h" | |
| 13 | 13 |
| 14 FX_BOOL FXJSE_Value_IsUndefined(FXJSE_HVALUE hValue) { | 14 FX_BOOL FXJSE_Value_IsUndefined(FXJSE_HVALUE hValue) { |
| 15 CFXJSE_Value* lpValue = reinterpret_cast<CFXJSE_Value*>(hValue); | 15 CFXJSE_Value* lpValue = reinterpret_cast<CFXJSE_Value*>(hValue); |
| 16 return lpValue && lpValue->IsUndefined(); | 16 return lpValue && lpValue->IsUndefined(); |
| 17 } | 17 } |
| 18 | 18 |
| 19 FX_BOOL FXJSE_Value_IsNull(FXJSE_HVALUE hValue) { | 19 FX_BOOL FXJSE_Value_IsNull(FXJSE_HVALUE hValue) { |
| 20 CFXJSE_Value* lpValue = reinterpret_cast<CFXJSE_Value*>(hValue); | 20 CFXJSE_Value* lpValue = reinterpret_cast<CFXJSE_Value*>(hValue); |
| 21 return lpValue && lpValue->IsNull(); | 21 return lpValue && lpValue->IsNull(); |
| 22 } | 22 } |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 if (lpRetValue) | 563 if (lpRetValue) |
| 564 lpRetValue->ForceSetValue(hReturnValue); | 564 lpRetValue->ForceSetValue(hReturnValue); |
| 565 | 565 |
| 566 if (lpLocalArgs) { | 566 if (lpLocalArgs) { |
| 567 for (uint32_t i = 0; i < nArgCount; i++) | 567 for (uint32_t i = 0; i < nArgCount; i++) |
| 568 lpLocalArgs[i].~Local(); | 568 lpLocalArgs[i].~Local(); |
| 569 FX_Free(lpLocalArgs); | 569 FX_Free(lpLocalArgs); |
| 570 } | 570 } |
| 571 return bRetValue; | 571 return bRetValue; |
| 572 } | 572 } |
| OLD | NEW |