| OLD | NEW | 
|---|
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 440   const char* GetName() { return "NumberToStringStub"; } | 440   const char* GetName() { return "NumberToStringStub"; } | 
| 441 | 441 | 
| 442 #ifdef DEBUG | 442 #ifdef DEBUG | 
| 443   void Print() { | 443   void Print() { | 
| 444     PrintF("NumberToStringStub\n"); | 444     PrintF("NumberToStringStub\n"); | 
| 445   } | 445   } | 
| 446 #endif | 446 #endif | 
| 447 }; | 447 }; | 
| 448 | 448 | 
| 449 | 449 | 
|  | 450 // Generate code the to load an element from a pixel array. The receiver is | 
|  | 451 // assumed to not be a smi and to have elements, the caller must guarantee this | 
|  | 452 // precondition. If the receiver does not have elements that are pixel arrays, | 
|  | 453 // the generated code jumps to not_pixel_array. If key is not a smi, then the | 
|  | 454 // generated code branches to key_not_smi. Callers can specify NULL for | 
|  | 455 // key_not_smi to signal that a smi check has already been performed on key so | 
|  | 456 // that the smi check is not generated . If key is not a valid index within the | 
|  | 457 // bounds of the pixel array, the generated code jumps to out_of_range. | 
|  | 458 void GenerateFastPixelArrayLoad(MacroAssembler* masm, | 
|  | 459                                 Register receiver, | 
|  | 460                                 Register key, | 
|  | 461                                 Register elements, | 
|  | 462                                 Register untagged_key, | 
|  | 463                                 Register result, | 
|  | 464                                 Label* not_pixel_array, | 
|  | 465                                 Label* key_not_smi, | 
|  | 466                                 Label* out_of_range); | 
|  | 467 | 
|  | 468 | 
| 450 } }  // namespace v8::internal | 469 } }  // namespace v8::internal | 
| 451 | 470 | 
| 452 #endif  // V8_X64_CODE_STUBS_X64_H_ | 471 #endif  // V8_X64_CODE_STUBS_X64_H_ | 
| OLD | NEW | 
|---|