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

Side by Side Diff: src/hydrogen.cc

Issue 10640012: Add a second kind of HandleScope that ties the lifetime of Handles created in its scope to the life… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits. 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());
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
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
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