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

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 2645403002: [Compiler] Enable use of seperate zones for parsing and compiling. (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/crankshaft/hydrogen.h" 5 #include "src/crankshaft/hydrogen.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 8019 matching lines...) Expand 10 before | Expand all | Expand 10 after
8030 8030
8031 // Parse and allocate variables. 8031 // Parse and allocate variables.
8032 // Use the same AstValueFactory for creating strings in the sub-compilation 8032 // Use the same AstValueFactory for creating strings in the sub-compilation
8033 // step, but don't transfer ownership to target_info. 8033 // step, but don't transfer ownership to target_info.
8034 Handle<SharedFunctionInfo> target_shared(target->shared()); 8034 Handle<SharedFunctionInfo> target_shared(target->shared());
8035 ParseInfo parse_info(target_shared, top_info()->parse_info()->zone_shared()); 8035 ParseInfo parse_info(target_shared, top_info()->parse_info()->zone_shared());
8036 parse_info.set_ast_value_factory( 8036 parse_info.set_ast_value_factory(
8037 top_info()->parse_info()->ast_value_factory()); 8037 top_info()->parse_info()->ast_value_factory());
8038 parse_info.set_ast_value_factory_owned(false); 8038 parse_info.set_ast_value_factory_owned(false);
8039 8039
8040 CompilationInfo target_info(&parse_info, target); 8040 Zone compile_zone(target_shared->GetIsolate()->allocator(), ZONE_NAME);
8041 CompilationInfo target_info(&compile_zone, &parse_info, target);
8041 8042
8042 if (inlining_kind != CONSTRUCT_CALL_RETURN && 8043 if (inlining_kind != CONSTRUCT_CALL_RETURN &&
8043 IsClassConstructor(target_shared->kind())) { 8044 IsClassConstructor(target_shared->kind())) {
8044 TraceInline(target, caller, "target is classConstructor"); 8045 TraceInline(target, caller, "target is classConstructor");
8045 return false; 8046 return false;
8046 } 8047 }
8047 8048
8048 if (target_shared->HasDebugInfo()) { 8049 if (target_shared->HasDebugInfo()) {
8049 TraceInline(target, caller, "target is being debugged"); 8050 TraceInline(target, caller, "target is being debugged");
8050 return false; 8051 return false;
(...skipping 4961 matching lines...) Expand 10 before | Expand all | Expand 10 after
13012 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13013 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13013 } 13014 }
13014 13015
13015 #ifdef DEBUG 13016 #ifdef DEBUG
13016 graph_->Verify(false); // No full verify. 13017 graph_->Verify(false); // No full verify.
13017 #endif 13018 #endif
13018 } 13019 }
13019 13020
13020 } // namespace internal 13021 } // namespace internal
13021 } // namespace v8 13022 } // namespace v8
OLDNEW
« src/crankshaft/hydrogen.h ('K') | « src/crankshaft/hydrogen.h ('k') | src/zone/zone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698