Sha256: 16b3a9ea6d549210353085a868b84ddda37e4a1bf884dca9e7ea9333b1a7a3f7

Contents?: true

Size: 1.33 KB

Versions: 5

Compression:

Stored size: 1.33 KB

Contents

// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_ASMJS_ASM_JS_H_
#define V8_ASMJS_ASM_JS_H_

// Clients of this interface shouldn't depend on lots of asmjs internals.
// Do not include anything from src/asmjs here!
#include "src/globals.h"

namespace v8 {
namespace internal {

class CompilationInfo;
class JSArrayBuffer;
class SharedFunctionInfo;

// Interface to compile and instantiate for asm.js modules.
class AsmJs {
 public:
  static MaybeHandle<FixedArray> CompileAsmViaWasm(CompilationInfo* info);
  static MaybeHandle<Object> InstantiateAsmWasm(Isolate* isolate,
                                                Handle<SharedFunctionInfo>,
                                                Handle<FixedArray> wasm_data,
                                                Handle<JSReceiver> stdlib,
                                                Handle<JSReceiver> foreign,
                                                Handle<JSArrayBuffer> memory);

  // Special export name used to indicate that the module exports a single
  // function instead of a JavaScript object holding multiple functions.
  static const char* const kSingleFunctionName;
};

}  // namespace internal
}  // namespace v8

#endif  // V8_ASMJS_ASM_JS_H_

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
libv8-6.0.286.54.1 vendor/v8/src/asmjs/asm-js.h
libv8-6.0.286.54.0 vendor/v8/src/asmjs/asm-js.h
libv8-6.0.286.54.0beta2 vendor/v8/src/asmjs/asm-js.h
libv8-6.0.286.54.0beta1 vendor/v8/src/asmjs/asm-js.h
libv8-6.0.286.44.0beta1 vendor/v8/src/asmjs/asm-js.h