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 159584: X64: Fix error in division & modulus, adjust mjsunit test status, fix lint er... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 4 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 | src/x64/assembler-x64.h » ('j') | src/x64/codegen-x64.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 2419 matching lines...) Expand 10 before | Expand all | Expand 10 after
2430 2430
2431 // ByteArray headers are not quadword aligned. 2431 // ByteArray headers are not quadword aligned.
2432 static const int kHeaderSize = Array::kHeaderSize; 2432 static const int kHeaderSize = Array::kHeaderSize;
2433 static const int kAlignedSize = Array::kAlignedSize; 2433 static const int kAlignedSize = Array::kAlignedSize;
2434 2434
2435 private: 2435 private:
2436 DISALLOW_IMPLICIT_CONSTRUCTORS(ByteArray); 2436 DISALLOW_IMPLICIT_CONSTRUCTORS(ByteArray);
2437 }; 2437 };
2438 2438
2439 2439
2440 // PixelArray represents a fixed size byte array with special sematics used for 2440 // A PixelArray represents a fixed-size byte array with special semantics
2441 // implementing the CanvasPixelArray object. Please see the specification at: 2441 // used for implementing the CanvasPixelArray object. Please see the
2442 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-elemen t.html#canvaspixelarray 2442 // specification at:
2443 // In particular write access clamps the values to 0 or 255 if the value 2443 // http://www.whatwg.org/specs/web-apps/current-work/
2444 // used is outside this range. 2444 // multipage/the-canvas-element.html#canvaspixelarray
2445 // In particular, write access clamps the value written to 0 or 255 if the
2446 // value written is outside this range.
2445 class PixelArray: public Array { 2447 class PixelArray: public Array {
2446 public: 2448 public:
2447 // [external_pointer]: The pointer to the external memory area backing this 2449 // [external_pointer]: The pointer to the external memory area backing this
2448 // pixel array. 2450 // pixel array.
2449 DECL_ACCESSORS(external_pointer, uint8_t) // Pointer to the data store. 2451 DECL_ACCESSORS(external_pointer, uint8_t) // Pointer to the data store.
2450 2452
2451 // Setter and getter. 2453 // Setter and getter.
2452 inline uint8_t get(int index); 2454 inline uint8_t get(int index);
2453 inline void set(int index, uint8_t value); 2455 inline void set(int index, uint8_t value);
2454 2456
(...skipping 2329 matching lines...) Expand 10 before | Expand all | Expand 10 after
4784 } else { 4786 } else {
4785 value &= ~(1 << bit_position); 4787 value &= ~(1 << bit_position);
4786 } 4788 }
4787 return value; 4789 return value;
4788 } 4790 }
4789 }; 4791 };
4790 4792
4791 } } // namespace v8::internal 4793 } } // namespace v8::internal
4792 4794
4793 #endif // V8_OBJECTS_H_ 4795 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/assembler-x64.h » ('j') | src/x64/codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698