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 #ifndef XFA_FXJSE_VALUE_H_ | 7 #ifndef FXJSE_INCLUDE_CFXJSE_VALUE_H_ |
8 #define XFA_FXJSE_VALUE_H_ | 8 #define FXJSE_INCLUDE_CFXJSE_VALUE_H_ |
9 | 9 |
10 #include "xfa/fxjse/scope_inline.h" | 10 #include "fxjse/scope_inline.h" |
11 | 11 |
12 V8_INLINE static double FXJSE_ftod(FX_FLOAT fNumber) { | 12 V8_INLINE static double FXJSE_ftod(FX_FLOAT fNumber) { |
13 if (sizeof(FX_FLOAT) != 4) { | 13 if (sizeof(FX_FLOAT) != 4) { |
14 ASSERT(FALSE); | 14 ASSERT(FALSE); |
15 return fNumber; | 15 return fNumber; |
16 } | 16 } |
17 | 17 |
18 uint32_t nFloatBits = (uint32_t&)fNumber; | 18 uint32_t nFloatBits = (uint32_t&)fNumber; |
19 uint8_t nExponent = (uint8_t)(nFloatBits >> 16 >> 7); | 19 uint8_t nExponent = (uint8_t)(nFloatBits >> 16 >> 7); |
20 if (nExponent == 0 || nExponent == 255) | 20 if (nExponent == 0 || nExponent == 255) |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 friend class CFXJSE_Context; | 274 friend class CFXJSE_Context; |
275 | 275 |
276 CFXJSE_Value(); | 276 CFXJSE_Value(); |
277 CFXJSE_Value(const CFXJSE_Value&); | 277 CFXJSE_Value(const CFXJSE_Value&); |
278 CFXJSE_Value& operator=(const CFXJSE_Value&); | 278 CFXJSE_Value& operator=(const CFXJSE_Value&); |
279 | 279 |
280 v8::Isolate* m_pIsolate; | 280 v8::Isolate* m_pIsolate; |
281 v8::Global<v8::Value> m_hValue; | 281 v8::Global<v8::Value> m_hValue; |
282 }; | 282 }; |
283 | 283 |
284 #endif // XFA_FXJSE_VALUE_H_ | 284 #endif // FXJSE_INCLUDE_CFXJSE_VALUE_H_ |
OLD | NEW |