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

Side by Side Diff: src/compiler.cc

Issue 13179002: Add parser support for generators. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: added additional syntax tests Created 7 years, 9 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
« no previous file with comments | « src/ast.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 function_info->set_allows_lazy_compilation_without_context( 1114 function_info->set_allows_lazy_compilation_without_context(
1115 lit->AllowsLazyCompilationWithoutContext()); 1115 lit->AllowsLazyCompilationWithoutContext());
1116 function_info->set_language_mode(lit->language_mode()); 1116 function_info->set_language_mode(lit->language_mode());
1117 function_info->set_uses_arguments(lit->scope()->arguments() != NULL); 1117 function_info->set_uses_arguments(lit->scope()->arguments() != NULL);
1118 function_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); 1118 function_info->set_has_duplicate_parameters(lit->has_duplicate_parameters());
1119 function_info->set_ast_node_count(lit->ast_node_count()); 1119 function_info->set_ast_node_count(lit->ast_node_count());
1120 function_info->set_is_function(lit->is_function()); 1120 function_info->set_is_function(lit->is_function());
1121 function_info->set_dont_optimize(lit->flags()->Contains(kDontOptimize)); 1121 function_info->set_dont_optimize(lit->flags()->Contains(kDontOptimize));
1122 function_info->set_dont_inline(lit->flags()->Contains(kDontInline)); 1122 function_info->set_dont_inline(lit->flags()->Contains(kDontInline));
1123 function_info->set_dont_cache(lit->flags()->Contains(kDontCache)); 1123 function_info->set_dont_cache(lit->flags()->Contains(kDontCache));
1124 function_info->set_is_generator(lit->is_generator());
1124 } 1125 }
1125 1126
1126 1127
1127 void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, 1128 void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag,
1128 CompilationInfo* info, 1129 CompilationInfo* info,
1129 Handle<SharedFunctionInfo> shared) { 1130 Handle<SharedFunctionInfo> shared) {
1130 // SharedFunctionInfo is passed separately, because if CompilationInfo 1131 // SharedFunctionInfo is passed separately, because if CompilationInfo
1131 // was created using Script object, it will not have it. 1132 // was created using Script object, it will not have it.
1132 1133
1133 // Log the code generation. If source information is available include 1134 // Log the code generation. If source information is available include
(...skipping 23 matching lines...) Expand all
1157 } 1158 }
1158 } 1159 }
1159 1160
1160 GDBJIT(AddCode(Handle<String>(shared->DebugName()), 1161 GDBJIT(AddCode(Handle<String>(shared->DebugName()),
1161 Handle<Script>(info->script()), 1162 Handle<Script>(info->script()),
1162 Handle<Code>(info->code()), 1163 Handle<Code>(info->code()),
1163 info)); 1164 info));
1164 } 1165 }
1165 1166
1166 } } // namespace v8::internal 1167 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698