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

Side by Side Diff: src/objects.h

Issue 1148863002: Fix for-in for large indexes and indexes on proxies (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/elements.cc ('k') | src/objects.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 } else if (FLAG_track_fields && representation.IsSmi()) { 1100 } else if (FLAG_track_fields && representation.IsSmi()) {
1101 return IsSmi(); 1101 return IsSmi();
1102 } else if (FLAG_track_double_fields && representation.IsDouble()) { 1102 } else if (FLAG_track_double_fields && representation.IsDouble()) {
1103 return IsMutableHeapNumber() || IsNumber(); 1103 return IsMutableHeapNumber() || IsNumber();
1104 } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) { 1104 } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) {
1105 return IsHeapObject(); 1105 return IsHeapObject();
1106 } 1106 }
1107 return true; 1107 return true;
1108 } 1108 }
1109 1109
1110 // Checks whether two valid primitive encodings of a property name resolve to
1111 // the same logical property. E.g., the smi 1, the string "1" and the double
1112 // 1 all refer to the same property, so this helper will return true.
1113 inline bool KeyEquals(Object* other);
1114
1110 Handle<HeapType> OptimalType(Isolate* isolate, Representation representation); 1115 Handle<HeapType> OptimalType(Isolate* isolate, Representation representation);
1111 1116
1112 inline static Handle<Object> NewStorageFor(Isolate* isolate, 1117 inline static Handle<Object> NewStorageFor(Isolate* isolate,
1113 Handle<Object> object, 1118 Handle<Object> object,
1114 Representation representation); 1119 Representation representation);
1115 1120
1116 inline static Handle<Object> WrapForRead(Isolate* isolate, 1121 inline static Handle<Object> WrapForRead(Isolate* isolate,
1117 Handle<Object> object, 1122 Handle<Object> object,
1118 Representation representation); 1123 Representation representation);
1119 1124
(...skipping 10005 matching lines...) Expand 10 before | Expand all | Expand 10 after
11125 } else { 11130 } else {
11126 value &= ~(1 << bit_position); 11131 value &= ~(1 << bit_position);
11127 } 11132 }
11128 return value; 11133 return value;
11129 } 11134 }
11130 }; 11135 };
11131 11136
11132 } } // namespace v8::internal 11137 } } // namespace v8::internal
11133 11138
11134 #endif // V8_OBJECTS_H_ 11139 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698