Bug 1213740 - IonMonkey: MIPS64: Import Bailouts-mips64. r=nbp f=rankov

---
 js/src/jit/mips64/Bailouts-mips64.cpp | 28 ++++++++++++++++++++++++++++
 js/src/moz.build                      |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644 js/src/jit/mips64/Bailouts-mips64.cpp
This commit is contained in:
Heiher 2015-10-13 17:15:51 +08:00
parent 00ca55f93e
commit 298bfc7a6c
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,28 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "jscntxt.h"
#include "jscompartment.h"
#include "jit/mips-shared/Bailouts-mips-shared.h"
using namespace js;
using namespace js::jit;
BailoutFrameInfo::BailoutFrameInfo(const JitActivationIterator& activations,
BailoutStack* bailout)
: machine_(bailout->machine())
{
uint8_t* sp = bailout->parentStackPointer();
framePointer_ = sp + bailout->frameSize();
topFrameSize_ = framePointer_ - sp;
JSScript* script = ScriptFromCalleeToken(((JitFrameLayout*) framePointer_)->calleeToken());
topIonScript_ = script->ionScript();
attachOnJitActivation(activations);
snapshotOffset_ = bailout->snapshotOffset();
}

View File

@ -510,6 +510,7 @@ elif CONFIG['JS_CODEGEN_MIPS32'] or CONFIG['JS_CODEGEN_MIPS64']:
UNIFIED_SOURCES += [ UNIFIED_SOURCES += [
'jit/mips64/Architecture-mips64.cpp', 'jit/mips64/Architecture-mips64.cpp',
'jit/mips64/Assembler-mips64.cpp', 'jit/mips64/Assembler-mips64.cpp',
'jit/mips64/Bailouts-mips64.cpp',
] ]
if CONFIG['OS_ARCH'] == 'WINNT': if CONFIG['OS_ARCH'] == 'WINNT':