chromium/v8/test/unittests/parser/parse-decision-unittest.cc

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

// Test specific cases of the lazy/eager-parse decision.
//
// Note that presently most unit tests for parsing are found in
// parsing-unittest.cc.

#include <unordered_map>

#include "include/v8-local-handle.h"
#include "include/v8-primitive.h"
#include "src/api/api-inl.h"
#include "src/execution/isolate.h"
#include "src/handles/handles-inl.h"
#include "src/objects/objects-inl.h"
#include "src/objects/shared-function-info-inl.h"
#include "src/utils/utils.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace v8 {
namespace internal {

class ParseDecisionTest : public TestWithContext {};

namespace {

// Record the 'compiled' state of all top level functions.
void GetTopLevelFunctionInfo(
    v8::Local<v8::Script> script,
    std::unordered_map<std::string, bool>* is_compiled) {}

}  // anonymous namespace

TEST_F(ParseDecisionTest, GetTopLevelFunctionInfo) {}

TEST_F(ParseDecisionTest, EagerlyCompileImmediateUseFunctions) {}

TEST_F(ParseDecisionTest, CommaFunctionSequence) {}

}  // namespace internal
}  // namespace v8