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

Side by Side Diff: src/globals.h

Issue 2571563004: [Turbofan] Implement super calls with spread bytecode in assembly code. (Closed)
Patch Set: MIPS64 port 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/js-generic-lowering.cc ('k') | src/interpreter/bytecode-array-builder.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 // 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 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 switch (function_type) { 1208 switch (function_type) {
1209 case CallableType::kJSFunction: 1209 case CallableType::kJSFunction:
1210 return os << "JSFunction"; 1210 return os << "JSFunction";
1211 case CallableType::kAny: 1211 case CallableType::kAny:
1212 return os << "Any"; 1212 return os << "Any";
1213 } 1213 }
1214 UNREACHABLE(); 1214 UNREACHABLE();
1215 return os; 1215 return os;
1216 } 1216 }
1217 1217
1218 enum class PushArgsConstructMode : unsigned {
1219 kJSFunction,
1220 kWithFinalSpread,
1221 kOther
1222 };
1223
1224 inline size_t hash_value(PushArgsConstructMode mode) {
1225 return bit_cast<unsigned>(mode);
1226 }
1227
1228 inline std::ostream& operator<<(std::ostream& os, PushArgsConstructMode mode) {
1229 switch (mode) {
1230 case PushArgsConstructMode::kJSFunction:
1231 return os << "JSFunction";
1232 case PushArgsConstructMode::kWithFinalSpread:
1233 return os << "WithFinalSpread";
1234 case PushArgsConstructMode::kOther:
1235 return os << "Other";
1236 }
1237 UNREACHABLE();
1238 return os;
1239 }
1240
1218 inline uint32_t ObjectHash(Address address) { 1241 inline uint32_t ObjectHash(Address address) {
1219 // All objects are at least pointer aligned, so we can remove the trailing 1242 // All objects are at least pointer aligned, so we can remove the trailing
1220 // zeros. 1243 // zeros.
1221 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> 1244 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >>
1222 kPointerSizeLog2); 1245 kPointerSizeLog2);
1223 } 1246 }
1224 1247
1225 // Type feedback is encoded in such a way that, we can combine the feedback 1248 // Type feedback is encoded in such a way that, we can combine the feedback
1226 // at different points by performing an 'OR' operation. Type feedback moves 1249 // at different points by performing an 'OR' operation. Type feedback moves
1227 // to a more generic type when we combine feedback. 1250 // to a more generic type when we combine feedback.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 } // namespace internal 1352 } // namespace internal
1330 } // namespace v8 1353 } // namespace v8
1331 1354
1332 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is 1355 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is
1333 // reducing a JSArray method, or a JSTypedArray method. 1356 // reducing a JSArray method, or a JSTypedArray method.
1334 enum class ArrayIteratorKind { kArray, kTypedArray }; 1357 enum class ArrayIteratorKind { kArray, kTypedArray };
1335 1358
1336 namespace i = v8::internal; 1359 namespace i = v8::internal;
1337 1360
1338 #endif // V8_GLOBALS_H_ 1361 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698