Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: src/compiler.cc

Issue 12646003: Add parser support for generators. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: Fix bad initialization list in last preparser commit Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 function_info->set_allows_lazy_compilation_without_context( 1090 function_info->set_allows_lazy_compilation_without_context(
1091 lit->AllowsLazyCompilationWithoutContext()); 1091 lit->AllowsLazyCompilationWithoutContext());
1092 function_info->set_language_mode(lit->language_mode()); 1092 function_info->set_language_mode(lit->language_mode());
1093 function_info->set_uses_arguments(lit->scope()->arguments() != NULL); 1093 function_info->set_uses_arguments(lit->scope()->arguments() != NULL);
1094 function_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); 1094 function_info->set_has_duplicate_parameters(lit->has_duplicate_parameters());
1095 function_info->set_ast_node_count(lit->ast_node_count()); 1095 function_info->set_ast_node_count(lit->ast_node_count());
1096 function_info->set_is_function(lit->is_function()); 1096 function_info->set_is_function(lit->is_function());
1097 function_info->set_dont_optimize(lit->flags()->Contains(kDontOptimize)); 1097 function_info->set_dont_optimize(lit->flags()->Contains(kDontOptimize));
1098 function_info->set_dont_inline(lit->flags()->Contains(kDontInline)); 1098 function_info->set_dont_inline(lit->flags()->Contains(kDontInline));
1099 function_info->set_dont_cache(lit->flags()->Contains(kDontCache)); 1099 function_info->set_dont_cache(lit->flags()->Contains(kDontCache));
1100 function_info->set_is_generator(lit->is_generator());
1100 } 1101 }
1101 1102
1102 1103
1103 void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, 1104 void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag,
1104 CompilationInfo* info, 1105 CompilationInfo* info,
1105 Handle<SharedFunctionInfo> shared) { 1106 Handle<SharedFunctionInfo> shared) {
1106 // SharedFunctionInfo is passed separately, because if CompilationInfo 1107 // SharedFunctionInfo is passed separately, because if CompilationInfo
1107 // was created using Script object, it will not have it. 1108 // was created using Script object, it will not have it.
1108 1109
1109 // Log the code generation. If source information is available include 1110 // Log the code generation. If source information is available include
(...skipping 23 matching lines...) Expand all
1133 } 1134 }
1134 } 1135 }
1135 1136
1136 GDBJIT(AddCode(Handle<String>(shared->DebugName()), 1137 GDBJIT(AddCode(Handle<String>(shared->DebugName()),
1137 Handle<Script>(info->script()), 1138 Handle<Script>(info->script()),
1138 Handle<Code>(info->code()), 1139 Handle<Code>(info->code()),
1139 info)); 1140 info));
1140 } 1141 }
1141 1142
1142 } } // namespace v8::internal 1143 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/flag-definitions.h » ('j') | test/mjsunit/harmony/generators-parsing.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698