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

Side by Side Diff: src/globals.h

Issue 2221833002: [Interpreter] Collect type feedback for subtract operation and pass it to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments from Benedikt: Duplicate SubtractStub for Numbers that collects type feedback an… Created 4 years, 4 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
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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 return os; 1143 return os;
1144 } 1144 }
1145 1145
1146 inline uint32_t ObjectHash(Address address) { 1146 inline uint32_t ObjectHash(Address address) {
1147 // All objects are at least pointer aligned, so we can remove the trailing 1147 // All objects are at least pointer aligned, so we can remove the trailing
1148 // zeros. 1148 // zeros.
1149 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> 1149 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >>
1150 kPointerSizeLog2); 1150 kPointerSizeLog2);
1151 } 1151 }
1152 1152
1153 class BinaryOperationFeedback {
1154 public:
1155 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 };
rmcilroy 2016/08/08 08:27:31 Nit - comment that the values are important to all
mythria 2016/08/09 00:51:59 Done.
1156 };
1157
1153 } // namespace internal 1158 } // namespace internal
1154 } // namespace v8 1159 } // namespace v8
1155 1160
1156 namespace i = v8::internal; 1161 namespace i = v8::internal;
1157 1162
1158 #endif // V8_GLOBALS_H_ 1163 #endif // V8_GLOBALS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698