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

Side by Side Diff: include/v8.h

Issue 2433273002: [wasm] Avoid double-serializing the wire bytes (Closed)
Patch Set: removed unrelated changes Created 4 years, 1 month 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 | « no previous file | src/api.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project 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 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 3897 matching lines...) Expand 10 before | Expand all | Expand 10 after
3908 3908
3909 // If possible, deserialize the module, otherwise compile it from the provided 3909 // If possible, deserialize the module, otherwise compile it from the provided
3910 // uncompiled bytes. 3910 // uncompiled bytes.
3911 static MaybeLocal<WasmCompiledModule> DeserializeOrCompile( 3911 static MaybeLocal<WasmCompiledModule> DeserializeOrCompile(
3912 Isolate* isolate, const CallerOwnedBuffer& serialized_module, 3912 Isolate* isolate, const CallerOwnedBuffer& serialized_module,
3913 const CallerOwnedBuffer& wire_bytes); 3913 const CallerOwnedBuffer& wire_bytes);
3914 V8_INLINE static WasmCompiledModule* Cast(Value* obj); 3914 V8_INLINE static WasmCompiledModule* Cast(Value* obj);
3915 3915
3916 private: 3916 private:
3917 static MaybeLocal<WasmCompiledModule> Deserialize( 3917 static MaybeLocal<WasmCompiledModule> Deserialize(
3918 Isolate* isolate, const CallerOwnedBuffer& serialized_module); 3918 Isolate* isolate, const CallerOwnedBuffer& serialized_module,
3919 const CallerOwnedBuffer& wire_bytes);
3919 static MaybeLocal<WasmCompiledModule> Compile(Isolate* isolate, 3920 static MaybeLocal<WasmCompiledModule> Compile(Isolate* isolate,
3920 const uint8_t* start, 3921 const uint8_t* start,
3921 size_t length); 3922 size_t length);
3922 WasmCompiledModule(); 3923 WasmCompiledModule();
3923 static void CheckCast(Value* obj); 3924 static void CheckCast(Value* obj);
3924 }; 3925 };
3925 3926
3926 #ifndef V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT 3927 #ifndef V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT
3927 // The number of required internal fields can be defined by embedder. 3928 // The number of required internal fields can be defined by embedder.
3928 #define V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT 2 3929 #define V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT 2
(...skipping 5737 matching lines...) Expand 10 before | Expand all | Expand 10 after
9666 */ 9667 */
9667 9668
9668 9669
9669 } // namespace v8 9670 } // namespace v8
9670 9671
9671 9672
9672 #undef TYPE_CHECK 9673 #undef TYPE_CHECK
9673 9674
9674 9675
9675 #endif // INCLUDE_V8_H_ 9676 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698