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 3400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3411 } | 3411 } |
3412 | 3412 |
3413 | 3413 |
3414 InlineCacheState Code::ic_state() { | 3414 InlineCacheState Code::ic_state() { |
3415 InlineCacheState result = ExtractICStateFromFlags(flags()); | 3415 InlineCacheState result = ExtractICStateFromFlags(flags()); |
3416 // Only allow uninitialized or debugger states for non-IC code | 3416 // Only allow uninitialized or debugger states for non-IC code |
3417 // objects. This is used in the debugger to determine whether or not | 3417 // objects. This is used in the debugger to determine whether or not |
3418 // a call to code object has been replaced with a debug break call. | 3418 // a call to code object has been replaced with a debug break call. |
3419 ASSERT(is_inline_cache_stub() || | 3419 ASSERT(is_inline_cache_stub() || |
3420 result == UNINITIALIZED || | 3420 result == UNINITIALIZED || |
3421 result == DEBUG_BREAK || | 3421 result == DEBUG_STUB); |
3422 result == DEBUG_PREPARE_STEP_IN); | |
3423 return result; | 3422 return result; |
3424 } | 3423 } |
3425 | 3424 |
3426 | 3425 |
3427 Code::ExtraICState Code::extra_ic_state() { | 3426 Code::ExtraICState Code::extra_ic_state() { |
3428 ASSERT(is_inline_cache_stub()); | 3427 ASSERT(is_inline_cache_stub() || ic_state() == DEBUG_STUB); |
3429 return ExtractExtraICStateFromFlags(flags()); | 3428 return ExtractExtraICStateFromFlags(flags()); |
3430 } | 3429 } |
3431 | 3430 |
3432 | 3431 |
3433 Code::StubType Code::type() { | 3432 Code::StubType Code::type() { |
3434 return ExtractTypeFromFlags(flags()); | 3433 return ExtractTypeFromFlags(flags()); |
3435 } | 3434 } |
3436 | 3435 |
3437 | 3436 |
3438 int Code::arguments_count() { | 3437 int Code::arguments_count() { |
(...skipping 2344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5783 #undef WRITE_UINT32_FIELD | 5782 #undef WRITE_UINT32_FIELD |
5784 #undef READ_SHORT_FIELD | 5783 #undef READ_SHORT_FIELD |
5785 #undef WRITE_SHORT_FIELD | 5784 #undef WRITE_SHORT_FIELD |
5786 #undef READ_BYTE_FIELD | 5785 #undef READ_BYTE_FIELD |
5787 #undef WRITE_BYTE_FIELD | 5786 #undef WRITE_BYTE_FIELD |
5788 | 5787 |
5789 | 5788 |
5790 } } // namespace v8::internal | 5789 } } // namespace v8::internal |
5791 | 5790 |
5792 #endif // V8_OBJECTS_INL_H_ | 5791 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |