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

Side by Side Diff: src/objects.h

Issue 229683003: Fix build with gcc 4.8 on Linux. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | no next file » | 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 4000 matching lines...) Expand 10 before | Expand all | Expand 10 after
4011 PropertyAttributes filter, 4011 PropertyAttributes filter,
4012 SortMode sort_mode); 4012 SortMode sort_mode);
4013 4013
4014 // Accessors for next enumeration index. 4014 // Accessors for next enumeration index.
4015 void SetNextEnumerationIndex(int index) { 4015 void SetNextEnumerationIndex(int index) {
4016 ASSERT(index != 0); 4016 ASSERT(index != 0);
4017 this->set(kNextEnumerationIndexIndex, Smi::FromInt(index)); 4017 this->set(kNextEnumerationIndexIndex, Smi::FromInt(index));
4018 } 4018 }
4019 4019
4020 int NextEnumerationIndex() { 4020 int NextEnumerationIndex() {
4021 return Smi::cast(FixedArray::get(kNextEnumerationIndexIndex))->value(); 4021 return Smi::cast(this->get(kNextEnumerationIndexIndex))->value();
4022 } 4022 }
4023 4023
4024 // Returns a new array for dictionary usage. Might return Failure. 4024 // Returns a new array for dictionary usage. Might return Failure.
4025 MUST_USE_RESULT static MaybeObject* Allocate( 4025 MUST_USE_RESULT static MaybeObject* Allocate(
4026 Heap* heap, 4026 Heap* heap,
4027 int at_least_space_for, 4027 int at_least_space_for,
4028 PretenureFlag pretenure = NOT_TENURED); 4028 PretenureFlag pretenure = NOT_TENURED);
4029 4029
4030 // Ensure enough space for n additional elements. 4030 // Ensure enough space for n additional elements.
4031 MUST_USE_RESULT MaybeObject* EnsureCapacity(int n, Key key); 4031 MUST_USE_RESULT MaybeObject* EnsureCapacity(int n, Key key);
(...skipping 6981 matching lines...) Expand 10 before | Expand all | Expand 10 after
11013 } else { 11013 } else {
11014 value &= ~(1 << bit_position); 11014 value &= ~(1 << bit_position);
11015 } 11015 }
11016 return value; 11016 return value;
11017 } 11017 }
11018 }; 11018 };
11019 11019
11020 } } // namespace v8::internal 11020 } } // namespace v8::internal
11021 11021
11022 #endif // V8_OBJECTS_H_ 11022 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698