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