mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
Bug 1022891 - Part 2: Teach IonBailoutIterator about PJS scripts. (r=nbp)
This commit is contained in:
parent
496e463f68
commit
a09ed4d7c2
@ -1698,7 +1698,14 @@ JitFrameIterator::ionScriptFromCalleeToken() const
|
||||
switch (GetCalleeTokenTag(calleeToken())) {
|
||||
case CalleeToken_Function:
|
||||
case CalleeToken_Script:
|
||||
return mode_ == ParallelExecution ? script()->parallelIonScript() : script()->ionScript();
|
||||
switch (mode_) {
|
||||
case SequentialExecution:
|
||||
return script()->ionScript();
|
||||
case ParallelExecution:
|
||||
return script()->parallelIonScript();
|
||||
default:
|
||||
MOZ_ASSUME_UNREACHABLE("No such execution mode");
|
||||
}
|
||||
default:
|
||||
MOZ_ASSUME_UNREACHABLE("unknown callee token type");
|
||||
}
|
||||
|
@ -79,7 +79,11 @@ IonBailoutIterator::IonBailoutIterator(const JitActivationIterator &activations,
|
||||
current_ = fp;
|
||||
type_ = JitFrame_IonJS;
|
||||
topFrameSize_ = current_ - sp;
|
||||
topIonScript_ = script()->ionScript();
|
||||
switch (mode_) {
|
||||
case SequentialExecution: topIonScript_ = script()->ionScript(); break;
|
||||
case ParallelExecution: topIonScript_ = script()->parallelIonScript(); break;
|
||||
default: MOZ_ASSUME_UNREACHABLE("No such execution mode");
|
||||
}
|
||||
|
||||
if (bailout->frameClass() == FrameSizeClass::None()) {
|
||||
snapshotOffset_ = bailout->snapshotOffset();
|
||||
|
@ -23,7 +23,11 @@ IonBailoutIterator::IonBailoutIterator(const JitActivationIterator &activations,
|
||||
current_ = fp;
|
||||
type_ = JitFrame_IonJS;
|
||||
topFrameSize_ = current_ - sp;
|
||||
topIonScript_ = script()->ionScript();
|
||||
switch (mode_) {
|
||||
case SequentialExecution: topIonScript_ = script()->ionScript(); break;
|
||||
case ParallelExecution: topIonScript_ = script()->parallelIonScript(); break;
|
||||
default: MOZ_ASSUME_UNREACHABLE("No such execution mode");
|
||||
}
|
||||
|
||||
if (bailout->frameClass() == FrameSizeClass::None()) {
|
||||
snapshotOffset_ = bailout->snapshotOffset();
|
||||
|
@ -56,7 +56,11 @@ IonBailoutIterator::IonBailoutIterator(const JitActivationIterator &activations,
|
||||
current_ = fp;
|
||||
type_ = JitFrame_IonJS;
|
||||
topFrameSize_ = current_ - sp;
|
||||
topIonScript_ = script()->ionScript();
|
||||
switch (mode_) {
|
||||
case SequentialExecution: topIonScript_ = script()->ionScript(); break;
|
||||
case ParallelExecution: topIonScript_ = script()->parallelIonScript(); break;
|
||||
default: MOZ_ASSUME_UNREACHABLE("No such execution mode");
|
||||
}
|
||||
snapshotOffset_ = bailout->snapshotOffset();
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,11 @@ IonBailoutIterator::IonBailoutIterator(const JitActivationIterator &activations,
|
||||
current_ = fp;
|
||||
type_ = JitFrame_IonJS;
|
||||
topFrameSize_ = current_ - sp;
|
||||
topIonScript_ = script()->ionScript();
|
||||
switch (mode_) {
|
||||
case SequentialExecution: topIonScript_ = script()->ionScript(); break;
|
||||
case ParallelExecution: topIonScript_ = script()->parallelIonScript(); break;
|
||||
default: MOZ_ASSUME_UNREACHABLE("No such execution mode");
|
||||
}
|
||||
|
||||
if (bailout->frameClass() == FrameSizeClass::None()) {
|
||||
snapshotOffset_ = bailout->snapshotOffset();
|
||||
|
Loading…
Reference in New Issue
Block a user