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

Side by Side Diff: src/objects.h

Issue 5640004: Allow the optimizing code generator to call Math.pow with untagged doubles. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | Annotate | Revision Log
« no previous file with comments | « src/math.js ('k') | src/runtime.cc » ('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
3733 }; 3735 };
3734 3736
3735 3737
3736 // SharedFunctionInfo describes the JSFunction information that can be 3738 // SharedFunctionInfo describes the JSFunction information that can be
3737 // shared by multiple instances of the function. 3739 // shared by multiple instances of the function.
3738 class SharedFunctionInfo: public HeapObject { 3740 class SharedFunctionInfo: public HeapObject {
3739 public: 3741 public:
3740 // [name]: Function name. 3742 // [name]: Function name.
3741 DECL_ACCESSORS(name, Object) 3743 DECL_ACCESSORS(name, Object)
3742 3744
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
4147 static const int kIsExpressionBit = 0; 4149 static const int kIsExpressionBit = 0;
4148 static const int kIsTopLevelBit = 1; 4150 static const int kIsTopLevelBit = 1;
4149 static const int kStartPositionShift = 2; 4151 static const int kStartPositionShift = 2;
4150 static const int kStartPositionMask = ~((1 << kStartPositionShift) - 1); 4152 static const int kStartPositionMask = ~((1 << kStartPositionShift) - 1);
4151 4153
4152 // Bit positions in compiler_hints. 4154 // Bit positions in compiler_hints.
4153 static const int kHasOnlySimpleThisPropertyAssignments = 0; 4155 static const int kHasOnlySimpleThisPropertyAssignments = 0;
4154 static const int kTryFullCodegen = 1; 4156 static const int kTryFullCodegen = 1;
4155 static const int kAllowLazyCompilation = 2; 4157 static const int kAllowLazyCompilation = 2;
4156 static const int kMathFunctionShift = 3; 4158 static const int kMathFunctionShift = 3;
4157 static const int kMathFunctionMask = 0xf; 4159 static const int kMathFunctionMask = 0x1f;
4158 static const int kLiveObjectsMayExist = 7; 4160 static const int kLiveObjectsMayExist = 8;
4159 static const int kCodeAgeShift = 8; 4161 static const int kCodeAgeShift = 9;
4160 static const int kCodeAgeMask = 0x7; 4162 static const int kCodeAgeMask = 0x7;
4161 static const int kOptimizationDisabled = 11; 4163 static const int kOptimizationDisabled = 12;
4162 4164
4163 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedFunctionInfo); 4165 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedFunctionInfo);
4164 }; 4166 };
4165 4167
4166 4168
4167 // JSFunction describes JavaScript functions. 4169 // JSFunction describes JavaScript functions.
4168 class JSFunction: public JSObject { 4170 class JSFunction: public JSObject {
4169 public: 4171 public:
4170 // [prototype_or_initial_map]: 4172 // [prototype_or_initial_map]:
4171 DECL_ACCESSORS(prototype_or_initial_map, Object) 4173 DECL_ACCESSORS(prototype_or_initial_map, Object)
(...skipping 1927 matching lines...) Expand 10 before | Expand all | Expand 10 after
6099 } else { 6101 } else {
6100 value &= ~(1 << bit_position); 6102 value &= ~(1 << bit_position);
6101 } 6103 }
6102 return value; 6104 return value;
6103 } 6105 }
6104 }; 6106 };
6105 6107
6106 } } // namespace v8::internal 6108 } } // namespace v8::internal
6107 6109
6108 #endif // V8_OBJECTS_H_ 6110 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/math.js ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698