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

Side by Side Diff: src/globals.h

Issue 597083002: Translate NumberDivide/NumberModulus operators to Int32Div, Int32Mod in representation-change.h. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add multiply. Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/representation-change.h ('k') | no next file » | 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 "include/v8stdint.h" 8 #include "include/v8stdint.h"
9 9
10 #include "src/base/build_config.h" 10 #include "src/base/build_config.h"
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 CLEAR_EXCEPTION 762 CLEAR_EXCEPTION
763 }; 763 };
764 764
765 765
766 enum MinusZeroMode { 766 enum MinusZeroMode {
767 TREAT_MINUS_ZERO_AS_ZERO, 767 TREAT_MINUS_ZERO_AS_ZERO,
768 FAIL_ON_MINUS_ZERO 768 FAIL_ON_MINUS_ZERO
769 }; 769 };
770 770
771 771
772 enum Signedness { kSigned, kUnsigned };
773
774
772 enum FunctionKind { 775 enum FunctionKind {
773 kNormalFunction = 0, 776 kNormalFunction = 0,
774 kArrowFunction = 1, 777 kArrowFunction = 1,
775 kGeneratorFunction = 2, 778 kGeneratorFunction = 2,
776 kConciseMethod = 4, 779 kConciseMethod = 4,
777 kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod 780 kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod
778 }; 781 };
779 782
780 783
781 inline bool IsValidFunctionKind(FunctionKind kind) { 784 inline bool IsValidFunctionKind(FunctionKind kind) {
(...skipping 19 matching lines...) Expand all
801 804
802 inline bool IsConciseMethod(FunctionKind kind) { 805 inline bool IsConciseMethod(FunctionKind kind) {
803 DCHECK(IsValidFunctionKind(kind)); 806 DCHECK(IsValidFunctionKind(kind));
804 return kind & FunctionKind::kConciseMethod; 807 return kind & FunctionKind::kConciseMethod;
805 } 808 }
806 } } // namespace v8::internal 809 } } // namespace v8::internal
807 810
808 namespace i = v8::internal; 811 namespace i = v8::internal;
809 812
810 #endif // V8_GLOBALS_H_ 813 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/compiler/representation-change.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698