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

Side by Side Diff: src/objects.h

Issue 9571001: Introduce basic type feedback for for-in statements to avoid deopts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/type-info.h » ('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 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 4045 matching lines...) Expand 10 before | Expand all | Expand 10 after
4056 4056
4057 // The object that indicates a megamorphic state. 4057 // The object that indicates a megamorphic state.
4058 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate); 4058 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate);
4059 4059
4060 // A raw version of the uninitialized sentinel that's safe to read during 4060 // A raw version of the uninitialized sentinel that's safe to read during
4061 // garbage collection (e.g., for patching the cache). 4061 // garbage collection (e.g., for patching the cache).
4062 static inline Object* RawUninitializedSentinel(Heap* heap); 4062 static inline Object* RawUninitializedSentinel(Heap* heap);
4063 4063
4064 // Casting. 4064 // Casting.
4065 static inline TypeFeedbackCells* cast(Object* obj); 4065 static inline TypeFeedbackCells* cast(Object* obj);
4066
4067 static const int kForInFastCaseMarker = 0;
4068 static const int kForInSlowCaseMarker = 1;
4066 }; 4069 };
4067 4070
4068 4071
4069 // Forward declaration. 4072 // Forward declaration.
4070 class SafepointEntry; 4073 class SafepointEntry;
4071 class TypeFeedbackInfo; 4074 class TypeFeedbackInfo;
4072 4075
4073 // Code describes objects with on-the-fly generated machine code. 4076 // Code describes objects with on-the-fly generated machine code.
4074 class Code: public HeapObject { 4077 class Code: public HeapObject {
4075 public: 4078 public:
(...skipping 4347 matching lines...) Expand 10 before | Expand all | Expand 10 after
8423 } else { 8426 } else {
8424 value &= ~(1 << bit_position); 8427 value &= ~(1 << bit_position);
8425 } 8428 }
8426 return value; 8429 return value;
8427 } 8430 }
8428 }; 8431 };
8429 8432
8430 } } // namespace v8::internal 8433 } } // namespace v8::internal
8431 8434
8432 #endif // V8_OBJECTS_H_ 8435 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698