chromium/v8/src/asmjs/asm-scanner.cc

// Copyright 2017 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.

#include "src/asmjs/asm-scanner.h"

#include <cinttypes>

#include "src/base/iterator.h"
#include "src/flags/flags.h"
#include "src/numbers/conversions.h"
#include "src/parsing/scanner.h"
#include "src/strings/char-predicates-inl.h"

namespace v8 {
namespace internal {

namespace {
// Cap number of identifiers to ensure we can assign both global and
// local ones a token id in the range of an int32_t.
static const int kMaxIdentifierCount =;
}  // namespace

AsmJsScanner::AsmJsScanner(Utf16CharacterStream* stream)
    :{}

void AsmJsScanner::Next() {}

void AsmJsScanner::Rewind() {}

void AsmJsScanner::ResetLocals() {}

#if DEBUG
// Only used for debugging.
std::string AsmJsScanner::Name(token_t token) const {}
#endif

void AsmJsScanner::Seek(size_t pos) {}

void AsmJsScanner::ConsumeIdentifier(base::uc32 ch) {}

namespace {
bool IsValidImplicitOctal(std::string_view number) {}
}  // namespace

void AsmJsScanner::ConsumeNumber(base::uc32 ch) {}

bool AsmJsScanner::ConsumeCComment() {}

void AsmJsScanner::ConsumeCPPComment() {}

void AsmJsScanner::ConsumeString(base::uc32 quote) {}

void AsmJsScanner::ConsumeCompareOrShift(base::uc32 ch) {}

bool AsmJsScanner::IsIdentifierStart(base::uc32 ch) {}

bool AsmJsScanner::IsIdentifierPart(base::uc32 ch) {}

bool AsmJsScanner::IsNumberStart(base::uc32 ch) {}

}  // namespace internal
}  // namespace v8