Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 362273e27ad2bc47ff2067068b4c8d4dd48266e9..79c4c560005305aea233804ec40f7fbb5c006c4b 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1,4 +1,4 @@ |
-// Copyright 2011 the V8 project authors. All rights reserved. |
+// Copyright 2012 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -652,6 +652,10 @@ bool Compiler::CompileLazy(CompilationInfo* info) { |
// Check the function has compiled code. |
ASSERT(shared->is_compiled()); |
shared->set_code_age(0); |
+ shared->set_dont_crankshaft( |
+ lit->ast_properties()->flags()->Contains(kDontCrankshaft)); |
+ shared->set_dont_inline( |
+ lit->ast_properties()->flags()->Contains(kDontInline)); |
if (info->AllowOptimize() && !shared->optimization_disabled()) { |
// If we're asked to always optimize, we compile the optimized |
@@ -750,6 +754,11 @@ void Compiler::SetFunctionInfo(Handle<SharedFunctionInfo> function_info, |
function_info->set_language_mode(lit->language_mode()); |
function_info->set_uses_arguments(lit->scope()->arguments() != NULL); |
function_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); |
+ function_info->set_ast_node_count(lit->AstNodeCount()); |
+ function_info->set_dont_crankshaft( |
+ lit->ast_properties()->flags()->Contains(kDontCrankshaft)); |
+ function_info->set_dont_inline( |
+ lit->ast_properties()->flags()->Contains(kDontInline)); |
} |