| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/compiler.h" | 5 #include "src/compiler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "src/asmjs/asm-js.h" | 10 #include "src/asmjs/asm-js.h" |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 InstallUnoptimizedCode(job->info()); | 431 InstallUnoptimizedCode(job->info()); |
| 432 job->RecordUnoptimizedCompilationStats(); | 432 job->RecordUnoptimizedCompilationStats(); |
| 433 } | 433 } |
| 434 return status; | 434 return status; |
| 435 } | 435 } |
| 436 | 436 |
| 437 bool Renumber(ParseInfo* parse_info, | 437 bool Renumber(ParseInfo* parse_info, |
| 438 Compiler::EagerInnerFunctionLiterals* eager_literals) { | 438 Compiler::EagerInnerFunctionLiterals* eager_literals) { |
| 439 RuntimeCallTimerScope runtimeTimer(parse_info->isolate(), | 439 RuntimeCallTimerScope runtimeTimer(parse_info->isolate(), |
| 440 &RuntimeCallStats::CompileRenumber); | 440 &RuntimeCallStats::CompileRenumber); |
| 441 if (!AstNumbering::Renumber(parse_info->isolate(), parse_info->zone(), | 441 if (!AstNumbering::Renumber(parse_info->isolate()->stack_guard()->climit(), |
| 442 parse_info->literal(), eager_literals)) { | 442 parse_info->zone(), parse_info->literal(), |
| 443 eager_literals)) { |
| 443 return false; | 444 return false; |
| 444 } | 445 } |
| 445 Handle<SharedFunctionInfo> shared_info = parse_info->shared_info(); | 446 Handle<SharedFunctionInfo> shared_info = parse_info->shared_info(); |
| 446 if (!shared_info.is_null()) { | 447 if (!shared_info.is_null()) { |
| 447 FunctionLiteral* lit = parse_info->literal(); | 448 FunctionLiteral* lit = parse_info->literal(); |
| 448 shared_info->set_ast_node_count(lit->ast_node_count()); | 449 shared_info->set_ast_node_count(lit->ast_node_count()); |
| 449 if (lit->dont_optimize_reason() != kNoReason) { | 450 if (lit->dont_optimize_reason() != kNoReason) { |
| 450 shared_info->DisableOptimization(lit->dont_optimize_reason()); | 451 shared_info->DisableOptimization(lit->dont_optimize_reason()); |
| 451 } | 452 } |
| 452 if (lit->flags() & AstProperties::kMustUseIgnitionTurbo) { | 453 if (lit->flags() & AstProperties::kMustUseIgnitionTurbo) { |
| (...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1769 DCHECK(shared->is_compiled()); | 1770 DCHECK(shared->is_compiled()); |
| 1770 function->set_literals(cached.literals); | 1771 function->set_literals(cached.literals); |
| 1771 } else if (shared->is_compiled()) { | 1772 } else if (shared->is_compiled()) { |
| 1772 // TODO(mvstanton): pass pretenure flag to EnsureLiterals. | 1773 // TODO(mvstanton): pass pretenure flag to EnsureLiterals. |
| 1773 JSFunction::EnsureLiterals(function); | 1774 JSFunction::EnsureLiterals(function); |
| 1774 } | 1775 } |
| 1775 } | 1776 } |
| 1776 | 1777 |
| 1777 } // namespace internal | 1778 } // namespace internal |
| 1778 } // namespace v8 | 1779 } // namespace v8 |
| OLD | NEW |