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

Side by Side Diff: src/objects-inl.h

Issue 7879: Introduce a lookup cache class in the runtime system and use it for... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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 | Annotate | Revision Log
OLDNEW
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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 bool Object::IsCompilationCacheTable() { 347 bool Object::IsCompilationCacheTable() {
348 return IsHashTable(); 348 return IsHashTable();
349 } 349 }
350 350
351 351
352 bool Object::IsMapCache() { 352 bool Object::IsMapCache() {
353 return IsHashTable(); 353 return IsHashTable();
354 } 354 }
355 355
356 356
357 bool Object::IsLookupCache() {
358 return IsHashTable();
359 }
360
361
357 bool Object::IsPrimitive() { 362 bool Object::IsPrimitive() {
358 return IsOddball() || IsNumber() || IsString(); 363 return IsOddball() || IsNumber() || IsString();
359 } 364 }
360 365
361 366
362 bool Object::IsJSGlobalProxy() { 367 bool Object::IsJSGlobalProxy() {
363 bool result = IsHeapObject() && 368 bool result = IsHeapObject() &&
364 (HeapObject::cast(this)->map()->instance_type() == 369 (HeapObject::cast(this)->map()->instance_type() ==
365 JS_GLOBAL_PROXY_TYPE); 370 JS_GLOBAL_PROXY_TYPE);
366 ASSERT(!result || IsAccessCheckNeeded()); 371 ASSERT(!result || IsAccessCheckNeeded());
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 // ------------------------------------ 1184 // ------------------------------------
1180 // Cast operations 1185 // Cast operations
1181 1186
1182 1187
1183 CAST_ACCESSOR(FixedArray) 1188 CAST_ACCESSOR(FixedArray)
1184 CAST_ACCESSOR(DescriptorArray) 1189 CAST_ACCESSOR(DescriptorArray)
1185 CAST_ACCESSOR(Dictionary) 1190 CAST_ACCESSOR(Dictionary)
1186 CAST_ACCESSOR(SymbolTable) 1191 CAST_ACCESSOR(SymbolTable)
1187 CAST_ACCESSOR(CompilationCacheTable) 1192 CAST_ACCESSOR(CompilationCacheTable)
1188 CAST_ACCESSOR(MapCache) 1193 CAST_ACCESSOR(MapCache)
1194 CAST_ACCESSOR(LookupCache)
1189 CAST_ACCESSOR(String) 1195 CAST_ACCESSOR(String)
1190 CAST_ACCESSOR(SeqString) 1196 CAST_ACCESSOR(SeqString)
1191 CAST_ACCESSOR(SeqAsciiString) 1197 CAST_ACCESSOR(SeqAsciiString)
1192 CAST_ACCESSOR(SeqTwoByteString) 1198 CAST_ACCESSOR(SeqTwoByteString)
1193 CAST_ACCESSOR(ConsString) 1199 CAST_ACCESSOR(ConsString)
1194 CAST_ACCESSOR(SlicedString) 1200 CAST_ACCESSOR(SlicedString)
1195 CAST_ACCESSOR(ExternalString) 1201 CAST_ACCESSOR(ExternalString)
1196 CAST_ACCESSOR(ExternalAsciiString) 1202 CAST_ACCESSOR(ExternalAsciiString)
1197 CAST_ACCESSOR(ExternalTwoByteString) 1203 CAST_ACCESSOR(ExternalTwoByteString)
1198 CAST_ACCESSOR(JSObject) 1204 CAST_ACCESSOR(JSObject)
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
2343 #undef WRITE_INT_FIELD 2349 #undef WRITE_INT_FIELD
2344 #undef READ_SHORT_FIELD 2350 #undef READ_SHORT_FIELD
2345 #undef WRITE_SHORT_FIELD 2351 #undef WRITE_SHORT_FIELD
2346 #undef READ_BYTE_FIELD 2352 #undef READ_BYTE_FIELD
2347 #undef WRITE_BYTE_FIELD 2353 #undef WRITE_BYTE_FIELD
2348 2354
2349 2355
2350 } } // namespace v8::internal 2356 } } // namespace v8::internal
2351 2357
2352 #endif // V8_OBJECTS_INL_H_ 2358 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698