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

Side by Side Diff: src/objects.h

Issue 6113004: Version 3.0.7 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 9 years, 11 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 | « src/math.js ('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 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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 inline bool IsStruct(); 702 inline bool IsStruct();
703 #define DECLARE_STRUCT_PREDICATE(NAME, Name, name) inline bool Is##Name(); 703 #define DECLARE_STRUCT_PREDICATE(NAME, Name, name) inline bool Is##Name();
704 STRUCT_LIST(DECLARE_STRUCT_PREDICATE) 704 STRUCT_LIST(DECLARE_STRUCT_PREDICATE)
705 #undef DECLARE_STRUCT_PREDICATE 705 #undef DECLARE_STRUCT_PREDICATE
706 706
707 // Oddball testing. 707 // Oddball testing.
708 INLINE(bool IsUndefined()); 708 INLINE(bool IsUndefined());
709 INLINE(bool IsNull()); 709 INLINE(bool IsNull());
710 INLINE(bool IsTrue()); 710 INLINE(bool IsTrue());
711 INLINE(bool IsFalse()); 711 INLINE(bool IsFalse());
712 inline bool IsArgumentsMarker();
712 713
713 // Extract the number. 714 // Extract the number.
714 inline double Number(); 715 inline double Number();
715 716
716 inline bool HasSpecificClassOf(String* name); 717 inline bool HasSpecificClassOf(String* name);
717 718
718 MUST_USE_RESULT MaybeObject* ToObject(); // ECMA-262 9.9. 719 MUST_USE_RESULT MaybeObject* ToObject(); // ECMA-262 9.9.
719 Object* ToBoolean(); // ECMA-262 9.2. 720 Object* ToBoolean(); // ECMA-262 9.2.
720 721
721 // Convert to a JSObject if needed. 722 // Convert to a JSObject if needed.
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 MUST_USE_RESULT MaybeObject* SetProperty(String* key, 1335 MUST_USE_RESULT MaybeObject* SetProperty(String* key,
1335 Object* value, 1336 Object* value,
1336 PropertyAttributes attributes); 1337 PropertyAttributes attributes);
1337 MUST_USE_RESULT MaybeObject* SetProperty(LookupResult* result, 1338 MUST_USE_RESULT MaybeObject* SetProperty(LookupResult* result,
1338 String* key, 1339 String* key,
1339 Object* value, 1340 Object* value,
1340 PropertyAttributes attributes); 1341 PropertyAttributes attributes);
1341 MUST_USE_RESULT MaybeObject* SetPropertyWithFailedAccessCheck( 1342 MUST_USE_RESULT MaybeObject* SetPropertyWithFailedAccessCheck(
1342 LookupResult* result, 1343 LookupResult* result,
1343 String* name, 1344 String* name,
1344 Object* value); 1345 Object* value,
1346 bool check_prototype);
1345 MUST_USE_RESULT MaybeObject* SetPropertyWithCallback(Object* structure, 1347 MUST_USE_RESULT MaybeObject* SetPropertyWithCallback(Object* structure,
1346 String* name, 1348 String* name,
1347 Object* value, 1349 Object* value,
1348 JSObject* holder); 1350 JSObject* holder);
1349 MUST_USE_RESULT MaybeObject* SetPropertyWithDefinedSetter(JSFunction* setter, 1351 MUST_USE_RESULT MaybeObject* SetPropertyWithDefinedSetter(JSFunction* setter,
1350 Object* value); 1352 Object* value);
1351 MUST_USE_RESULT MaybeObject* SetPropertyWithInterceptor( 1353 MUST_USE_RESULT MaybeObject* SetPropertyWithInterceptor(
1352 String* name, 1354 String* name,
1353 Object* value, 1355 Object* value,
1354 PropertyAttributes attributes); 1356 PropertyAttributes attributes);
1355 MUST_USE_RESULT MaybeObject* SetPropertyPostInterceptor( 1357 MUST_USE_RESULT MaybeObject* SetPropertyPostInterceptor(
1356 String* name, 1358 String* name,
1357 Object* value, 1359 Object* value,
1358 PropertyAttributes attributes); 1360 PropertyAttributes attributes);
1359 MUST_USE_RESULT MaybeObject* IgnoreAttributesAndSetLocalProperty( 1361 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributes(
1360 String* key, 1362 String* key,
1361 Object* value, 1363 Object* value,
1362 PropertyAttributes attributes); 1364 PropertyAttributes attributes);
1363 1365
1364 // Retrieve a value in a normalized object given a lookup result. 1366 // Retrieve a value in a normalized object given a lookup result.
1365 // Handles the special representation of JS global objects. 1367 // Handles the special representation of JS global objects.
1366 Object* GetNormalizedProperty(LookupResult* result); 1368 Object* GetNormalizedProperty(LookupResult* result);
1367 1369
1368 // Sets the property value in a normalized object given a lookup result. 1370 // Sets the property value in a normalized object given a lookup result.
1369 // Handles the special representation of JS global objects. 1371 // Handles the special representation of JS global objects.
(...skipping 5019 matching lines...) Expand 10 before | Expand all | Expand 10 after
6389 } else { 6391 } else {
6390 value &= ~(1 << bit_position); 6392 value &= ~(1 << bit_position);
6391 } 6393 }
6392 return value; 6394 return value;
6393 } 6395 }
6394 }; 6396 };
6395 6397
6396 } } // namespace v8::internal 6398 } } // namespace v8::internal
6397 6399
6398 #endif // V8_OBJECTS_H_ 6400 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/math.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698