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

Side by Side Diff: Source/bindings/v8/SerializedScriptValue.cpp

Issue 19230002: Use V8 implementation of TypedArrays and DataView in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Extracted tests for huge arrays and disabled them Created 7 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "bindings/v8/SerializedScriptValue.h" 32 #include "bindings/v8/SerializedScriptValue.h"
33 33
34 #include "V8ArrayBufferView.h"
35 #include "V8Blob.h" 34 #include "V8Blob.h"
36 #include "V8DOMFileSystem.h" 35 #include "V8DOMFileSystem.h"
37 #include "V8DataView.h"
38 #include "V8File.h" 36 #include "V8File.h"
39 #include "V8FileList.h" 37 #include "V8FileList.h"
40 #include "V8Float32Array.h"
41 #include "V8ImageData.h" 38 #include "V8ImageData.h"
42 #include "V8Int16Array.h"
43 #include "V8Int32Array.h"
44 #include "V8Int8Array.h"
45 #include "V8MessagePort.h" 39 #include "V8MessagePort.h"
46 #include "V8Uint16Array.h"
47 #include "V8Uint32Array.h"
48 #include "V8Uint8Array.h"
49 #include "V8Uint8ClampedArray.h"
50 #include "bindings/tests/results/V8Float64Array.h"
51 #include "bindings/v8/V8Binding.h" 40 #include "bindings/v8/V8Binding.h"
52 #include "bindings/v8/V8Utilities.h" 41 #include "bindings/v8/V8Utilities.h"
53 #include "bindings/v8/custom/V8ArrayBufferCustom.h" 42 #include "bindings/v8/custom/V8ArrayBufferCustom.h"
43 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h"
44 #include "bindings/v8/custom/V8DataViewCustom.h"
45 #include "bindings/v8/custom/V8Float32ArrayCustom.h"
46 #include "bindings/v8/custom/V8Float64ArrayCustom.h"
47 #include "bindings/v8/custom/V8Int16ArrayCustom.h"
48 #include "bindings/v8/custom/V8Int32ArrayCustom.h"
49 #include "bindings/v8/custom/V8Int8ArrayCustom.h"
50 #include "bindings/v8/custom/V8Uint16ArrayCustom.h"
51 #include "bindings/v8/custom/V8Uint32ArrayCustom.h"
52 #include "bindings/v8/custom/V8Uint8ArrayCustom.h"
53 #include "bindings/v8/custom/V8Uint8ClampedArrayCustom.h"
54 #include "core/dom/ExceptionCode.h" 54 #include "core/dom/ExceptionCode.h"
55 #include "core/dom/MessagePort.h" 55 #include "core/dom/MessagePort.h"
56 #include "core/fileapi/Blob.h" 56 #include "core/fileapi/Blob.h"
57 #include "core/fileapi/File.h" 57 #include "core/fileapi/File.h"
58 #include "core/fileapi/FileList.h" 58 #include "core/fileapi/FileList.h"
59 #include "core/html/ImageData.h" 59 #include "core/html/ImageData.h"
60 #include "core/html/canvas/DataView.h" 60 #include "core/html/canvas/DataView.h"
61 #include "core/platform/AsyncFileSystem.h" 61 #include "core/platform/AsyncFileSystem.h"
62 #include "core/platform/SharedBuffer.h" 62 #include "core/platform/SharedBuffer.h"
63 #include "wtf/ArrayBuffer.h" 63 #include "wtf/ArrayBuffer.h"
(...skipping 2455 matching lines...) Expand 10 before | Expand all | Expand 10 after
2519 v8::V8::AdjustAmountOfExternalAllocatedMemory(-m_externallyAllocatedMemo ry); 2519 v8::V8::AdjustAmountOfExternalAllocatedMemory(-m_externallyAllocatedMemo ry);
2520 } 2520 }
2521 } 2521 }
2522 2522
2523 uint32_t SerializedScriptValue::wireFormatVersion() 2523 uint32_t SerializedScriptValue::wireFormatVersion()
2524 { 2524 {
2525 return WebCore::wireFormatVersion; 2525 return WebCore::wireFormatVersion;
2526 } 2526 }
2527 2527
2528 } // namespace WebCore 2528 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698