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

Side by Side Diff: src/objects.h

Issue 11280054: Ensure CopyElementsImpl is always executed so it fills in holes even if from_size is 0. Allow Fixed… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added castOrEmptyFixedArray Created 8 years, 1 month 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/elements.cc ('k') | src/objects-inl.h » ('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 2470 matching lines...) Expand 10 before | Expand all | Expand 10 after
2481 2481
2482 // Code Generation support. 2482 // Code Generation support.
2483 static int OffsetOfElementAt(int index) { return SizeFor(index); } 2483 static int OffsetOfElementAt(int index) { return SizeFor(index); }
2484 2484
2485 inline static bool is_the_hole_nan(double value); 2485 inline static bool is_the_hole_nan(double value);
2486 inline static double hole_nan_as_double(); 2486 inline static double hole_nan_as_double();
2487 inline static double canonical_not_the_hole_nan_as_double(); 2487 inline static double canonical_not_the_hole_nan_as_double();
2488 2488
2489 // Casting. 2489 // Casting.
2490 static inline FixedDoubleArray* cast(Object* obj); 2490 static inline FixedDoubleArray* cast(Object* obj);
2491 static inline FixedDoubleArray* castOrEmptyFixedArray(Object* obj);
2491 2492
2492 // Maximal allowed size, in bytes, of a single FixedDoubleArray. 2493 // Maximal allowed size, in bytes, of a single FixedDoubleArray.
2493 // Prevents overflowing size computations, as well as extreme memory 2494 // Prevents overflowing size computations, as well as extreme memory
2494 // consumption. 2495 // consumption.
2495 static const int kMaxSize = 512 * MB; 2496 static const int kMaxSize = 512 * MB;
2496 // Maximally allowed length of a FixedArray. 2497 // Maximally allowed length of a FixedArray.
2497 static const int kMaxLength = (kMaxSize - kHeaderSize) / kDoubleSize; 2498 static const int kMaxLength = (kMaxSize - kHeaderSize) / kDoubleSize;
2498 2499
2499 // Dispatched behavior. 2500 // Dispatched behavior.
2500 #ifdef OBJECT_PRINT 2501 #ifdef OBJECT_PRINT
(...skipping 6500 matching lines...) Expand 10 before | Expand all | Expand 10 after
9001 } else { 9002 } else {
9002 value &= ~(1 << bit_position); 9003 value &= ~(1 << bit_position);
9003 } 9004 }
9004 return value; 9005 return value;
9005 } 9006 }
9006 }; 9007 };
9007 9008
9008 } } // namespace v8::internal 9009 } } // namespace v8::internal
9009 9010
9010 #endif // V8_OBJECTS_H_ 9011 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698