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

Side by Side Diff: src/objects.h

Issue 5862002: Version 3.0.2. (Closed)
Patch Set: Created 10 years 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
« ChangeLog ('K') | « src/math.js ('k') | src/parser.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3711 matching lines...) Expand 10 before | Expand all | Expand 10 after
3722 kMathCeil = 3, 3722 kMathCeil = 3,
3723 kMathAbs = 4, 3723 kMathAbs = 4,
3724 kMathLog = 5, 3724 kMathLog = 5,
3725 kMathSin = 6, 3725 kMathSin = 6,
3726 kMathCos = 7, 3726 kMathCos = 7,
3727 kMathTan = 8, 3727 kMathTan = 8,
3728 kMathASin = 9, 3728 kMathASin = 9,
3729 kMathACos = 0xa, 3729 kMathACos = 0xa,
3730 kMathATan = 0xb, 3730 kMathATan = 0xb,
3731 kMathExp = 0xc, 3731 kMathExp = 0xc,
3732 kMathSqrt = 0xd, 3732 kMathSqrt = 0xd
3733 kMathPow = 0xe,
3734 kMathPowHalf = 0xf
3735 }; 3733 };
3736 3734
3737 3735
3738 // SharedFunctionInfo describes the JSFunction information that can be 3736 // SharedFunctionInfo describes the JSFunction information that can be
3739 // shared by multiple instances of the function. 3737 // shared by multiple instances of the function.
3740 class SharedFunctionInfo: public HeapObject { 3738 class SharedFunctionInfo: public HeapObject {
3741 public: 3739 public:
3742 // [name]: Function name. 3740 // [name]: Function name.
3743 DECL_ACCESSORS(name, Object) 3741 DECL_ACCESSORS(name, Object)
3744 3742
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
4149 static const int kIsExpressionBit = 0; 4147 static const int kIsExpressionBit = 0;
4150 static const int kIsTopLevelBit = 1; 4148 static const int kIsTopLevelBit = 1;
4151 static const int kStartPositionShift = 2; 4149 static const int kStartPositionShift = 2;
4152 static const int kStartPositionMask = ~((1 << kStartPositionShift) - 1); 4150 static const int kStartPositionMask = ~((1 << kStartPositionShift) - 1);
4153 4151
4154 // Bit positions in compiler_hints. 4152 // Bit positions in compiler_hints.
4155 static const int kHasOnlySimpleThisPropertyAssignments = 0; 4153 static const int kHasOnlySimpleThisPropertyAssignments = 0;
4156 static const int kTryFullCodegen = 1; 4154 static const int kTryFullCodegen = 1;
4157 static const int kAllowLazyCompilation = 2; 4155 static const int kAllowLazyCompilation = 2;
4158 static const int kMathFunctionShift = 3; 4156 static const int kMathFunctionShift = 3;
4159 static const int kMathFunctionMask = 0x1f; 4157 static const int kMathFunctionMask = 0xf;
4160 static const int kLiveObjectsMayExist = 8; 4158 static const int kLiveObjectsMayExist = 7;
4161 static const int kCodeAgeShift = 9; 4159 static const int kCodeAgeShift = 8;
4162 static const int kCodeAgeMask = 0x7; 4160 static const int kCodeAgeMask = 0x7;
4163 static const int kOptimizationDisabled = 12; 4161 static const int kOptimizationDisabled = 11;
4164 4162
4165 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedFunctionInfo); 4163 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedFunctionInfo);
4166 }; 4164 };
4167 4165
4168 4166
4169 // JSFunction describes JavaScript functions. 4167 // JSFunction describes JavaScript functions.
4170 class JSFunction: public JSObject { 4168 class JSFunction: public JSObject {
4171 public: 4169 public:
4172 // [prototype_or_initial_map]: 4170 // [prototype_or_initial_map]:
4173 DECL_ACCESSORS(prototype_or_initial_map, Object) 4171 DECL_ACCESSORS(prototype_or_initial_map, Object)
(...skipping 1927 matching lines...) Expand 10 before | Expand all | Expand 10 after
6101 } else { 6099 } else {
6102 value &= ~(1 << bit_position); 6100 value &= ~(1 << bit_position);
6103 } 6101 }
6104 return value; 6102 return value;
6105 } 6103 }
6106 }; 6104 };
6107 6105
6108 } } // namespace v8::internal 6106 } } // namespace v8::internal
6109 6107
6110 #endif // V8_OBJECTS_H_ 6108 #endif // V8_OBJECTS_H_
OLDNEW
« ChangeLog ('K') | « src/math.js ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698