OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |