d4c6c7561c
This reduces the arm32 binary by around 20kB. R=jkummerow@chromium.org, mstarzinger@chromium.org Bug: v8:6055 Change-Id: If9098e49793b29dceb8292aff6f668ca28a07728 Reviewed-on: https://chromium-review.googlesource.com/652427 Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Commit-Queue: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#47863}
30 lines
844 B
C++
30 lines
844 B
C++
// 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.
|
|
|
|
#ifndef V8_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_
|
|
#define V8_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_
|
|
|
|
#include "src/setup-isolate.h"
|
|
|
|
namespace v8 {
|
|
namespace internal {
|
|
|
|
class SetupIsolateDelegateForTests : public SetupIsolateDelegate {
|
|
public:
|
|
explicit SetupIsolateDelegateForTests(bool create_heap_objects)
|
|
: SetupIsolateDelegate(create_heap_objects) {}
|
|
virtual ~SetupIsolateDelegateForTests() {}
|
|
|
|
void SetupBuiltins(Isolate* isolate) override;
|
|
|
|
void SetupInterpreter(interpreter::Interpreter* interpreter) override;
|
|
|
|
bool SetupHeap(Heap* heap) override;
|
|
};
|
|
|
|
} // namespace internal
|
|
} // namespace v8
|
|
|
|
#endif // V8_TEST_CCTEST_SETUP_ISOLATE_FOR_TESTS_H_
|