OLD | NEW |
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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
(...skipping 7069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7080 // Trims the optimized code map after entries have been removed. | 7080 // Trims the optimized code map after entries have been removed. |
7081 void TrimOptimizedCodeMap(int shrink_by); | 7081 void TrimOptimizedCodeMap(int shrink_by); |
7082 | 7082 |
7083 // Add a new entry to the optimized code map. | 7083 // Add a new entry to the optimized code map. |
7084 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, | 7084 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, |
7085 Handle<Context> native_context, | 7085 Handle<Context> native_context, |
7086 Handle<Code> code, | 7086 Handle<Code> code, |
7087 Handle<FixedArray> literals, | 7087 Handle<FixedArray> literals, |
7088 BailoutId osr_ast_id); | 7088 BailoutId osr_ast_id); |
7089 | 7089 |
| 7090 bool CanHandleArgumentsSafely(); |
| 7091 |
7090 // Layout description of the optimized code map. | 7092 // Layout description of the optimized code map. |
7091 static const int kNextMapIndex = 0; | 7093 static const int kNextMapIndex = 0; |
7092 static const int kEntriesStart = 1; | 7094 static const int kEntriesStart = 1; |
7093 static const int kContextOffset = 0; | 7095 static const int kContextOffset = 0; |
7094 static const int kCachedCodeOffset = 1; | 7096 static const int kCachedCodeOffset = 1; |
7095 static const int kLiteralsOffset = 2; | 7097 static const int kLiteralsOffset = 2; |
7096 static const int kOsrAstIdOffset = 3; | 7098 static const int kOsrAstIdOffset = 3; |
7097 static const int kEntryLength = 4; | 7099 static const int kEntryLength = 4; |
7098 static const int kInitialLength = kEntriesStart + kEntryLength; | 7100 static const int kInitialLength = kEntriesStart + kEntryLength; |
7099 | 7101 |
(...skipping 4149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11249 } else { | 11251 } else { |
11250 value &= ~(1 << bit_position); | 11252 value &= ~(1 << bit_position); |
11251 } | 11253 } |
11252 return value; | 11254 return value; |
11253 } | 11255 } |
11254 }; | 11256 }; |
11255 | 11257 |
11256 } } // namespace v8::internal | 11258 } } // namespace v8::internal |
11257 | 11259 |
11258 #endif // V8_OBJECTS_H_ | 11260 #endif // V8_OBJECTS_H_ |
OLD | NEW |