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

Side by Side Diff: src/compiler.h

Issue 68203029: Make number of available threads isolate-dependent and expose it to ResourceConstraints. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comments Created 7 years, 1 month 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/api.cc ('k') | src/execution.cc » ('j') | 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 Handle<Foreign> object_wrapper() { 296 Handle<Foreign> object_wrapper() {
297 if (object_wrapper_.is_null()) { 297 if (object_wrapper_.is_null()) {
298 object_wrapper_ = 298 object_wrapper_ =
299 isolate()->factory()->NewForeign(reinterpret_cast<Address>(this)); 299 isolate()->factory()->NewForeign(reinterpret_cast<Address>(this));
300 } 300 }
301 return object_wrapper_; 301 return object_wrapper_;
302 } 302 }
303 303
304 void AbortDueToDependencyChange() { 304 void AbortDueToDependencyChange() {
305 ASSERT(!isolate()->optimizing_compiler_thread()->IsOptimizerThread()); 305 ASSERT(!OptimizingCompilerThread::IsOptimizerThread(isolate()));
306 abort_due_to_dependency_ = true; 306 abort_due_to_dependency_ = true;
307 } 307 }
308 308
309 bool HasAbortedDueToDependencyChange() { 309 bool HasAbortedDueToDependencyChange() {
310 ASSERT(!isolate()->optimizing_compiler_thread()->IsOptimizerThread()); 310 ASSERT(!OptimizingCompilerThread::IsOptimizerThread(isolate()));
311 return abort_due_to_dependency_; 311 return abort_due_to_dependency_;
312 } 312 }
313 313
314 void set_osr_pc_offset(uint32_t pc_offset) { 314 void set_osr_pc_offset(uint32_t pc_offset) {
315 osr_pc_offset_ = pc_offset; 315 osr_pc_offset_ = pc_offset;
316 } 316 }
317 317
318 bool HasSameOsrEntry(Handle<JSFunction> function, uint32_t pc_offset) { 318 bool HasSameOsrEntry(Handle<JSFunction> function, uint32_t pc_offset) {
319 return osr_pc_offset_ == pc_offset && function.is_identical_to(closure_); 319 return osr_pc_offset_ == pc_offset && function.is_identical_to(closure_);
320 } 320 }
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 unsigned info_zone_start_allocation_size_; 671 unsigned info_zone_start_allocation_size_;
672 ElapsedTimer timer_; 672 ElapsedTimer timer_;
673 673
674 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 674 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
675 }; 675 };
676 676
677 677
678 } } // namespace v8::internal 678 } } // namespace v8::internal
679 679
680 #endif // V8_COMPILER_H_ 680 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698