OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2334 // TODO(1242782): Create a code kind for uncompiled code. | 2334 // TODO(1242782): Create a code kind for uncompiled code. |
2335 return code()->kind() != Code::STUB; | 2335 return code()->kind() != Code::STUB; |
2336 } | 2336 } |
2337 | 2337 |
2338 | 2338 |
2339 bool JSFunction::IsBoilerplate() { | 2339 bool JSFunction::IsBoilerplate() { |
2340 return map() == Heap::boilerplate_function_map(); | 2340 return map() == Heap::boilerplate_function_map(); |
2341 } | 2341 } |
2342 | 2342 |
2343 | 2343 |
| 2344 bool JSFunction::IsBuiltin() { |
| 2345 return context()->global()->IsJSBuiltinsObject(); |
| 2346 } |
| 2347 |
| 2348 |
2344 bool JSObject::IsLoaded() { | 2349 bool JSObject::IsLoaded() { |
2345 return !map()->needs_loading(); | 2350 return !map()->needs_loading(); |
2346 } | 2351 } |
2347 | 2352 |
2348 | 2353 |
2349 Code* JSFunction::code() { | 2354 Code* JSFunction::code() { |
2350 return shared()->code(); | 2355 return shared()->code(); |
2351 } | 2356 } |
2352 | 2357 |
2353 | 2358 |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2842 #undef WRITE_INT_FIELD | 2847 #undef WRITE_INT_FIELD |
2843 #undef READ_SHORT_FIELD | 2848 #undef READ_SHORT_FIELD |
2844 #undef WRITE_SHORT_FIELD | 2849 #undef WRITE_SHORT_FIELD |
2845 #undef READ_BYTE_FIELD | 2850 #undef READ_BYTE_FIELD |
2846 #undef WRITE_BYTE_FIELD | 2851 #undef WRITE_BYTE_FIELD |
2847 | 2852 |
2848 | 2853 |
2849 } } // namespace v8::internal | 2854 } } // namespace v8::internal |
2850 | 2855 |
2851 #endif // V8_OBJECTS_INL_H_ | 2856 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |