| Index: src/code-stubs.cc
|
| diff --git a/src/code-stubs.cc b/src/code-stubs.cc
|
| index bcc1fe88014d9bcd52a61df4bef62c1131e497a7..a1889ad5a9cf0f952dc215db00198f1e7d3501cb 100644
|
| --- a/src/code-stubs.cc
|
| +++ b/src/code-stubs.cc
|
| @@ -19,6 +19,12 @@ namespace v8 {
|
| namespace internal {
|
|
|
|
|
| +RUNTIME_FUNCTION(UnexpectedStubMiss) {
|
| + FATAL("Unexpected deopt of a stub");
|
| + return Smi::FromInt(0);
|
| +}
|
| +
|
| +
|
| CodeStubDescriptor::CodeStubDescriptor(CodeStub* stub)
|
| : call_descriptor_(stub->GetCallInterfaceDescriptor()),
|
| stack_parameter_count_(no_reg),
|
| @@ -720,6 +726,20 @@ void RegExpConstructResultStub::InitializeDescriptor(
|
| }
|
|
|
|
|
| +void LoadGlobalViaContextStub::InitializeDescriptor(
|
| + CodeStubDescriptor* descriptor) {
|
| + // Must never deoptimize.
|
| + descriptor->Initialize(FUNCTION_ADDR(UnexpectedStubMiss));
|
| +}
|
| +
|
| +
|
| +void StoreGlobalViaContextStub::InitializeDescriptor(
|
| + CodeStubDescriptor* descriptor) {
|
| + // Must never deoptimize.
|
| + descriptor->Initialize(FUNCTION_ADDR(UnexpectedStubMiss));
|
| +}
|
| +
|
| +
|
| void TransitionElementsKindStub::InitializeDescriptor(
|
| CodeStubDescriptor* descriptor) {
|
| descriptor->Initialize(
|
|
|