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 3035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3046 } | 3046 } |
3047 } | 3047 } |
3048 | 3048 |
3049 | 3049 |
3050 HGraph* HGraphBuilder::CreateGraph() { | 3050 HGraph* HGraphBuilder::CreateGraph() { |
3051 graph_ = new(zone()) HGraph(info()); | 3051 graph_ = new(zone()) HGraph(info()); |
3052 if (FLAG_hydrogen_stats) HStatistics::Instance()->Initialize(info()); | 3052 if (FLAG_hydrogen_stats) HStatistics::Instance()->Initialize(info()); |
3053 | 3053 |
3054 { | 3054 { |
3055 HPhase phase("H_Block building"); | 3055 HPhase phase("H_Block building"); |
| 3056 CompilationHandleScope handle_scope(info()); |
3056 current_block_ = graph()->entry_block(); | 3057 current_block_ = graph()->entry_block(); |
3057 | 3058 |
3058 Scope* scope = info()->scope(); | 3059 Scope* scope = info()->scope(); |
3059 if (scope->HasIllegalRedeclaration()) { | 3060 if (scope->HasIllegalRedeclaration()) { |
3060 Bailout("function with illegal redeclaration"); | 3061 Bailout("function with illegal redeclaration"); |
3061 return NULL; | 3062 return NULL; |
3062 } | 3063 } |
3063 if (scope->calls_eval()) { | 3064 if (scope->calls_eval()) { |
3064 Bailout("function calls eval"); | 3065 Bailout("function calls eval"); |
3065 return NULL; | 3066 return NULL; |
(...skipping 6370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9436 } | 9437 } |
9437 } | 9438 } |
9438 | 9439 |
9439 #ifdef DEBUG | 9440 #ifdef DEBUG |
9440 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 9441 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
9441 if (allocator_ != NULL) allocator_->Verify(); | 9442 if (allocator_ != NULL) allocator_->Verify(); |
9442 #endif | 9443 #endif |
9443 } | 9444 } |
9444 | 9445 |
9445 } } // namespace v8::internal | 9446 } } // namespace v8::internal |
OLD | NEW |