Chromium Code Reviews| Index: src/parser.cc |
| diff --git a/src/parser.cc b/src/parser.cc |
| index 33b5fab3fc8c6b9cd198a99384fe4bf60111d738..07ce001d27189143f6652d3dd5d96b0492d2ce11 100644 |
| --- a/src/parser.cc |
| +++ b/src/parser.cc |
| @@ -4014,6 +4014,12 @@ void Parser::BuildObjectLiteralConstantProperties( |
| // runtime. The enumeration order is maintained. |
| Handle<Object> key = property->key()->handle(); |
| Handle<Object> value = GetBoilerplateValue(property->value()); |
| + |
| + // Ensure objects with doubles are always treated as nested objects. |
| + // TODO(verwaest): Remove once we can store them inline. |
| + if (FLAG_track_fields && value->IsNumber()) { |
| + depth_acc = Max(2, depth_acc); |
| + } |
|
danno
2013/05/07 13:04:47
*COUGH* Any other better way to do this? *COUGH*
B
Toon Verwaest
2013/05/07 15:08:52
Done.
|
| is_simple_acc = is_simple_acc && !value->IsUndefined(); |
| // Keep track of the number of elements in the object literal and |