Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: src/hydrogen.cc

Issue 10698031: Revert the change adding CompilationHandleScope. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/handles.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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());
3057 current_block_ = graph()->entry_block(); 3056 current_block_ = graph()->entry_block();
3058 3057
3059 Scope* scope = info()->scope(); 3058 Scope* scope = info()->scope();
3060 if (scope->HasIllegalRedeclaration()) { 3059 if (scope->HasIllegalRedeclaration()) {
3061 Bailout("function with illegal redeclaration"); 3060 Bailout("function with illegal redeclaration");
3062 return NULL; 3061 return NULL;
3063 } 3062 }
3064 if (scope->calls_eval()) { 3063 if (scope->calls_eval()) {
3065 Bailout("function calls eval"); 3064 Bailout("function calls eval");
3066 return NULL; 3065 return NULL;
(...skipping 6373 matching lines...) Expand 10 before | Expand all | Expand 10 after
9440 } 9439 }
9441 } 9440 }
9442 9441
9443 #ifdef DEBUG 9442 #ifdef DEBUG
9444 if (graph_ != NULL) graph_->Verify(false); // No full verify. 9443 if (graph_ != NULL) graph_->Verify(false); // No full verify.
9445 if (allocator_ != NULL) allocator_->Verify(); 9444 if (allocator_ != NULL) allocator_->Verify();
9446 #endif 9445 #endif
9447 } 9446 }
9448 9447
9449 } } // namespace v8::internal 9448 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698