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 9481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9492 GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile)); | 9492 GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile)); |
9493 // No write barrier required, since the builtin is part of the root set. | 9493 // No write barrier required, since the builtin is part of the root set. |
9494 } | 9494 } |
9495 | 9495 |
9496 | 9496 |
9497 void JSFunction::MarkForConcurrentRecompilation() { | 9497 void JSFunction::MarkForConcurrentRecompilation() { |
9498 ASSERT(is_compiled() || GetIsolate()->DebuggerHasBreakPoints()); | 9498 ASSERT(is_compiled() || GetIsolate()->DebuggerHasBreakPoints()); |
9499 ASSERT(!IsOptimized()); | 9499 ASSERT(!IsOptimized()); |
9500 ASSERT(shared()->allows_lazy_compilation() || code()->optimizable()); | 9500 ASSERT(shared()->allows_lazy_compilation() || code()->optimizable()); |
9501 ASSERT(!shared()->is_generator()); | 9501 ASSERT(!shared()->is_generator()); |
9502 ASSERT(FLAG_concurrent_recompilation); | 9502 ASSERT(GetIsolate()->concurrent_recompilation_enabled()); |
9503 if (FLAG_trace_concurrent_recompilation) { | 9503 if (FLAG_trace_concurrent_recompilation) { |
9504 PrintF(" ** Marking "); | 9504 PrintF(" ** Marking "); |
9505 PrintName(); | 9505 PrintName(); |
9506 PrintF(" for concurrent recompilation.\n"); | 9506 PrintF(" for concurrent recompilation.\n"); |
9507 } | 9507 } |
9508 set_code_no_write_barrier( | 9508 set_code_no_write_barrier( |
9509 GetIsolate()->builtins()->builtin(Builtins::kConcurrentRecompile)); | 9509 GetIsolate()->builtins()->builtin(Builtins::kConcurrentRecompile)); |
9510 // No write barrier required, since the builtin is part of the root set. | 9510 // No write barrier required, since the builtin is part of the root set. |
9511 } | 9511 } |
9512 | 9512 |
9513 | 9513 |
9514 void JSFunction::MarkInRecompileQueue() { | 9514 void JSFunction::MarkInRecompileQueue() { |
9515 // We can only arrive here via the concurrent-recompilation builtin. If | 9515 // We can only arrive here via the concurrent-recompilation builtin. If |
9516 // break points were set, the code would point to the lazy-compile builtin. | 9516 // break points were set, the code would point to the lazy-compile builtin. |
9517 ASSERT(!GetIsolate()->DebuggerHasBreakPoints()); | 9517 ASSERT(!GetIsolate()->DebuggerHasBreakPoints()); |
9518 ASSERT(IsMarkedForConcurrentRecompilation() && !IsOptimized()); | 9518 ASSERT(IsMarkedForConcurrentRecompilation() && !IsOptimized()); |
9519 ASSERT(shared()->allows_lazy_compilation() || code()->optimizable()); | 9519 ASSERT(shared()->allows_lazy_compilation() || code()->optimizable()); |
9520 ASSERT(FLAG_concurrent_recompilation); | 9520 ASSERT(GetIsolate()->concurrent_recompilation_enabled()); |
9521 if (FLAG_trace_concurrent_recompilation) { | 9521 if (FLAG_trace_concurrent_recompilation) { |
9522 PrintF(" ** Queueing "); | 9522 PrintF(" ** Queueing "); |
9523 PrintName(); | 9523 PrintName(); |
9524 PrintF(" for concurrent recompilation.\n"); | 9524 PrintF(" for concurrent recompilation.\n"); |
9525 } | 9525 } |
9526 set_code_no_write_barrier( | 9526 set_code_no_write_barrier( |
9527 GetIsolate()->builtins()->builtin(Builtins::kInRecompileQueue)); | 9527 GetIsolate()->builtins()->builtin(Builtins::kInRecompileQueue)); |
9528 // No write barrier required, since the builtin is part of the root set. | 9528 // No write barrier required, since the builtin is part of the root set. |
9529 } | 9529 } |
9530 | 9530 |
(...skipping 7102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16633 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16633 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16634 static const char* error_messages_[] = { | 16634 static const char* error_messages_[] = { |
16635 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16635 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16636 }; | 16636 }; |
16637 #undef ERROR_MESSAGES_TEXTS | 16637 #undef ERROR_MESSAGES_TEXTS |
16638 return error_messages_[reason]; | 16638 return error_messages_[reason]; |
16639 } | 16639 } |
16640 | 16640 |
16641 | 16641 |
16642 } } // namespace v8::internal | 16642 } } // namespace v8::internal |
OLD | NEW |