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

Side by Side Diff: src/d8.h

Issue 2433273002: [wasm] Avoid double-serializing the wire bytes (Closed)
Patch Set: externalize/internalize buffer Created 4 years, 2 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 // 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 #ifndef V8_D8_H_ 5 #ifndef V8_D8_H_
6 #define V8_D8_H_ 6 #define V8_D8_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 Local<Value> value, 369 Local<Value> value,
370 const PropertyCallbackInfo<void>& info); 370 const PropertyCallbackInfo<void>& info);
371 371
372 static void Print(const v8::FunctionCallbackInfo<v8::Value>& args); 372 static void Print(const v8::FunctionCallbackInfo<v8::Value>& args);
373 static void Write(const v8::FunctionCallbackInfo<v8::Value>& args); 373 static void Write(const v8::FunctionCallbackInfo<v8::Value>& args);
374 static void QuitOnce(v8::FunctionCallbackInfo<v8::Value>* args); 374 static void QuitOnce(v8::FunctionCallbackInfo<v8::Value>* args);
375 static void Quit(const v8::FunctionCallbackInfo<v8::Value>& args); 375 static void Quit(const v8::FunctionCallbackInfo<v8::Value>& args);
376 static void Version(const v8::FunctionCallbackInfo<v8::Value>& args); 376 static void Version(const v8::FunctionCallbackInfo<v8::Value>& args);
377 static void Read(const v8::FunctionCallbackInfo<v8::Value>& args); 377 static void Read(const v8::FunctionCallbackInfo<v8::Value>& args);
378 static void ReadBuffer(const v8::FunctionCallbackInfo<v8::Value>& args); 378 static void ReadBuffer(const v8::FunctionCallbackInfo<v8::Value>& args);
379 static void ExperimentalDoubleAdder(
380 const v8::FunctionCallbackInfo<v8::Value>& args);
381 static double ExperimentalNativeDoubleAdder(double a, double b);
379 static Local<String> ReadFromStdin(Isolate* isolate); 382 static Local<String> ReadFromStdin(Isolate* isolate);
380 static void ReadLine(const v8::FunctionCallbackInfo<v8::Value>& args) { 383 static void ReadLine(const v8::FunctionCallbackInfo<v8::Value>& args) {
381 args.GetReturnValue().Set(ReadFromStdin(args.GetIsolate())); 384 args.GetReturnValue().Set(ReadFromStdin(args.GetIsolate()));
382 } 385 }
383 static void Load(const v8::FunctionCallbackInfo<v8::Value>& args); 386 static void Load(const v8::FunctionCallbackInfo<v8::Value>& args);
384 static void WorkerNew(const v8::FunctionCallbackInfo<v8::Value>& args); 387 static void WorkerNew(const v8::FunctionCallbackInfo<v8::Value>& args);
385 static void WorkerPostMessage( 388 static void WorkerPostMessage(
386 const v8::FunctionCallbackInfo<v8::Value>& args); 389 const v8::FunctionCallbackInfo<v8::Value>& args);
387 static void WorkerGetMessage(const v8::FunctionCallbackInfo<v8::Value>& args); 390 static void WorkerGetMessage(const v8::FunctionCallbackInfo<v8::Value>& args);
388 static void WorkerTerminate(const v8::FunctionCallbackInfo<v8::Value>& args); 391 static void WorkerTerminate(const v8::FunctionCallbackInfo<v8::Value>& args);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 const v8::FunctionCallbackInfo<v8::Value>& args); 459 const v8::FunctionCallbackInfo<v8::Value>& args);
457 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context, 460 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context,
458 const std::string& file_name); 461 const std::string& file_name);
459 }; 462 };
460 463
461 464
462 } // namespace v8 465 } // namespace v8
463 466
464 467
465 #endif // V8_D8_H_ 468 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/d8.cc » ('j') | src/runtime/runtime-test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698