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

Side by Side Diff: src/objects.h

Issue 3140: Use null instead of undefined for deleted elements in code caches.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 3 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/ic.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 1436
1437 class FixedArray: public Array { 1437 class FixedArray: public Array {
1438 public: 1438 public:
1439 1439
1440 // Setter and getter for elements. 1440 // Setter and getter for elements.
1441 inline Object* get(int index); 1441 inline Object* get(int index);
1442 inline void set(int index, Object* value); 1442 inline void set(int index, Object* value);
1443 1443
1444 // Setters for frequently used oddballs located in old space. 1444 // Setters for frequently used oddballs located in old space.
1445 inline void set_undefined(int index); 1445 inline void set_undefined(int index);
1446 inline void set_null(int index);
1446 inline void set_the_hole(int index); 1447 inline void set_the_hole(int index);
1447 1448
1448 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER. 1449 // Setter that skips the write barrier if mode is SKIP_WRITE_BARRIER.
1449 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER }; 1450 enum WriteBarrierMode { SKIP_WRITE_BARRIER, UPDATE_WRITE_BARRIER };
1450 inline void set(int index, Object* value, WriteBarrierMode mode); 1451 inline void set(int index, Object* value, WriteBarrierMode mode);
1451 // Return the write barrier mode for this. 1452 // Return the write barrier mode for this.
1452 inline WriteBarrierMode GetWriteBarrierMode(); 1453 inline WriteBarrierMode GetWriteBarrierMode();
1453 1454
1454 // Copy operations. 1455 // Copy operations.
1455 Object* Copy(); 1456 Object* Copy();
(...skipping 2406 matching lines...) Expand 10 before | Expand all | Expand 10 after
3862 } else { 3863 } else {
3863 value &= ~(1 << bit_position); 3864 value &= ~(1 << bit_position);
3864 } 3865 }
3865 return value; 3866 return value;
3866 } 3867 }
3867 }; 3868 };
3868 3869
3869 } } // namespace v8::internal 3870 } } // namespace v8::internal
3870 3871
3871 #endif // V8_OBJECTS_H_ 3872 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698