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

Side by Side Diff: src/objects.h

Issue 8258015: Support array literals with FAST_DOUBLE_ELEMENTS ElementsKind. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove regressions Created 9 years, 2 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after
2178 2178
2179 // Setter and getter for elements. 2179 // Setter and getter for elements.
2180 inline double get_scalar(int index); 2180 inline double get_scalar(int index);
2181 inline MaybeObject* get(int index); 2181 inline MaybeObject* get(int index);
2182 inline void set(int index, double value); 2182 inline void set(int index, double value);
2183 inline void set_the_hole(int index); 2183 inline void set_the_hole(int index);
2184 2184
2185 // Checking for the hole. 2185 // Checking for the hole.
2186 inline bool is_the_hole(int index); 2186 inline bool is_the_hole(int index);
2187 2187
2188 // Copy operations
2189 MUST_USE_RESULT inline MaybeObject* Copy();
2190
2188 // Garbage collection support. 2191 // Garbage collection support.
2189 inline static int SizeFor(int length) { 2192 inline static int SizeFor(int length) {
2190 return kHeaderSize + length * kDoubleSize; 2193 return kHeaderSize + length * kDoubleSize;
2191 } 2194 }
2192 2195
2193 // Code Generation support. 2196 // Code Generation support.
2194 static int OffsetOfElementAt(int index) { return SizeFor(index); } 2197 static int OffsetOfElementAt(int index) { return SizeFor(index); }
2195 2198
2196 inline static bool is_the_hole_nan(double value); 2199 inline static bool is_the_hole_nan(double value);
2197 inline static double hole_nan_as_double(); 2200 inline static double hole_nan_as_double();
(...skipping 5414 matching lines...) Expand 10 before | Expand all | Expand 10 after
7612 } else { 7615 } else {
7613 value &= ~(1 << bit_position); 7616 value &= ~(1 << bit_position);
7614 } 7617 }
7615 return value; 7618 return value;
7616 } 7619 }
7617 }; 7620 };
7618 7621
7619 } } // namespace v8::internal 7622 } } // namespace v8::internal
7620 7623
7621 #endif // V8_OBJECTS_H_ 7624 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698