| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 362273e27ad2bc47ff2067068b4c8d4dd48266e9..046578426e6dbe93e08ea45298baed600e7a8fba 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,8 @@ 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->flags()->Contains(kDontCrankshaft));
|
| + shared->set_dont_inline(lit->flags()->Contains(kDontInline));
|
|
|
| if (info->AllowOptimize() && !shared->optimization_disabled()) {
|
| // If we're asked to always optimize, we compile the optimized
|
| @@ -750,6 +752,9 @@ 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->ast_node_count());
|
| + function_info->set_dont_crankshaft(lit->flags()->Contains(kDontCrankshaft));
|
| + function_info->set_dont_inline(lit->flags()->Contains(kDontInline));
|
| }
|
|
|
|
|
|
|