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

Side by Side Diff: src/globals.h

Issue 2609013002: [turbofan] Use InternalizedString feedback abstract/strict equality comparisons. (Closed)
Patch Set: Created 3 years, 11 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/compiler/verifier.cc ('k') | src/interpreter/interpreter.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_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 kNumber = 0x3, 1239 kNumber = 0x3,
1240 kNumberOrOddball = 0x7, 1240 kNumberOrOddball = 0x7,
1241 kString = 0x8, 1241 kString = 0x8,
1242 kAny = 0x1F 1242 kAny = 0x1F
1243 }; 1243 };
1244 }; 1244 };
1245 1245
1246 // Type feedback is encoded in such a way that, we can combine the feedback 1246 // Type feedback is encoded in such a way that, we can combine the feedback
1247 // at different points by performing an 'OR' operation. Type feedback moves 1247 // at different points by performing an 'OR' operation. Type feedback moves
1248 // to a more generic type when we combine feedback. 1248 // to a more generic type when we combine feedback.
1249 // kSignedSmall -> kNumber -> kAny 1249 // kSignedSmall -> kNumber -> kAny
1250 // kString -> kAny 1250 // kInternalizedString -> kString -> kAny
1251 // TODO(epertoso): consider unifying this with BinaryOperationFeedback. 1251 // TODO(epertoso): consider unifying this with BinaryOperationFeedback.
1252 class CompareOperationFeedback { 1252 class CompareOperationFeedback {
1253 public: 1253 public:
1254 enum { 1254 enum {
1255 kNone = 0x00, 1255 kNone = 0x00,
1256 kSignedSmall = 0x01, 1256 kSignedSmall = 0x01,
1257 kNumber = 0x3, 1257 kNumber = 0x3,
1258 kNumberOrOddball = 0x7, 1258 kNumberOrOddball = 0x7,
1259 kString = 0x8, 1259 kInternalizedString = 0x8,
1260 kAny = 0x1F 1260 kString = 0x18,
1261 kAny = 0x3F
1261 }; 1262 };
1262 }; 1263 };
1263 1264
1264 // Describes how exactly a frame has been dropped from stack. 1265 // Describes how exactly a frame has been dropped from stack.
1265 enum LiveEditFrameDropMode { 1266 enum LiveEditFrameDropMode {
1266 // No frame has been dropped. 1267 // No frame has been dropped.
1267 LIVE_EDIT_FRAMES_UNTOUCHED, 1268 LIVE_EDIT_FRAMES_UNTOUCHED,
1268 // The top JS frame had been calling debug break slot stub. Patch the 1269 // The top JS frame had been calling debug break slot stub. Patch the
1269 // address this stub jumps to in the end. 1270 // address this stub jumps to in the end.
1270 LIVE_EDIT_FRAME_DROPPED_IN_DEBUG_SLOT_CALL, 1271 LIVE_EDIT_FRAME_DROPPED_IN_DEBUG_SLOT_CALL,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 } // namespace internal 1326 } // namespace internal
1326 } // namespace v8 1327 } // namespace v8
1327 1328
1328 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is 1329 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is
1329 // reducing a JSArray method, or a JSTypedArray method. 1330 // reducing a JSArray method, or a JSTypedArray method.
1330 enum class ArrayIteratorKind { kArray, kTypedArray }; 1331 enum class ArrayIteratorKind { kArray, kTypedArray };
1331 1332
1332 namespace i = v8::internal; 1333 namespace i = v8::internal;
1333 1334
1334 #endif // V8_GLOBALS_H_ 1335 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698