| Index: src/stub-cache.cc
|
| diff --git a/src/stub-cache.cc b/src/stub-cache.cc
|
| index a687d81a3e57351eab2d2d2b6b9839f3fc3ebfcf..1186c20552ad76f5e4826648bfdc40d3a3226b8b 100644
|
| --- a/src/stub-cache.cc
|
| +++ b/src/stub-cache.cc
|
| @@ -1993,12 +1993,21 @@ Handle<Code> KeyedStoreStubCompiler::CompileStoreElementPolymorphic(
|
| bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE;
|
| ElementsKind elements_kind = receiver_map->elements_kind();
|
| if (!transitioned_map.is_null()) {
|
| - cached_stub = ElementsTransitionAndStoreStub(
|
| - elements_kind,
|
| - transitioned_map->elements_kind(),
|
| - is_js_array,
|
| - strict_mode(),
|
| - store_mode_).GetCode(isolate());
|
| + if (FLAG_compiled_transitions) {
|
| + cached_stub = ElementsTransitionAndStoreStub(
|
| + elements_kind,
|
| + transitioned_map->elements_kind(),
|
| + is_js_array,
|
| + store_mode_).GetCode(isolate());
|
| + } else {
|
| + // TODO(bmeurer) Remove this when compiled transitions is enabled
|
| + cached_stub = ElementsTransitionAndStorePlatformStub(
|
| + elements_kind,
|
| + transitioned_map->elements_kind(),
|
| + is_js_array,
|
| + strict_mode(),
|
| + store_mode_).GetCode(isolate());
|
| + }
|
| } else {
|
| if (FLAG_compiled_keyed_stores &&
|
| (receiver_map->has_fast_elements() ||
|
|
|