| Index: include/v8-defaults.h
|
| diff --git a/src/a64/frames-a64.cc b/include/v8-defaults.h
|
| similarity index 72%
|
| copy from src/a64/frames-a64.cc
|
| copy to include/v8-defaults.h
|
| index fc0ecb499594f06731abe87b29ab6df7f7f82ca0..381a48210d1b9895fbda4e4c89eb0e51fa61b6d0 100644
|
| --- a/src/a64/frames-a64.cc
|
| +++ b/include/v8-defaults.h
|
| @@ -25,27 +25,30 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -#include "v8.h"
|
| -
|
| -#if V8_TARGET_ARCH_A64
|
| +#ifndef V8_V8_DEFAULTS_H_
|
| +#define V8_V8_DEFAULTS_H_
|
|
|
| -#include "assembler.h"
|
| -#include "assembler-a64.h"
|
| -#include "assembler-a64-inl.h"
|
| -#include "frames.h"
|
| +#include "v8.h"
|
|
|
| +/**
|
| + * Default configuration support for the V8 JavaScript engine.
|
| + */
|
| namespace v8 {
|
| -namespace internal {
|
| -
|
| -
|
| -Register JavaScriptFrame::fp_register() { return v8::internal::fp; }
|
| -Register JavaScriptFrame::context_register() { return cp; }
|
|
|
| +/**
|
| + * Configures the constraints with reasonable default values based on the
|
| + * capabilities of the current device the VM is running on.
|
| + */
|
| +bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform(
|
| + ResourceConstraints* constraints);
|
|
|
| -Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; }
|
| -Register StubFailureTrampolineFrame::context_register() { return cp; }
|
|
|
| +/**
|
| + * Convience function which performs SetResourceConstraints with the settings
|
| + * returned by ConfigureResourceConstraintsForCurrentPlatform.
|
| + */
|
| +bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform();
|
|
|
| -} } // namespace v8::internal
|
| +} // namespace v8
|
|
|
| -#endif // V8_TARGET_ARCH_A64
|
| +#endif // V8_V8_DEFAULTS_H_
|
|
|