| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 2304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2315 // [2]: current cache size | 2315 // [2]: current cache size |
| 2316 // [3]: dummy field. | 2316 // [3]: dummy field. |
| 2317 // The rest of array are key/value pairs. | 2317 // The rest of array are key/value pairs. |
| 2318 class JSFunctionResultCache: public FixedArray { | 2318 class JSFunctionResultCache: public FixedArray { |
| 2319 public: | 2319 public: |
| 2320 static const int kFactoryIndex = 0; | 2320 static const int kFactoryIndex = 0; |
| 2321 static const int kFingerIndex = kFactoryIndex + 1; | 2321 static const int kFingerIndex = kFactoryIndex + 1; |
| 2322 static const int kCacheSizeIndex = kFingerIndex + 1; | 2322 static const int kCacheSizeIndex = kFingerIndex + 1; |
| 2323 static const int kDummyIndex = kCacheSizeIndex + 1; | 2323 static const int kDummyIndex = kCacheSizeIndex + 1; |
| 2324 static const int kEntriesIndex = kDummyIndex + 1; | 2324 static const int kEntriesIndex = kDummyIndex + 1; |
| 2325 |
| 2326 static const int kEntrySize = 2; // key + value |
| 2325 }; | 2327 }; |
| 2326 | 2328 |
| 2327 | 2329 |
| 2328 // ByteArray represents fixed sized byte arrays. Used by the outside world, | 2330 // ByteArray represents fixed sized byte arrays. Used by the outside world, |
| 2329 // such as PCRE, and also by the memory allocator and garbage collector to | 2331 // such as PCRE, and also by the memory allocator and garbage collector to |
| 2330 // fill in free blocks in the heap. | 2332 // fill in free blocks in the heap. |
| 2331 class ByteArray: public Array { | 2333 class ByteArray: public Array { |
| 2332 public: | 2334 public: |
| 2333 // Setter and getter. | 2335 // Setter and getter. |
| 2334 inline byte get(int index); | 2336 inline byte get(int index); |
| (...skipping 2796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5131 } else { | 5133 } else { |
| 5132 value &= ~(1 << bit_position); | 5134 value &= ~(1 << bit_position); |
| 5133 } | 5135 } |
| 5134 return value; | 5136 return value; |
| 5135 } | 5137 } |
| 5136 }; | 5138 }; |
| 5137 | 5139 |
| 5138 } } // namespace v8::internal | 5140 } } // namespace v8::internal |
| 5139 | 5141 |
| 5140 #endif // V8_OBJECTS_H_ | 5142 #endif // V8_OBJECTS_H_ |
| OLD | NEW |