Chromium Code Reviews| 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 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1116 lit->AllowsLazyCompilationWithoutContext()); | 1116 lit->AllowsLazyCompilationWithoutContext()); |
| 1117 function_info->set_language_mode(lit->language_mode()); | 1117 function_info->set_language_mode(lit->language_mode()); |
| 1118 function_info->set_uses_arguments(lit->scope()->arguments() != NULL); | 1118 function_info->set_uses_arguments(lit->scope()->arguments() != NULL); |
| 1119 function_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); | 1119 function_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); |
| 1120 function_info->set_ast_node_count(lit->ast_node_count()); | 1120 function_info->set_ast_node_count(lit->ast_node_count()); |
| 1121 function_info->set_is_function(lit->is_function()); | 1121 function_info->set_is_function(lit->is_function()); |
| 1122 function_info->set_dont_optimize(lit->flags()->Contains(kDontOptimize)); | 1122 function_info->set_dont_optimize(lit->flags()->Contains(kDontOptimize)); |
| 1123 function_info->set_dont_inline(lit->flags()->Contains(kDontInline)); | 1123 function_info->set_dont_inline(lit->flags()->Contains(kDontInline)); |
| 1124 function_info->set_dont_cache(lit->flags()->Contains(kDontCache)); | 1124 function_info->set_dont_cache(lit->flags()->Contains(kDontCache)); |
| 1125 function_info->set_is_generator(lit->is_generator()); | 1125 function_info->set_is_generator(lit->is_generator()); |
| 1126 if (lit->is_generator()) { | |
|
Michael Starzinger
2013/04/17 12:52:19
Can we move this into Factory::NewSharedFunctionIn
wingo
2013/04/17 14:23:51
Done.
| |
| 1127 String *class_name = function_info->GetHeap()->Generator_string(); | |
| 1128 function_info->set_instance_class_name(class_name); | |
| 1129 } | |
| 1126 } | 1130 } |
| 1127 | 1131 |
| 1128 | 1132 |
| 1129 void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, | 1133 void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
| 1130 CompilationInfo* info, | 1134 CompilationInfo* info, |
| 1131 Handle<SharedFunctionInfo> shared) { | 1135 Handle<SharedFunctionInfo> shared) { |
| 1132 // SharedFunctionInfo is passed separately, because if CompilationInfo | 1136 // SharedFunctionInfo is passed separately, because if CompilationInfo |
| 1133 // was created using Script object, it will not have it. | 1137 // was created using Script object, it will not have it. |
| 1134 | 1138 |
| 1135 // Log the code generation. If source information is available include | 1139 // Log the code generation. If source information is available include |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 1159 } | 1163 } |
| 1160 } | 1164 } |
| 1161 | 1165 |
| 1162 GDBJIT(AddCode(Handle<String>(shared->DebugName()), | 1166 GDBJIT(AddCode(Handle<String>(shared->DebugName()), |
| 1163 Handle<Script>(info->script()), | 1167 Handle<Script>(info->script()), |
| 1164 Handle<Code>(info->code()), | 1168 Handle<Code>(info->code()), |
| 1165 info)); | 1169 info)); |
| 1166 } | 1170 } |
| 1167 | 1171 |
| 1168 } } // namespace v8::internal | 1172 } } // namespace v8::internal |
| OLD | NEW |