Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: fpdfsdk/javascript/JS_Value.cpp

Issue 1835693002: Remove FX_DWORD from fpdfsdk/ and testing/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/javascript/JS_Object.cpp ('k') | fpdfsdk/javascript/app.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "fpdfsdk/javascript/JS_Value.h" 7 #include "fpdfsdk/javascript/JS_Value.h"
8 8
9 #include <time.h> 9 #include <time.h>
10 10
11 #include <algorithm> 11 #include <algorithm>
12 #include <cmath> 12 #include <cmath>
13 #include <limits> 13 #include <limits>
14 #include <vector> 14 #include <vector>
15 15
16 #include "fpdfsdk/javascript/Document.h" 16 #include "fpdfsdk/javascript/Document.h"
17 #include "fpdfsdk/javascript/JS_Define.h" 17 #include "fpdfsdk/javascript/JS_Define.h"
18 #include "fpdfsdk/javascript/JS_Object.h" 18 #include "fpdfsdk/javascript/JS_Object.h"
19 19
20 static const FX_DWORD g_nan[2] = {0, 0x7FF80000}; 20 static const uint32_t g_nan[2] = {0, 0x7FF80000};
21 static double GetNan() { 21 static double GetNan() {
22 return *(double*)g_nan; 22 return *(double*)g_nan;
23 } 23 }
24 24
25 CJS_Value::CJS_Value(CJS_Runtime* pRuntime) 25 CJS_Value::CJS_Value(CJS_Runtime* pRuntime)
26 : m_eType(VT_unknown), m_pJSRuntime(pRuntime) {} 26 : m_eType(VT_unknown), m_pJSRuntime(pRuntime) {}
27 27
28 CJS_Value::CJS_Value(CJS_Runtime* pRuntime, v8::Local<v8::Value> pValue, Type t) 28 CJS_Value::CJS_Value(CJS_Runtime* pRuntime, v8::Local<v8::Value> pValue, Type t)
29 : m_eType(t), m_pValue(pValue), m_pJSRuntime(pRuntime) {} 29 : m_eType(t), m_pValue(pValue), m_pJSRuntime(pRuntime) {}
30 30
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 for (int i = 0; i < nKeywords; ++i) { 896 for (int i = 0; i < nKeywords; ++i) {
897 const wchar_t* property = va_arg(ap, const wchar_t*); 897 const wchar_t* property = va_arg(ap, const wchar_t*);
898 v8::Local<v8::Value> v8Value = 898 v8::Local<v8::Value> v8Value =
899 FXJS_GetObjectElement(pRuntime->GetIsolate(), pObj, property); 899 FXJS_GetObjectElement(pRuntime->GetIsolate(), pObj, property);
900 if (!v8Value->IsUndefined()) 900 if (!v8Value->IsUndefined())
901 result[i] = CJS_Value(pRuntime, v8Value, CJS_Value::VT_unknown); 901 result[i] = CJS_Value(pRuntime, v8Value, CJS_Value::VT_unknown);
902 } 902 }
903 va_end(ap); 903 va_end(ap);
904 return result; 904 return result;
905 } 905 }
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/JS_Object.cpp ('k') | fpdfsdk/javascript/app.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698