| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 5426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5437 // Returns index i of the entry with the specified context. At position | 5437 // Returns index i of the entry with the specified context. At position |
| 5438 // i - 1 is the context, position i the code, and i + 1 the literals array. | 5438 // i - 1 is the context, position i the code, and i + 1 the literals array. |
| 5439 // Returns -1 when no matching entry is found. | 5439 // Returns -1 when no matching entry is found. |
| 5440 int SearchOptimizedCodeMap(Context* native_context); | 5440 int SearchOptimizedCodeMap(Context* native_context); |
| 5441 | 5441 |
| 5442 // Installs optimized code from the code map on the given closure. The | 5442 // Installs optimized code from the code map on the given closure. The |
| 5443 // index has to be consistent with a search result as defined above. | 5443 // index has to be consistent with a search result as defined above. |
| 5444 void InstallFromOptimizedCodeMap(JSFunction* function, int index); | 5444 void InstallFromOptimizedCodeMap(JSFunction* function, int index); |
| 5445 | 5445 |
| 5446 // Clear optimized code map. | 5446 // Clear optimized code map. |
| 5447 void ClearOptimizedCodeMap(); | 5447 inline void ClearOptimizedCodeMap(); |
| 5448 | 5448 |
| 5449 // Add a new entry to the optimized code map. | 5449 // Add a new entry to the optimized code map. |
| 5450 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, | 5450 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, |
| 5451 Handle<Context> native_context, | 5451 Handle<Context> native_context, |
| 5452 Handle<Code> code, | 5452 Handle<Code> code, |
| 5453 Handle<FixedArray> literals); | 5453 Handle<FixedArray> literals); |
| 5454 static const int kEntryLength = 3; | 5454 static const int kEntryLength = 3; |
| 5455 | 5455 |
| 5456 // [scope_info]: Scope info. | 5456 // [scope_info]: Scope info. |
| 5457 DECL_ACCESSORS(scope_info, ScopeInfo) | 5457 DECL_ACCESSORS(scope_info, ScopeInfo) |
| (...skipping 3628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9086 } else { | 9086 } else { |
| 9087 value &= ~(1 << bit_position); | 9087 value &= ~(1 << bit_position); |
| 9088 } | 9088 } |
| 9089 return value; | 9089 return value; |
| 9090 } | 9090 } |
| 9091 }; | 9091 }; |
| 9092 | 9092 |
| 9093 } } // namespace v8::internal | 9093 } } // namespace v8::internal |
| 9094 | 9094 |
| 9095 #endif // V8_OBJECTS_H_ | 9095 #endif // V8_OBJECTS_H_ |
| OLD | NEW |