Flutter Engine
The Flutter Engine
Static Public Member Functions | Static Public Attributes | List of all members
unibrow::Ecma262Canonicalize Struct Reference

#include <unibrow.h>

Static Public Member Functions

static intptr_t Convert (int32_t c, int32_t n, int32_t *result, bool *allow_caching_ptr)
 

Static Public Attributes

static constexpr intptr_t kMaxWidth = 1
 

Detailed Description

Definition at line 48 of file unibrow.h.

Member Function Documentation

◆ Convert()

intptr_t unibrow::Ecma262Canonicalize::Convert ( int32_t  c,
int32_t  n,
int32_t *  result,
bool *  allow_caching_ptr 
)
static

Definition at line 627 of file unibrow.cc.

630 {
631 intptr_t chunk_index = c >> 13;
632 switch (chunk_index) {
633 case 0: return LookupMapping<true>(kEcma262CanonicalizeTable0,
636 c,
637 n,
638 result,
639 allow_caching_ptr);
640 case 1: return LookupMapping<true>(kEcma262CanonicalizeTable1,
643 c,
644 n,
645 result,
646 allow_caching_ptr);
647 case 5: return LookupMapping<true>(kEcma262CanonicalizeTable5,
650 c,
651 n,
652 result,
653 allow_caching_ptr);
654 case 7: return LookupMapping<true>(kEcma262CanonicalizeTable7,
657 c,
658 n,
659 result,
660 allow_caching_ptr);
661 default: return 0;
662 }
663}
GAsyncResult * result
static const MultiCharacterSpecialCase< 1 > kEcma262CanonicalizeMultiStrings1[1]
Definition: unibrow.cc:580
static constexpr int32_t kEcma262CanonicalizeTable5[190]
Definition: unibrow.cc:598
static const MultiCharacterSpecialCase< 1 > kEcma262CanonicalizeMultiStrings7[1]
Definition: unibrow.cc:622
static constexpr int32_t kEcma262CanonicalizeTable7[4]
Definition: unibrow.cc:625
static constexpr uint16_t kEcma262CanonicalizeTable7Size
Definition: unibrow.cc:624
static constexpr uint16_t kEcma262CanonicalizeTable1Size
Definition: unibrow.cc:582
static const MultiCharacterSpecialCase< 1 > kEcma262CanonicalizeMultiStrings5[1]
Definition: unibrow.cc:594
static constexpr int32_t kEcma262CanonicalizeTable0[996]
Definition: unibrow.cc:392
static constexpr uint16_t kEcma262CanonicalizeTable0Size
Definition: unibrow.cc:391
static constexpr uint16_t kEcma262CanonicalizeTable5Size
Definition: unibrow.cc:596
static constexpr int32_t kEcma262CanonicalizeTable1[146]
Definition: unibrow.cc:583
static const MultiCharacterSpecialCase< 1 > kEcma262CanonicalizeMultiStrings0[1]
Definition: unibrow.cc:389

Member Data Documentation

◆ kMaxWidth

constexpr intptr_t unibrow::Ecma262Canonicalize::kMaxWidth = 1
staticconstexpr

Definition at line 49 of file unibrow.h.


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