| 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 2430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2441 bool JSFunction::IsBoilerplate() { | 2441 bool JSFunction::IsBoilerplate() { |
| 2442 return map() == Heap::boilerplate_function_map(); | 2442 return map() == Heap::boilerplate_function_map(); |
| 2443 } | 2443 } |
| 2444 | 2444 |
| 2445 | 2445 |
| 2446 bool JSFunction::IsBuiltin() { | 2446 bool JSFunction::IsBuiltin() { |
| 2447 return context()->global()->IsJSBuiltinsObject(); | 2447 return context()->global()->IsJSBuiltinsObject(); |
| 2448 } | 2448 } |
| 2449 | 2449 |
| 2450 | 2450 |
| 2451 bool JSObject::IsLoaded() { | |
| 2452 return !map()->needs_loading(); | |
| 2453 } | |
| 2454 | |
| 2455 | |
| 2456 Code* JSFunction::code() { | 2451 Code* JSFunction::code() { |
| 2457 return shared()->code(); | 2452 return shared()->code(); |
| 2458 } | 2453 } |
| 2459 | 2454 |
| 2460 | 2455 |
| 2461 void JSFunction::set_code(Code* value) { | 2456 void JSFunction::set_code(Code* value) { |
| 2462 shared()->set_code(value); | 2457 shared()->set_code(value); |
| 2463 } | 2458 } |
| 2464 | 2459 |
| 2465 | 2460 |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3040 #undef WRITE_INT_FIELD | 3035 #undef WRITE_INT_FIELD |
| 3041 #undef READ_SHORT_FIELD | 3036 #undef READ_SHORT_FIELD |
| 3042 #undef WRITE_SHORT_FIELD | 3037 #undef WRITE_SHORT_FIELD |
| 3043 #undef READ_BYTE_FIELD | 3038 #undef READ_BYTE_FIELD |
| 3044 #undef WRITE_BYTE_FIELD | 3039 #undef WRITE_BYTE_FIELD |
| 3045 | 3040 |
| 3046 | 3041 |
| 3047 } } // namespace v8::internal | 3042 } } // namespace v8::internal |
| 3048 | 3043 |
| 3049 #endif // V8_OBJECTS_INL_H_ | 3044 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |