Chromium Code Reviews| Index: src/compiler/pipeline.cc |
| diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
| index 1c2e58383cf35262f629779e4803fe99980be435..ba0294ebb301cbd1f134d065fd24aa8b5177a553 100644 |
| --- a/src/compiler/pipeline.cc |
| +++ b/src/compiler/pipeline.cc |
| @@ -313,11 +313,12 @@ class AstGraphBuilderWithPositions : public AstGraphBuilder { |
| SourcePositionTable* source_positions) |
| : AstGraphBuilder(local_zone, info, jsgraph, loop_assignment), |
| source_positions_(source_positions), |
| - start_position_(info->shared_info()->start_position()) {} |
| + start_position_(info->shared_info()->start_position()), |
| + stack_check_(!info->IsStub()) {} |
| bool CreateGraph(bool constant_context) { |
|
Michael Starzinger
2015/03/17 17:28:55
nit: Can we add a "bool stack_check" to the Create
Sven Panne
2015/03/18 08:45:55
Done.
|
| SourcePositionTable::Scope pos_scope(source_positions_, start_position_); |
| - return AstGraphBuilder::CreateGraph(constant_context); |
| + return AstGraphBuilder::CreateGraph(constant_context, stack_check_); |
| } |
| #define DEF_VISIT(type) \ |
| @@ -332,6 +333,7 @@ class AstGraphBuilderWithPositions : public AstGraphBuilder { |
| private: |
| SourcePositionTable* source_positions_; |
| SourcePosition start_position_; |
| + bool stack_check_; |
|
Michael Starzinger
2015/03/17 17:28:55
nit: This field is not required once the above com
Sven Panne
2015/03/18 08:45:55
Done.
|
| }; |