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

Side by Side Diff: src/compiler.h

Issue 177493002: Introduce SynchronizedScope to allow heap access from compiler thread. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | « no previous file | src/execution.h » ('j') | src/optimizing-compiler-thread.cc » ('J')
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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 241 }
242 242
243 // Determines whether or not to insert a self-optimization header. 243 // Determines whether or not to insert a self-optimization header.
244 bool ShouldSelfOptimize(); 244 bool ShouldSelfOptimize();
245 245
246 void set_deferred_handles(DeferredHandles* deferred_handles) { 246 void set_deferred_handles(DeferredHandles* deferred_handles) {
247 ASSERT(deferred_handles_ == NULL); 247 ASSERT(deferred_handles_ == NULL);
248 deferred_handles_ = deferred_handles; 248 deferred_handles_ = deferred_handles;
249 } 249 }
250 250
251 bool is_concurrent() { return deferred_handles_ != NULL; }
252
251 ZoneList<Handle<HeapObject> >* dependencies( 253 ZoneList<Handle<HeapObject> >* dependencies(
252 DependentCode::DependencyGroup group) { 254 DependentCode::DependencyGroup group) {
253 if (dependencies_[group] == NULL) { 255 if (dependencies_[group] == NULL) {
254 dependencies_[group] = new(zone_) ZoneList<Handle<HeapObject> >(2, zone_); 256 dependencies_[group] = new(zone_) ZoneList<Handle<HeapObject> >(2, zone_);
255 } 257 }
256 return dependencies_[group]; 258 return dependencies_[group];
257 } 259 }
258 260
259 void CommitDependencies(Handle<Code> code); 261 void CommitDependencies(Handle<Code> code);
260 262
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 unsigned info_zone_start_allocation_size_; 681 unsigned info_zone_start_allocation_size_;
680 ElapsedTimer timer_; 682 ElapsedTimer timer_;
681 683
682 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 684 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
683 }; 685 };
684 686
685 687
686 } } // namespace v8::internal 688 } } // namespace v8::internal
687 689
688 #endif // V8_COMPILER_H_ 690 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/execution.h » ('j') | src/optimizing-compiler-thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698