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

Side by Side Diff: src/x64/code-stubs-x64.h

Issue 6546036: Combine typed and pixel arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: final version Created 9 years, 9 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 | « src/v8-counters.h ('k') | src/x64/code-stubs-x64.cc » ('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 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 const char* GetName() { return "NumberToStringStub"; } 464 const char* GetName() { return "NumberToStringStub"; }
465 465
466 #ifdef DEBUG 466 #ifdef DEBUG
467 void Print() { 467 void Print() {
468 PrintF("NumberToStringStub\n"); 468 PrintF("NumberToStringStub\n");
469 } 469 }
470 #endif 470 #endif
471 }; 471 };
472 472
473 473
474 // Generate code to load an element from a pixel array. The receiver is assumed
475 // to not be a smi and to have elements, the caller must guarantee this
476 // precondition. If key is not a smi, then the generated code branches to
477 // key_not_smi. Callers can specify NULL for key_not_smi to signal that a smi
478 // check has already been performed on key so that the smi check is not
479 // generated. If key is not a valid index within the bounds of the pixel array,
480 // the generated code jumps to out_of_range. receiver, key and elements are
481 // unchanged throughout the generated code sequence.
482 void GenerateFastPixelArrayLoad(MacroAssembler* masm,
483 Register receiver,
484 Register key,
485 Register elements,
486 Register untagged_key,
487 Register result,
488 Label* not_pixel_array,
489 Label* key_not_smi,
490 Label* out_of_range);
491
492 // Generate code to store an element into a pixel array, clamping values between
493 // [0..255]. The receiver is assumed to not be a smi and to have elements, the
494 // caller must guarantee this precondition. If key is not a smi, then the
495 // generated code branches to key_not_smi. Callers can specify NULL for
496 // key_not_smi to signal that a smi check has already been performed on key so
497 // that the smi check is not generated. If the value is not a smi, the
498 // generated code will branch to value_not_smi. If the receiver
499 // doesn't have pixel array elements, the generated code will branch to
500 // not_pixel_array, unless not_pixel_array is NULL, in which case the caller
501 // must ensure that the receiver has pixel array elements. If key is not a
502 // valid index within the bounds of the pixel array, the generated code jumps to
503 // out_of_range.
504 void GenerateFastPixelArrayStore(MacroAssembler* masm,
505 Register receiver,
506 Register key,
507 Register value,
508 Register elements,
509 Register scratch1,
510 bool load_elements_from_receiver,
511 bool key_is_untagged,
512 Label* key_not_smi,
513 Label* value_not_smi,
514 Label* not_pixel_array,
515 Label* out_of_range);
516
517 } } // namespace v8::internal 474 } } // namespace v8::internal
518 475
519 #endif // V8_X64_CODE_STUBS_X64_H_ 476 #endif // V8_X64_CODE_STUBS_X64_H_
OLDNEW
« no previous file with comments | « src/v8-counters.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698