| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |