V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::SerializedCodeData Class Reference
Inheritance diagram for v8::internal::SerializedCodeData:
v8::internal::SerializedData

Public Types

enum  SanityCheckResult {
  CHECK_SUCCESS = 0, MAGIC_NUMBER_MISMATCH = 1, VERSION_MISMATCH = 2, SOURCE_MISMATCH = 3,
  CPU_FEATURES_MISMATCH = 4, FLAGS_MISMATCH = 5, CHECKSUM_MISMATCH = 6, INVALID_HEADER = 7,
  LENGTH_MISMATCH = 8
}
 

Public Member Functions

 SerializedCodeData (const std::vector< byte > *payload, const CodeSerializer *cs)
 
ScriptDataGetScriptData ()
 
std::vector< ReservationReservations () const
 
Vector< const byte > Payload () const
 
Vector< const uint32_tCodeStubKeys () const
 
- Public Member Functions inherited from v8::internal::SerializedData
 SerializedData (byte *data, int size)
 
 SerializedData (SerializedData &&other) V8_NOEXCEPT
 
uint32_t GetMagicNumber () const
 

Static Public Member Functions

static SerializedCodeData FromCachedData (Isolate *isolate, ScriptData *cached_data, uint32_t expected_source_hash, SanityCheckResult *rejection_result)
 
static uint32_t SourceHash (Handle< String > source, ScriptOriginOptions origin_options)
 
- Static Public Member Functions inherited from v8::internal::SerializedData
static uint32_t ComputeMagicNumber (ExternalReferenceTable *table)
 

Static Public Attributes

static const uint32_t kVersionHashOffset = kMagicNumberOffset + kUInt32Size
 
static const uint32_t kSourceHashOffset = kVersionHashOffset + kUInt32Size
 
static const uint32_t kCpuFeaturesOffset = kSourceHashOffset + kUInt32Size
 
static const uint32_t kFlagHashOffset = kCpuFeaturesOffset + kUInt32Size
 
static const uint32_t kNumReservationsOffset = kFlagHashOffset + kUInt32Size
 
static const uint32_t kNumCodeStubKeysOffset
 
static const uint32_t kPayloadLengthOffset
 
static const uint32_t kChecksumPartAOffset
 
static const uint32_t kChecksumPartBOffset
 
static const uint32_t kUnalignedHeaderSize
 
static const uint32_t kHeaderSize = POINTER_SIZE_ALIGN(kUnalignedHeaderSize)
 
- Static Public Attributes inherited from v8::internal::SerializedData
static const uint32_t kMagicNumberOffset = 0
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::SerializedData
void SetHeaderValue (uint32_t offset, uint32_t value)
 
uint32_t GetHeaderValue (uint32_t offset) const
 
void AllocateData (uint32_t size)
 
void SetMagicNumber (Isolate *isolate)
 
- Static Protected Member Functions inherited from v8::internal::SerializedData
static uint32_t ComputeMagicNumber (Isolate *isolate)
 
- Protected Attributes inherited from v8::internal::SerializedData
byte * data_
 
uint32_t size_
 
bool owns_data_
 

Detailed Description

Definition at line 89 of file code-serializer.h.

Member Data Documentation

◆ kChecksumPartAOffset

const uint32_t v8::internal::SerializedCodeData::kChecksumPartAOffset
static
Initial value:
=
kPayloadLengthOffset + kUInt32Size

Definition at line 126 of file code-serializer.h.

◆ kChecksumPartBOffset

const uint32_t v8::internal::SerializedCodeData::kChecksumPartBOffset
static
Initial value:
=
kChecksumPartAOffset + kUInt32Size

Definition at line 128 of file code-serializer.h.

◆ kNumCodeStubKeysOffset

const uint32_t v8::internal::SerializedCodeData::kNumCodeStubKeysOffset
static
Initial value:
=
kNumReservationsOffset + kUInt32Size

Definition at line 122 of file code-serializer.h.

◆ kPayloadLengthOffset

const uint32_t v8::internal::SerializedCodeData::kPayloadLengthOffset
static
Initial value:
=
kNumCodeStubKeysOffset + kUInt32Size

Definition at line 124 of file code-serializer.h.

◆ kUnalignedHeaderSize

const uint32_t v8::internal::SerializedCodeData::kUnalignedHeaderSize
static
Initial value:
=
kChecksumPartBOffset + kUInt32Size

Definition at line 130 of file code-serializer.h.


The documentation for this class was generated from the following files: