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

Side by Side Diff: src/objects.h

Issue 11299226: Pass FixedArrayBase in elements.cc. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove castOrEmptyFixedArray Created 8 years 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 2471 matching lines...) Expand 10 before | Expand all | Expand 10 after
2482 2482
2483 // Code Generation support. 2483 // Code Generation support.
2484 static int OffsetOfElementAt(int index) { return SizeFor(index); } 2484 static int OffsetOfElementAt(int index) { return SizeFor(index); }
2485 2485
2486 inline static bool is_the_hole_nan(double value); 2486 inline static bool is_the_hole_nan(double value);
2487 inline static double hole_nan_as_double(); 2487 inline static double hole_nan_as_double();
2488 inline static double canonical_not_the_hole_nan_as_double(); 2488 inline static double canonical_not_the_hole_nan_as_double();
2489 2489
2490 // Casting. 2490 // Casting.
2491 static inline FixedDoubleArray* cast(Object* obj); 2491 static inline FixedDoubleArray* cast(Object* obj);
2492 static inline FixedDoubleArray* castOrEmptyFixedArray(Object* obj);
2493 2492
2494 // Maximal allowed size, in bytes, of a single FixedDoubleArray. 2493 // Maximal allowed size, in bytes, of a single FixedDoubleArray.
2495 // Prevents overflowing size computations, as well as extreme memory 2494 // Prevents overflowing size computations, as well as extreme memory
2496 // consumption. 2495 // consumption.
2497 static const int kMaxSize = 512 * MB; 2496 static const int kMaxSize = 512 * MB;
2498 // Maximally allowed length of a FixedArray. 2497 // Maximally allowed length of a FixedArray.
2499 static const int kMaxLength = (kMaxSize - kHeaderSize) / kDoubleSize; 2498 static const int kMaxLength = (kMaxSize - kHeaderSize) / kDoubleSize;
2500 2499
2501 // Dispatched behavior. 2500 // Dispatched behavior.
2502 #ifdef OBJECT_PRINT 2501 #ifdef OBJECT_PRINT
(...skipping 6500 matching lines...) Expand 10 before | Expand all | Expand 10 after
9003 } else { 9002 } else {
9004 value &= ~(1 << bit_position); 9003 value &= ~(1 << bit_position);
9005 } 9004 }
9006 return value; 9005 return value;
9007 } 9006 }
9008 }; 9007 };
9009 9008
9010 } } // namespace v8::internal 9009 } } // namespace v8::internal
9011 9010
9012 #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