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 6670 matching lines...) Loading... |
6681 BailoutId osr_ast_id); | 6681 BailoutId osr_ast_id); |
6682 | 6682 |
6683 // Layout description of the optimized code map. | 6683 // Layout description of the optimized code map. |
6684 static const int kNextMapIndex = 0; | 6684 static const int kNextMapIndex = 0; |
6685 static const int kEntriesStart = 1; | 6685 static const int kEntriesStart = 1; |
6686 static const int kContextOffset = 0; | 6686 static const int kContextOffset = 0; |
6687 static const int kCachedCodeOffset = 1; | 6687 static const int kCachedCodeOffset = 1; |
6688 static const int kLiteralsOffset = 2; | 6688 static const int kLiteralsOffset = 2; |
6689 static const int kOsrAstIdOffset = 3; | 6689 static const int kOsrAstIdOffset = 3; |
6690 static const int kEntryLength = 4; | 6690 static const int kEntryLength = 4; |
6691 static const int kFirstContextSlot = FixedArray::kHeaderSize + | |
6692 (kEntriesStart + kContextOffset) * kPointerSize; | |
6693 static const int kFirstCodeSlot = FixedArray::kHeaderSize + | |
6694 (kEntriesStart + kCachedCodeOffset) * kPointerSize; | |
6695 static const int kFirstOsrAstIdSlot = FixedArray::kHeaderSize + | |
6696 (kEntriesStart + kOsrAstIdOffset) * kPointerSize; | |
6697 static const int kSecondEntryIndex = kEntryLength + kEntriesStart; | |
6698 static const int kInitialLength = kEntriesStart + kEntryLength; | 6691 static const int kInitialLength = kEntriesStart + kEntryLength; |
6699 | 6692 |
6700 // [scope_info]: Scope info. | 6693 // [scope_info]: Scope info. |
6701 DECL_ACCESSORS(scope_info, ScopeInfo) | 6694 DECL_ACCESSORS(scope_info, ScopeInfo) |
6702 | 6695 |
6703 // [construct stub]: Code stub for constructing instances of this function. | 6696 // [construct stub]: Code stub for constructing instances of this function. |
6704 DECL_ACCESSORS(construct_stub, Code) | 6697 DECL_ACCESSORS(construct_stub, Code) |
6705 | 6698 |
6706 // Returns if this function has been compiled to native code yet. | 6699 // Returns if this function has been compiled to native code yet. |
6707 inline bool is_compiled(); | 6700 inline bool is_compiled(); |
(...skipping 4070 matching lines...) Loading... |
10778 } else { | 10771 } else { |
10779 value &= ~(1 << bit_position); | 10772 value &= ~(1 << bit_position); |
10780 } | 10773 } |
10781 return value; | 10774 return value; |
10782 } | 10775 } |
10783 }; | 10776 }; |
10784 | 10777 |
10785 } } // namespace v8::internal | 10778 } } // namespace v8::internal |
10786 | 10779 |
10787 #endif // V8_OBJECTS_H_ | 10780 #endif // V8_OBJECTS_H_ |
OLD | NEW |