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

Side by Side Diff: src/globals.h

Issue 631433002: Classes runtime (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Create prototype object with initial prototype parent 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
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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 758
759 759
760 enum Signedness { kSigned, kUnsigned }; 760 enum Signedness { kSigned, kUnsigned };
761 761
762 762
763 enum FunctionKind { 763 enum FunctionKind {
764 kNormalFunction = 0, 764 kNormalFunction = 0,
765 kArrowFunction = 1, 765 kArrowFunction = 1,
766 kGeneratorFunction = 2, 766 kGeneratorFunction = 2,
767 kConciseMethod = 4, 767 kConciseMethod = 4,
768 kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod 768 kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod,
769 kConstructorMethod = kNormalFunction
Dmitry Lomov (no reviews) 2014/10/07 15:09:37 Set but unused? Let's remove it.
arv (Not doing code reviews) 2014/10/07 15:16:52 It is used in preparser.h. I can change that to us
Dmitry Lomov (no reviews) 2014/10/07 15:21:05 Right, I've seen that. Let's not add constants tha
arv (Not doing code reviews) 2014/10/07 16:13:18 Done.
769 }; 770 };
770 771
771 772
772 inline bool IsValidFunctionKind(FunctionKind kind) { 773 inline bool IsValidFunctionKind(FunctionKind kind) {
773 return kind == FunctionKind::kNormalFunction || 774 return kind == FunctionKind::kNormalFunction ||
774 kind == FunctionKind::kArrowFunction || 775 kind == FunctionKind::kArrowFunction ||
775 kind == FunctionKind::kGeneratorFunction || 776 kind == FunctionKind::kGeneratorFunction ||
776 kind == FunctionKind::kConciseMethod || 777 kind == FunctionKind::kConciseMethod ||
777 kind == FunctionKind::kConciseGeneratorMethod; 778 kind == FunctionKind::kConciseGeneratorMethod;
778 } 779 }
(...skipping 13 matching lines...) Expand all
792 793
793 inline bool IsConciseMethod(FunctionKind kind) { 794 inline bool IsConciseMethod(FunctionKind kind) {
794 DCHECK(IsValidFunctionKind(kind)); 795 DCHECK(IsValidFunctionKind(kind));
795 return kind & FunctionKind::kConciseMethod; 796 return kind & FunctionKind::kConciseMethod;
796 } 797 }
797 } } // namespace v8::internal 798 } } // namespace v8::internal
798 799
799 namespace i = v8::internal; 800 namespace i = v8::internal;
800 801
801 #endif // V8_GLOBALS_H_ 802 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/messages.js » ('j') | src/runtime/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698