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

Side by Side Diff: src/objects.h

Issue 11529014: Merged r13193, r13195 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 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/hydrogen.cc ('k') | src/objects.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 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
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
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_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698