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 4185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4196 bool JSFunction::IsOptimizable() { | 4196 bool JSFunction::IsOptimizable() { |
4197 return code()->kind() == Code::FUNCTION && code()->optimizable(); | 4197 return code()->kind() == Code::FUNCTION && code()->optimizable(); |
4198 } | 4198 } |
4199 | 4199 |
4200 | 4200 |
4201 bool JSFunction::IsMarkedForLazyRecompilation() { | 4201 bool JSFunction::IsMarkedForLazyRecompilation() { |
4202 return code() == GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile); | 4202 return code() == GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile); |
4203 } | 4203 } |
4204 | 4204 |
4205 | 4205 |
| 4206 bool JSFunction::IsMarkedForParallelRecompilation() { |
| 4207 return code() == |
| 4208 GetIsolate()->builtins()->builtin(Builtins::kParallelRecompile); |
| 4209 } |
| 4210 |
| 4211 |
| 4212 bool JSFunction::IsInRecompileQueue() { |
| 4213 return code() == GetIsolate()->builtins()->builtin( |
| 4214 Builtins::kInRecompileQueue); |
| 4215 } |
| 4216 |
| 4217 |
4206 Code* JSFunction::code() { | 4218 Code* JSFunction::code() { |
4207 return Code::cast(unchecked_code()); | 4219 return Code::cast(unchecked_code()); |
4208 } | 4220 } |
4209 | 4221 |
4210 | 4222 |
4211 Code* JSFunction::unchecked_code() { | 4223 Code* JSFunction::unchecked_code() { |
4212 return reinterpret_cast<Code*>( | 4224 return reinterpret_cast<Code*>( |
4213 Code::GetObjectFromEntryAddress(FIELD_ADDR(this, kCodeEntryOffset))); | 4225 Code::GetObjectFromEntryAddress(FIELD_ADDR(this, kCodeEntryOffset))); |
4214 } | 4226 } |
4215 | 4227 |
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5323 #undef WRITE_UINT32_FIELD | 5335 #undef WRITE_UINT32_FIELD |
5324 #undef READ_SHORT_FIELD | 5336 #undef READ_SHORT_FIELD |
5325 #undef WRITE_SHORT_FIELD | 5337 #undef WRITE_SHORT_FIELD |
5326 #undef READ_BYTE_FIELD | 5338 #undef READ_BYTE_FIELD |
5327 #undef WRITE_BYTE_FIELD | 5339 #undef WRITE_BYTE_FIELD |
5328 | 5340 |
5329 | 5341 |
5330 } } // namespace v8::internal | 5342 } } // namespace v8::internal |
5331 | 5343 |
5332 #endif // V8_OBJECTS_INL_H_ | 5344 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |