Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: src/objects.h

Issue 1695007: Moving more code to lookup an item from the native cache into code generator. (Closed)
Patch Set: Next round of Lasse's comments Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2310 matching lines...) Expand 10 before | Expand all | Expand 10 after
2321 class JSFunctionResultCache: public FixedArray { 2321 class JSFunctionResultCache: public FixedArray {
2322 public: 2322 public:
2323 static const int kFactoryIndex = 0; 2323 static const int kFactoryIndex = 0;
2324 static const int kFingerIndex = kFactoryIndex + 1; 2324 static const int kFingerIndex = kFactoryIndex + 1;
2325 static const int kCacheSizeIndex = kFingerIndex + 1; 2325 static const int kCacheSizeIndex = kFingerIndex + 1;
2326 static const int kDummyIndex = kCacheSizeIndex + 1; 2326 static const int kDummyIndex = kCacheSizeIndex + 1;
2327 static const int kEntriesIndex = kDummyIndex + 1; 2327 static const int kEntriesIndex = kDummyIndex + 1;
2328 2328
2329 static const int kEntrySize = 2; // key + value 2329 static const int kEntrySize = 2; // key + value
2330 2330
2331 static const int kFactoryOffset = kHeaderSize;
2332 static const int kFingerOffset = kFactoryOffset + kPointerSize;
2333 static const int kCacheSizeOffset = kFingerOffset + kPointerSize;
2334
2331 inline void MakeZeroSize(); 2335 inline void MakeZeroSize();
2332 inline void Clear(); 2336 inline void Clear();
2333 2337
2334 // Casting 2338 // Casting
2335 static inline JSFunctionResultCache* cast(Object* obj); 2339 static inline JSFunctionResultCache* cast(Object* obj);
2336 2340
2337 #ifdef DEBUG 2341 #ifdef DEBUG
2338 void JSFunctionResultCacheVerify(); 2342 void JSFunctionResultCacheVerify();
2339 #endif 2343 #endif
2340 }; 2344 };
(...skipping 2818 matching lines...) Expand 10 before | Expand all | Expand 10 after
5159 } else { 5163 } else {
5160 value &= ~(1 << bit_position); 5164 value &= ~(1 << bit_position);
5161 } 5165 }
5162 return value; 5166 return value;
5163 } 5167 }
5164 }; 5168 };
5165 5169
5166 } } // namespace v8::internal 5170 } } // namespace v8::internal
5167 5171
5168 #endif // V8_OBJECTS_H_ 5172 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698