| 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/value.h" | 7 #include "xfa/fxjse/value.h" |
| 8 | 8 |
| 9 #include <math.h> | 9 #include <math.h> |
| 10 | 10 |
| 11 #include "xfa/src/fxjse/class.h" | 11 #include "xfa/fxjse/class.h" |
| 12 #include "xfa/src/fxjse/util_inline.h" | 12 #include "xfa/fxjse/util_inline.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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 if (lpRetValue) | 573 if (lpRetValue) |
| 574 lpRetValue->ForceSetValue(hReturnValue); | 574 lpRetValue->ForceSetValue(hReturnValue); |
| 575 | 575 |
| 576 if (lpLocalArgs) { | 576 if (lpLocalArgs) { |
| 577 for (uint32_t i = 0; i < nArgCount; i++) | 577 for (uint32_t i = 0; i < nArgCount; i++) |
| 578 lpLocalArgs[i].~Local(); | 578 lpLocalArgs[i].~Local(); |
| 579 FX_Free(lpLocalArgs); | 579 FX_Free(lpLocalArgs); |
| 580 } | 580 } |
| 581 return bRetValue; | 581 return bRetValue; |
| 582 } | 582 } |
| OLD | NEW |