| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 9180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9191 code()->optimizable()); | 9191 code()->optimizable()); |
| 9192 set_code_no_write_barrier( | 9192 set_code_no_write_barrier( |
| 9193 GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile)); | 9193 GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile)); |
| 9194 // No write barrier required, since the builtin is part of the root set. | 9194 // No write barrier required, since the builtin is part of the root set. |
| 9195 } | 9195 } |
| 9196 | 9196 |
| 9197 | 9197 |
| 9198 void JSFunction::MarkForParallelRecompilation() { | 9198 void JSFunction::MarkForParallelRecompilation() { |
| 9199 ASSERT(is_compiled() && !IsOptimized()); | 9199 ASSERT(is_compiled() && !IsOptimized()); |
| 9200 ASSERT(shared()->allows_lazy_compilation() || code()->optimizable()); | 9200 ASSERT(shared()->allows_lazy_compilation() || code()->optimizable()); |
| 9201 ASSERT(FLAG_parallel_recompilation); | 9201 if (!FLAG_parallel_recompilation) { |
| 9202 JSFunction::MarkForLazyRecompilation(); |
| 9203 return; |
| 9204 } |
| 9202 if (FLAG_trace_parallel_recompilation) { | 9205 if (FLAG_trace_parallel_recompilation) { |
| 9203 PrintF(" ** Marking "); | 9206 PrintF(" ** Marking "); |
| 9204 PrintName(); | 9207 PrintName(); |
| 9205 PrintF(" for parallel recompilation.\n"); | 9208 PrintF(" for parallel recompilation.\n"); |
| 9206 } | 9209 } |
| 9207 set_code_no_write_barrier( | 9210 set_code_no_write_barrier( |
| 9208 GetIsolate()->builtins()->builtin(Builtins::kParallelRecompile)); | 9211 GetIsolate()->builtins()->builtin(Builtins::kParallelRecompile)); |
| 9209 // No write barrier required, since the builtin is part of the root set. | 9212 // No write barrier required, since the builtin is part of the root set. |
| 9210 } | 9213 } |
| 9211 | 9214 |
| (...skipping 6602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15814 return static_cast<Type*>(type_raw()); | 15817 return static_cast<Type*>(type_raw()); |
| 15815 } | 15818 } |
| 15816 | 15819 |
| 15817 | 15820 |
| 15818 void PropertyCell::set_type(Type* type, WriteBarrierMode ignored) { | 15821 void PropertyCell::set_type(Type* type, WriteBarrierMode ignored) { |
| 15819 set_type_raw(type, ignored); | 15822 set_type_raw(type, ignored); |
| 15820 } | 15823 } |
| 15821 | 15824 |
| 15822 | 15825 |
| 15823 } } // namespace v8::internal | 15826 } } // namespace v8::internal |
| OLD | NEW |