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

Side by Side Diff: src/globals.h

Issue 1108563002: Detect simple tail calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed index type 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/flag-definitions.h ('k') | src/hydrogen-instructions.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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 447
448 enum MinimumCapacity { 448 enum MinimumCapacity {
449 USE_DEFAULT_MINIMUM_CAPACITY, 449 USE_DEFAULT_MINIMUM_CAPACITY,
450 USE_CUSTOM_MINIMUM_CAPACITY 450 USE_CUSTOM_MINIMUM_CAPACITY
451 }; 451 };
452 452
453 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR }; 453 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR };
454 454
455 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; 455 enum Executability { NOT_EXECUTABLE, EXECUTABLE };
456 456
457 enum CallMode { NORMAL_CALL, TAIL_CALL };
458
457 enum VisitMode { 459 enum VisitMode {
458 VISIT_ALL, 460 VISIT_ALL,
459 VISIT_ALL_IN_SCAVENGE, 461 VISIT_ALL_IN_SCAVENGE,
460 VISIT_ALL_IN_SWEEP_NEWSPACE, 462 VISIT_ALL_IN_SWEEP_NEWSPACE,
461 VISIT_ONLY_STRONG 463 VISIT_ONLY_STRONG
462 }; 464 };
463 465
464 // Flag indicating whether code is built into the VM (one of the natives files). 466 // Flag indicating whether code is built into the VM (one of the natives files).
465 enum NativesFlag { NOT_NATIVES_CODE, NATIVES_CODE }; 467 enum NativesFlag { NOT_NATIVES_CODE, NATIVES_CODE };
466 468
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { 945 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) {
944 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); 946 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral);
945 DCHECK(IsValidFunctionKind(kind)); 947 DCHECK(IsValidFunctionKind(kind));
946 return kind; 948 return kind;
947 } 949 }
948 } } // namespace v8::internal 950 } } // namespace v8::internal
949 951
950 namespace i = v8::internal; 952 namespace i = v8::internal;
951 953
952 #endif // V8_GLOBALS_H_ 954 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698