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

Side by Side Diff: src/objects.h

Issue 170073003: Consistent use of const for LookupResult. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 months 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 | « no previous file | 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 2266 matching lines...) Expand 10 before | Expand all | Expand 10 after
2277 // Migrates the given object to a map whose field representations are the 2277 // Migrates the given object to a map whose field representations are the
2278 // lowest upper bound of all known representations for that field. 2278 // lowest upper bound of all known representations for that field.
2279 static void MigrateInstance(Handle<JSObject> instance); 2279 static void MigrateInstance(Handle<JSObject> instance);
2280 2280
2281 // Migrates the given object only if the target map is already available, 2281 // Migrates the given object only if the target map is already available,
2282 // or returns an empty handle if such a map is not yet available. 2282 // or returns an empty handle if such a map is not yet available.
2283 static Handle<Object> TryMigrateInstance(Handle<JSObject> instance); 2283 static Handle<Object> TryMigrateInstance(Handle<JSObject> instance);
2284 2284
2285 // Retrieve a value in a normalized object given a lookup result. 2285 // Retrieve a value in a normalized object given a lookup result.
2286 // Handles the special representation of JS global objects. 2286 // Handles the special representation of JS global objects.
2287 Object* GetNormalizedProperty(LookupResult* result); 2287 Object* GetNormalizedProperty(const LookupResult* result);
2288 2288
2289 // Sets the property value in a normalized object given a lookup result. 2289 // Sets the property value in a normalized object given a lookup result.
2290 // Handles the special representation of JS global objects. 2290 // Handles the special representation of JS global objects.
2291 static void SetNormalizedProperty(Handle<JSObject> object, 2291 static void SetNormalizedProperty(Handle<JSObject> object,
2292 LookupResult* result, 2292 const LookupResult* result,
2293 Handle<Object> value); 2293 Handle<Object> value);
2294 2294
2295 // Sets the property value in a normalized object given (key, value, details). 2295 // Sets the property value in a normalized object given (key, value, details).
2296 // Handles the special representation of JS global objects. 2296 // Handles the special representation of JS global objects.
2297 static void SetNormalizedProperty(Handle<JSObject> object, 2297 static void SetNormalizedProperty(Handle<JSObject> object,
2298 Handle<Name> key, 2298 Handle<Name> key,
2299 Handle<Object> value, 2299 Handle<Object> value,
2300 PropertyDetails details); 2300 PropertyDetails details);
2301 2301
2302 static void OptimizeAsPrototype(Handle<JSObject> object); 2302 static void OptimizeAsPrototype(Handle<JSObject> object);
(...skipping 8460 matching lines...) Expand 10 before | Expand all | Expand 10 after
10763 } else { 10763 } else {
10764 value &= ~(1 << bit_position); 10764 value &= ~(1 << bit_position);
10765 } 10765 }
10766 return value; 10766 return value;
10767 } 10767 }
10768 }; 10768 };
10769 10769
10770 } } // namespace v8::internal 10770 } } // namespace v8::internal
10771 10771
10772 #endif // V8_OBJECTS_H_ 10772 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698