| Index: src/code-stubs.cc
|
| ===================================================================
|
| --- src/code-stubs.cc (revision 9808)
|
| +++ src/code-stubs.cc (working copy)
|
| @@ -415,4 +415,29 @@
|
| }
|
|
|
|
|
| +void ElementsTransitionAndStoreStub::Generate(MacroAssembler* masm) {
|
| + Label fail;
|
| + if (!FLAG_trace_elements_transitions) {
|
| + if (to_ == FAST_ELEMENTS) {
|
| + if (from_ == FAST_SMI_ONLY_ELEMENTS) {
|
| + ElementsTransitionGenerator::GenerateSmiOnlyToObject(masm);
|
| + } else if (from_ == FAST_DOUBLE_ELEMENTS) {
|
| + ElementsTransitionGenerator::GenerateDoubleToObject(masm, &fail);
|
| + } else {
|
| + UNREACHABLE();
|
| + }
|
| + KeyedStoreStubCompiler::GenerateStoreFastElement(masm,
|
| + is_jsarray_,
|
| + FAST_ELEMENTS);
|
| + } else if (from_ == FAST_SMI_ONLY_ELEMENTS && to_ == FAST_DOUBLE_ELEMENTS) {
|
| + ElementsTransitionGenerator::GenerateSmiOnlyToDouble(masm, &fail);
|
| + KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(masm, is_jsarray_);
|
| + } else {
|
| + UNREACHABLE();
|
| + }
|
| + }
|
| + masm->bind(&fail);
|
| + KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode_);
|
| +}
|
| +
|
| } } // namespace v8::internal
|
|
|