mirror of https://github.com/lukechilds/node.git
Browse Source
This change introduces an AliasedBuffer class and updates asytnc-wrap and http2 to use this class. A common technique to optimize performance is to create a native buffer and then map that native buffer to user space via JS array. The runtime can efficiently write to the native buffer without having to route though JS, and the values being written are accessible from user space. While efficient, this technique allows modifications to user space memory w/out going through JS type system APIs, effectively bypassing any monitoring the JS VM has in place to track program state modifications. The result is that monitors have an incorrect view of prorgram state. The AliasedBuffer class provides a future placeholder where this technique can be used, but writes can still be observed. To achieve this, the node-chakra-core fork will add in appropriate tracking logic in the AliasedBuffer's SetValue() method. Going forward, this class can evolve to support more sophisticated mechanisms if necessary. PR-URL: https://github.com/nodejs/node/pull/15077 Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>canary-base
Mike Kaufman
7 years ago
committed by
Anna Henningsen
11 changed files with 610 additions and 123 deletions
@ -0,0 +1,200 @@ |
|||
|
|||
#ifndef SRC_ALIASED_BUFFER_H_ |
|||
#define SRC_ALIASED_BUFFER_H_ |
|||
|
|||
#include "v8.h" |
|||
#include "util.h" |
|||
#include "util-inl.h" |
|||
|
|||
namespace node { |
|||
|
|||
/**
|
|||
* This class encapsulates the technique of having a native buffer mapped to |
|||
* a JS object. Writes to the native buffer can happen efficiently without |
|||
* going through JS, and the data is then available to user's via the exposed |
|||
* JS object. |
|||
* |
|||
* While this technique is computationaly efficient, it is effectively a |
|||
* write to JS program state w/out going through the standard |
|||
* (monitored) API. Thus any VM capabilities to detect the modification are |
|||
* circumvented. |
|||
* |
|||
* The encapsulation herein provides a placeholder where such writes can be |
|||
* observed. Any notification APIs will be left as a future exercise. |
|||
*/ |
|||
template <class NativeT, class V8T> |
|||
class AliasedBuffer { |
|||
public: |
|||
AliasedBuffer(v8::Isolate* isolate, const size_t count) |
|||
: isolate_(isolate), |
|||
count_(count), |
|||
byte_offset_(0), |
|||
free_buffer_(true) { |
|||
CHECK_GT(count, 0); |
|||
const v8::HandleScope handle_scope(isolate_); |
|||
|
|||
const size_t sizeInBytes = sizeof(NativeT) * count; |
|||
|
|||
// allocate native buffer
|
|||
buffer_ = Calloc<NativeT>(count); |
|||
|
|||
// allocate v8 ArrayBuffer
|
|||
v8::Local<v8::ArrayBuffer> ab = v8::ArrayBuffer::New( |
|||
isolate_, buffer_, sizeInBytes); |
|||
|
|||
// allocate v8 TypedArray
|
|||
v8::Local<V8T> js_array = V8T::New(ab, byte_offset_, count); |
|||
js_array_ = v8::Global<V8T>(isolate, js_array); |
|||
} |
|||
|
|||
/**
|
|||
* Create an AliasedBuffer over a sub-region of another aliased buffer. |
|||
* The two will share a v8::ArrayBuffer instance & |
|||
* a native buffer, but will each read/write to different sections of the |
|||
* native buffer. |
|||
* |
|||
* Note that byte_offset must by aligned by sizeof(NativeT). |
|||
*/ |
|||
AliasedBuffer(v8::Isolate* isolate, |
|||
const size_t byte_offset, |
|||
const size_t count, |
|||
const AliasedBuffer<uint8_t, |
|||
v8::Uint8Array>& backing_buffer) |
|||
: isolate_(isolate), |
|||
count_(count), |
|||
byte_offset_(byte_offset), |
|||
free_buffer_(false) { |
|||
const v8::HandleScope handle_scope(isolate_); |
|||
|
|||
v8::Local<v8::ArrayBuffer> ab = backing_buffer.GetArrayBuffer(); |
|||
|
|||
// validate that the byte_offset is aligned with sizeof(NativeT)
|
|||
CHECK_EQ(byte_offset & (sizeof(NativeT) - 1), 0); |
|||
// validate this fits inside the backing buffer
|
|||
CHECK_LE(sizeof(NativeT) * count, ab->ByteLength() - byte_offset); |
|||
|
|||
buffer_ = reinterpret_cast<NativeT*>( |
|||
const_cast<uint8_t*>(backing_buffer.GetNativeBuffer() + byte_offset)); |
|||
|
|||
v8::Local<V8T> js_array = V8T::New(ab, byte_offset, count); |
|||
js_array_ = v8::Global<V8T>(isolate, js_array); |
|||
} |
|||
|
|||
AliasedBuffer(const AliasedBuffer& that) |
|||
: isolate_(that.isolate_), |
|||
count_(that.count_), |
|||
byte_offset_(that.byte_offset_), |
|||
buffer_(that.buffer_), |
|||
free_buffer_(false) { |
|||
js_array_ = v8::Global<V8T>(that.isolate_, that.GetJSArray()); |
|||
} |
|||
|
|||
~AliasedBuffer() { |
|||
if (free_buffer_ && buffer_ != nullptr) { |
|||
free(buffer_); |
|||
} |
|||
js_array_.Reset(); |
|||
} |
|||
|
|||
/**
|
|||
* Helper class that is returned from operator[] to support assignment into |
|||
* a specified location. |
|||
*/ |
|||
class Reference { |
|||
public: |
|||
Reference(AliasedBuffer<NativeT, V8T>* aliased_buffer, size_t index) |
|||
: aliased_buffer_(aliased_buffer), |
|||
index_(index) { |
|||
} |
|||
|
|||
Reference(const Reference& that) |
|||
: aliased_buffer_(that.aliased_buffer_), |
|||
index_(that.index_) { |
|||
} |
|||
|
|||
inline Reference& operator=(const NativeT &val) { |
|||
aliased_buffer_->SetValue(index_, val); |
|||
return *this; |
|||
} |
|||
|
|||
operator NativeT() const { |
|||
return aliased_buffer_->GetValue(index_); |
|||
} |
|||
|
|||
private: |
|||
AliasedBuffer<NativeT, V8T>* aliased_buffer_; |
|||
size_t index_; |
|||
}; |
|||
|
|||
/**
|
|||
* Get the underlying v8 TypedArray overlayed on top of the native buffer |
|||
*/ |
|||
v8::Local<V8T> GetJSArray() const { |
|||
return js_array_.Get(isolate_); |
|||
} |
|||
|
|||
/**
|
|||
* Get the underlying v8::ArrayBuffer underlying the TypedArray and |
|||
* overlaying the native buffer |
|||
*/ |
|||
v8::Local<v8::ArrayBuffer> GetArrayBuffer() const { |
|||
return GetJSArray()->Buffer(); |
|||
} |
|||
|
|||
/**
|
|||
* Get the underlying native buffer. Note that all reads/writes should occur |
|||
* through the GetValue/SetValue/operator[] methods |
|||
*/ |
|||
inline const NativeT* GetNativeBuffer() const { |
|||
return buffer_; |
|||
} |
|||
|
|||
/**
|
|||
* Synonym for GetBuffer() |
|||
*/ |
|||
inline const NativeT* operator * () const { |
|||
return GetNativeBuffer(); |
|||
} |
|||
|
|||
/**
|
|||
* Set position index to given value. |
|||
*/ |
|||
inline void SetValue(const size_t index, NativeT value) { |
|||
#if defined(DEBUG) && DEBUG |
|||
CHECK_LT(index, count_); |
|||
#endif |
|||
buffer_[index] = value; |
|||
} |
|||
|
|||
/**
|
|||
* Get value at position index |
|||
*/ |
|||
inline const NativeT GetValue(const size_t index) const { |
|||
#if defined(DEBUG) && DEBUG |
|||
CHECK_LT(index, count_); |
|||
#endif |
|||
return buffer_[index]; |
|||
} |
|||
|
|||
/**
|
|||
* Effectively, a synonym for GetValue/SetValue |
|||
*/ |
|||
Reference operator[](size_t index) { |
|||
return Reference(this, index); |
|||
} |
|||
|
|||
NativeT operator[](size_t index) const { |
|||
return GetValue(index); |
|||
} |
|||
|
|||
private: |
|||
v8::Isolate* const isolate_; |
|||
size_t count_; |
|||
size_t byte_offset_; |
|||
NativeT* buffer_; |
|||
v8::Global<V8T> js_array_; |
|||
bool free_buffer_; |
|||
}; |
|||
} // namespace node
|
|||
|
|||
#endif // SRC_ALIASED_BUFFER_H_
|
@ -0,0 +1,116 @@ |
|||
#ifndef SRC_NODE_HTTP2_STATE_H_ |
|||
#define SRC_NODE_HTTP2_STATE_H_ |
|||
|
|||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS |
|||
|
|||
#include "aliased_buffer.h" |
|||
|
|||
namespace node { |
|||
namespace http2 { |
|||
|
|||
enum Http2SettingsIndex { |
|||
IDX_SETTINGS_HEADER_TABLE_SIZE, |
|||
IDX_SETTINGS_ENABLE_PUSH, |
|||
IDX_SETTINGS_INITIAL_WINDOW_SIZE, |
|||
IDX_SETTINGS_MAX_FRAME_SIZE, |
|||
IDX_SETTINGS_MAX_CONCURRENT_STREAMS, |
|||
IDX_SETTINGS_MAX_HEADER_LIST_SIZE, |
|||
IDX_SETTINGS_COUNT |
|||
}; |
|||
|
|||
enum Http2SessionStateIndex { |
|||
IDX_SESSION_STATE_EFFECTIVE_LOCAL_WINDOW_SIZE, |
|||
IDX_SESSION_STATE_EFFECTIVE_RECV_DATA_LENGTH, |
|||
IDX_SESSION_STATE_NEXT_STREAM_ID, |
|||
IDX_SESSION_STATE_LOCAL_WINDOW_SIZE, |
|||
IDX_SESSION_STATE_LAST_PROC_STREAM_ID, |
|||
IDX_SESSION_STATE_REMOTE_WINDOW_SIZE, |
|||
IDX_SESSION_STATE_OUTBOUND_QUEUE_SIZE, |
|||
IDX_SESSION_STATE_HD_DEFLATE_DYNAMIC_TABLE_SIZE, |
|||
IDX_SESSION_STATE_HD_INFLATE_DYNAMIC_TABLE_SIZE, |
|||
IDX_SESSION_STATE_COUNT |
|||
}; |
|||
|
|||
enum Http2StreamStateIndex { |
|||
IDX_STREAM_STATE, |
|||
IDX_STREAM_STATE_WEIGHT, |
|||
IDX_STREAM_STATE_SUM_DEPENDENCY_WEIGHT, |
|||
IDX_STREAM_STATE_LOCAL_CLOSE, |
|||
IDX_STREAM_STATE_REMOTE_CLOSE, |
|||
IDX_STREAM_STATE_LOCAL_WINDOW_SIZE, |
|||
IDX_STREAM_STATE_COUNT |
|||
}; |
|||
|
|||
enum Http2OptionsIndex { |
|||
IDX_OPTIONS_MAX_DEFLATE_DYNAMIC_TABLE_SIZE, |
|||
IDX_OPTIONS_MAX_RESERVED_REMOTE_STREAMS, |
|||
IDX_OPTIONS_MAX_SEND_HEADER_BLOCK_LENGTH, |
|||
IDX_OPTIONS_PEER_MAX_CONCURRENT_STREAMS, |
|||
IDX_OPTIONS_PADDING_STRATEGY, |
|||
IDX_OPTIONS_FLAGS |
|||
}; |
|||
|
|||
enum Http2PaddingBufferFields { |
|||
PADDING_BUF_FRAME_LENGTH, |
|||
PADDING_BUF_MAX_PAYLOAD_LENGTH, |
|||
PADDING_BUF_RETURN_VALUE, |
|||
PADDING_BUF_FIELD_COUNT |
|||
}; |
|||
|
|||
class http2_state { |
|||
public: |
|||
explicit http2_state(v8::Isolate* isolate) : |
|||
root_buffer( |
|||
isolate, |
|||
sizeof(http2_state_internal)), |
|||
session_state_buffer( |
|||
isolate, |
|||
offsetof(http2_state_internal, session_state_buffer), |
|||
IDX_SESSION_STATE_COUNT, |
|||
root_buffer), |
|||
stream_state_buffer( |
|||
isolate, |
|||
offsetof(http2_state_internal, stream_state_buffer), |
|||
IDX_STREAM_STATE_COUNT, |
|||
root_buffer), |
|||
padding_buffer( |
|||
isolate, |
|||
offsetof(http2_state_internal, padding_buffer), |
|||
PADDING_BUF_FIELD_COUNT, |
|||
root_buffer), |
|||
options_buffer( |
|||
isolate, |
|||
offsetof(http2_state_internal, options_buffer), |
|||
IDX_OPTIONS_FLAGS + 1, |
|||
root_buffer), |
|||
settings_buffer( |
|||
isolate, |
|||
offsetof(http2_state_internal, settings_buffer), |
|||
IDX_SETTINGS_COUNT + 1, |
|||
root_buffer) { |
|||
} |
|||
|
|||
AliasedBuffer<uint8_t, v8::Uint8Array> root_buffer; |
|||
AliasedBuffer<double, v8::Float64Array> session_state_buffer; |
|||
AliasedBuffer<double, v8::Float64Array> stream_state_buffer; |
|||
AliasedBuffer<uint32_t, v8::Uint32Array> padding_buffer; |
|||
AliasedBuffer<uint32_t, v8::Uint32Array> options_buffer; |
|||
AliasedBuffer<uint32_t, v8::Uint32Array> settings_buffer; |
|||
|
|||
private: |
|||
struct http2_state_internal { |
|||
// doubles first so that they are always sizeof(double)-aligned
|
|||
double session_state_buffer[IDX_SESSION_STATE_COUNT]; |
|||
double stream_state_buffer[IDX_STREAM_STATE_COUNT]; |
|||
uint32_t padding_buffer[PADDING_BUF_FIELD_COUNT]; |
|||
uint32_t options_buffer[IDX_OPTIONS_FLAGS + 1]; |
|||
uint32_t settings_buffer[IDX_SETTINGS_COUNT + 1]; |
|||
}; |
|||
}; |
|||
|
|||
} // namespace http2
|
|||
} // namespace node
|
|||
|
|||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
|||
|
|||
#endif // SRC_NODE_HTTP2_STATE_H_
|
@ -0,0 +1,3 @@ |
|||
#include "node_test_fixture.h" |
|||
|
|||
uv_loop_t current_loop; |
@ -0,0 +1,216 @@ |
|||
|
|||
#include "v8.h" |
|||
#include "aliased_buffer.h" |
|||
#include "node_test_fixture.h" |
|||
|
|||
using node::AliasedBuffer; |
|||
|
|||
class AliasBufferTest : public NodeTestFixture { |
|||
protected: |
|||
void SetUp() override { |
|||
NodeTestFixture::SetUp(); |
|||
} |
|||
|
|||
void TearDown() override { |
|||
NodeTestFixture::TearDown(); |
|||
} |
|||
}; |
|||
|
|||
template<class NativeT> |
|||
void CreateOracleValues(NativeT* buf, size_t count) { |
|||
for (size_t i = 0, j = count; i < count; i++, j--) { |
|||
buf[i] = static_cast<NativeT>(j); |
|||
} |
|||
} |
|||
|
|||
template<class NativeT, class V8T> |
|||
void WriteViaOperator(AliasedBuffer<NativeT, V8T>* aliasedBuffer, |
|||
size_t size, |
|||
NativeT* oracle) { |
|||
// write through the API
|
|||
for (size_t i = 0; i < size; i++) { |
|||
(*aliasedBuffer)[i] = oracle[i]; |
|||
} |
|||
} |
|||
|
|||
template<class NativeT, class V8T> |
|||
void WriteViaSetValue(AliasedBuffer<NativeT, V8T>* aliasedBuffer, |
|||
size_t size, |
|||
NativeT* oracle) { |
|||
// write through the API
|
|||
for (size_t i = 0; i < size; i++) { |
|||
aliasedBuffer->SetValue(i, oracle[i]); |
|||
} |
|||
} |
|||
|
|||
template<class NativeT, class V8T> |
|||
void ReadAndValidate(v8::Isolate* isolate, |
|||
v8::Local<v8::Context> context, |
|||
AliasedBuffer<NativeT, V8T>* aliasedBuffer, |
|||
size_t size, |
|||
NativeT* oracle) { |
|||
// read through the API
|
|||
for (size_t i = 0; i < size; i++) { |
|||
NativeT v1 = (*aliasedBuffer)[i]; |
|||
NativeT v2 = aliasedBuffer->GetValue(i); |
|||
EXPECT_TRUE(v1 == oracle[i]); |
|||
EXPECT_TRUE(v2 == oracle[i]); |
|||
} |
|||
|
|||
// validate size of JS Buffer
|
|||
EXPECT_TRUE(aliasedBuffer->GetJSArray()->Length() == size); |
|||
EXPECT_TRUE( |
|||
aliasedBuffer->GetJSArray()->ByteLength() == |
|||
(size * sizeof(NativeT))); |
|||
|
|||
// validate operator * and GetBuffer are the same
|
|||
EXPECT_TRUE(aliasedBuffer->GetNativeBuffer() == *(*aliasedBuffer)); |
|||
|
|||
// read through the JS API
|
|||
for (size_t i = 0; i < size; i++) { |
|||
v8::Local<V8T> v8TypedArray = aliasedBuffer->GetJSArray(); |
|||
v8::MaybeLocal<v8::Value> v = v8TypedArray->Get(context, i); |
|||
EXPECT_TRUE(v.IsEmpty() == false); |
|||
v8::Local<v8::Value> v2 = v.ToLocalChecked(); |
|||
EXPECT_TRUE(v2->IsNumber()); |
|||
v8::MaybeLocal<v8::Number> v3 = v2->ToNumber(context); |
|||
v8::Local<v8::Number> v4 = v3.ToLocalChecked(); |
|||
NativeT actualValue = static_cast<NativeT>(v4->Value()); |
|||
EXPECT_TRUE(actualValue == oracle[i]); |
|||
} |
|||
} |
|||
|
|||
template<class NativeT, class V8T> |
|||
void ReadWriteTest(v8::Isolate* isolate) { |
|||
v8::HandleScope handle_scope(isolate); |
|||
v8::Local<v8::Context> context = v8::Context::New(isolate); |
|||
v8::Context::Scope context_scope(context); |
|||
|
|||
const size_t size = 100; |
|||
AliasedBuffer<NativeT, V8T> ab(isolate, size); |
|||
NativeT* oracle = new NativeT[size]; |
|||
CreateOracleValues(oracle, size); |
|||
WriteViaOperator(&ab, size, oracle); |
|||
ReadAndValidate(isolate, context, &ab, size, oracle); |
|||
|
|||
WriteViaSetValue(&ab, size, oracle); |
|||
|
|||
// validate copy constructor
|
|||
{ |
|||
AliasedBuffer<NativeT, V8T> ab2(ab); |
|||
ReadAndValidate(isolate, context, &ab2, size, oracle); |
|||
} |
|||
ReadAndValidate(isolate, context, &ab, size, oracle); |
|||
|
|||
delete[] oracle; |
|||
} |
|||
|
|||
template< |
|||
class NativeT_A, class V8T_A, |
|||
class NativeT_B, class V8T_B, |
|||
class NativeT_C, class V8T_C> |
|||
void SharedBufferTest( |
|||
v8::Isolate* isolate, |
|||
size_t count_A, |
|||
size_t count_B, |
|||
size_t count_C) { |
|||
v8::HandleScope handle_scope(isolate); |
|||
v8::Local<v8::Context> context = v8::Context::New(isolate); |
|||
v8::Context::Scope context_scope(context); |
|||
|
|||
size_t sizeInBytes_A = count_A * sizeof(NativeT_A); |
|||
size_t sizeInBytes_B = count_B * sizeof(NativeT_B); |
|||
size_t sizeInBytes_C = count_C * sizeof(NativeT_C); |
|||
|
|||
AliasedBuffer<uint8_t, v8::Uint8Array> rootBuffer( |
|||
isolate, sizeInBytes_A + sizeInBytes_B + sizeInBytes_C); |
|||
AliasedBuffer<NativeT_A, V8T_A> ab_A( |
|||
isolate, 0, count_A, rootBuffer); |
|||
AliasedBuffer<NativeT_B, V8T_B> ab_B( |
|||
isolate, sizeInBytes_A, count_B, rootBuffer); |
|||
AliasedBuffer<NativeT_C, V8T_C> ab_C( |
|||
isolate, sizeInBytes_A + sizeInBytes_B, count_C, rootBuffer); |
|||
|
|||
NativeT_A* oracle_A = new NativeT_A[count_A]; |
|||
NativeT_B* oracle_B = new NativeT_B[count_B]; |
|||
NativeT_C* oracle_C = new NativeT_C[count_C]; |
|||
CreateOracleValues(oracle_A, count_A); |
|||
CreateOracleValues(oracle_B, count_B); |
|||
CreateOracleValues(oracle_C, count_C); |
|||
|
|||
WriteViaOperator(&ab_A, count_A, oracle_A); |
|||
WriteViaOperator(&ab_B, count_B, oracle_B); |
|||
WriteViaOperator(&ab_C, count_C, oracle_C); |
|||
|
|||
ReadAndValidate(isolate, context, &ab_A, count_A, oracle_A); |
|||
ReadAndValidate(isolate, context, &ab_B, count_B, oracle_B); |
|||
ReadAndValidate(isolate, context, &ab_C, count_C, oracle_C); |
|||
|
|||
WriteViaSetValue(&ab_A, count_A, oracle_A); |
|||
WriteViaSetValue(&ab_B, count_B, oracle_B); |
|||
WriteViaSetValue(&ab_C, count_C, oracle_C); |
|||
|
|||
ReadAndValidate(isolate, context, &ab_A, count_A, oracle_A); |
|||
ReadAndValidate(isolate, context, &ab_B, count_B, oracle_B); |
|||
ReadAndValidate(isolate, context, &ab_C, count_C, oracle_C); |
|||
} |
|||
|
|||
TEST_F(AliasBufferTest, Uint8Array) { |
|||
ReadWriteTest<uint8_t, v8::Uint8Array>(isolate_); |
|||
} |
|||
|
|||
TEST_F(AliasBufferTest, Int8Array) { |
|||
ReadWriteTest<int8_t, v8::Int8Array>(isolate_); |
|||
} |
|||
|
|||
TEST_F(AliasBufferTest, Uint16Array) { |
|||
ReadWriteTest<uint16_t, v8::Uint16Array>(isolate_); |
|||
} |
|||
|
|||
TEST_F(AliasBufferTest, Int16Array) { |
|||
ReadWriteTest<int16_t, v8::Int16Array>(isolate_); |
|||
} |
|||
|
|||
TEST_F(AliasBufferTest, Uint32Array) { |
|||
ReadWriteTest<uint32_t, v8::Uint32Array>(isolate_); |
|||
} |
|||
|
|||
TEST_F(AliasBufferTest, Int32Array) { |
|||
ReadWriteTest<int32_t, v8::Int32Array>(isolate_); |
|||
} |
|||
|
|||
TEST_F(AliasBufferTest, Float32Array) { |
|||
ReadWriteTest<float, v8::Float32Array>(isolate_); |
|||
} |
|||
|
|||
TEST_F(AliasBufferTest, Float64Array) { |
|||
ReadWriteTest<double, v8::Float64Array>(isolate_); |
|||
} |
|||
|
|||
TEST_F(AliasBufferTest, SharedArrayBuffer1) { |
|||
SharedBufferTest< |
|||
uint32_t, v8::Uint32Array, |
|||
double, v8::Float64Array, |
|||
int8_t, v8::Int8Array>(isolate_, 100, 80, 8); |
|||
} |
|||
|
|||
TEST_F(AliasBufferTest, SharedArrayBuffer2) { |
|||
SharedBufferTest< |
|||
double, v8::Float64Array, |
|||
int8_t, v8::Int8Array, |
|||
double, v8::Float64Array>(isolate_, 100, 8, 8); |
|||
} |
|||
|
|||
TEST_F(AliasBufferTest, SharedArrayBuffer3) { |
|||
SharedBufferTest< |
|||
int8_t, v8::Int8Array, |
|||
int8_t, v8::Int8Array, |
|||
double, v8::Float64Array>(isolate_, 1, 7, 8); |
|||
} |
|||
|
|||
TEST_F(AliasBufferTest, SharedArrayBuffer4) { |
|||
SharedBufferTest< |
|||
int8_t, v8::Int8Array, |
|||
int8_t, v8::Int8Array, |
|||
int32_t, v8::Int32Array>(isolate_, 1, 3, 1); |
|||
} |
Loading…
Reference in new issue