| Index: src/compiler.cc
|
| ===================================================================
|
| --- src/compiler.cc (revision 9006)
|
| +++ src/compiler.cc (working copy)
|
| @@ -478,15 +478,21 @@
|
| // that would be compiled lazily anyway, so we skip the preparse step
|
| // in that case too.
|
| ScriptDataImpl* pre_data = input_pre_data;
|
| + bool harmony_block_scoping = natives != NATIVES_CODE &&
|
| + FLAG_harmony_block_scoping;
|
| if (pre_data == NULL
|
| && source_length >= FLAG_min_preparse_length) {
|
| if (source->IsExternalTwoByteString()) {
|
| ExternalTwoByteStringUC16CharacterStream stream(
|
| Handle<ExternalTwoByteString>::cast(source), 0, source->length());
|
| - pre_data = ParserApi::PartialPreParse(&stream, extension);
|
| + pre_data = ParserApi::PartialPreParse(&stream,
|
| + extension,
|
| + harmony_block_scoping);
|
| } else {
|
| GenericStringUC16CharacterStream stream(source, 0, source->length());
|
| - pre_data = ParserApi::PartialPreParse(&stream, extension);
|
| + pre_data = ParserApi::PartialPreParse(&stream,
|
| + extension,
|
| + harmony_block_scoping);
|
| }
|
| }
|
|
|
| @@ -736,7 +742,7 @@
|
| function_info->set_start_position(lit->start_position());
|
| function_info->set_end_position(lit->end_position());
|
| function_info->set_is_expression(lit->is_expression());
|
| - function_info->set_is_anonymous(lit->name()->length() == 0);
|
| + function_info->set_is_anonymous(lit->is_anonymous());
|
| function_info->set_is_toplevel(is_toplevel);
|
| function_info->set_inferred_name(*lit->inferred_name());
|
| function_info->SetThisPropertyAssignmentsInfo(
|
|
|
| Property changes on: src/compiler.cc
|
| ___________________________________________________________________
|
| Deleted: svn:executable
|
| - *
|
|
|
|
|