| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | ModeBits::encode(mode_) | 263 | ModeBits::encode(mode_) |
| 264 | OperandTypeInfoBits::encode(operands_type_) | 264 | OperandTypeInfoBits::encode(operands_type_) |
| 265 | ResultTypeInfoBits::encode(result_type_); | 265 | ResultTypeInfoBits::encode(result_type_); |
| 266 } | 266 } |
| 267 | 267 |
| 268 void Generate(MacroAssembler* masm); | 268 void Generate(MacroAssembler* masm); |
| 269 void GenerateGeneric(MacroAssembler* masm); | 269 void GenerateGeneric(MacroAssembler* masm); |
| 270 void GenerateSmiCode(MacroAssembler* masm, | 270 void GenerateSmiCode(MacroAssembler* masm, |
| 271 Label* slow, | 271 Label* slow, |
| 272 SmiCodeGenerateHeapNumberResults heapnumber_results); | 272 SmiCodeGenerateHeapNumberResults heapnumber_results); |
| 273 void GenerateFloatingPointCode(MacroAssembler* masm, |
| 274 Label* allocation_failure, |
| 275 Label* non_numeric_failure); |
| 276 void GenerateStringAddCode(MacroAssembler* masm); |
| 277 void GenerateCallRuntimeCode(MacroAssembler* masm); |
| 273 void GenerateLoadArguments(MacroAssembler* masm); | 278 void GenerateLoadArguments(MacroAssembler* masm); |
| 274 void GenerateReturn(MacroAssembler* masm); | 279 void GenerateReturn(MacroAssembler* masm); |
| 275 void GenerateUninitializedStub(MacroAssembler* masm); | 280 void GenerateUninitializedStub(MacroAssembler* masm); |
| 276 void GenerateSmiStub(MacroAssembler* masm); | 281 void GenerateSmiStub(MacroAssembler* masm); |
| 277 void GenerateInt32Stub(MacroAssembler* masm); | 282 void GenerateInt32Stub(MacroAssembler* masm); |
| 278 void GenerateHeapNumberStub(MacroAssembler* masm); | 283 void GenerateHeapNumberStub(MacroAssembler* masm); |
| 279 void GenerateStringStub(MacroAssembler* masm); | 284 void GenerateStringStub(MacroAssembler* masm); |
| 280 void GenerateGenericStub(MacroAssembler* masm); | 285 void GenerateGenericStub(MacroAssembler* masm); |
| 281 | 286 |
| 282 void GenerateHeapResultAllocation(MacroAssembler* masm, Label* alloc_failure); | 287 void GenerateHeapResultAllocation(MacroAssembler* masm, Label* alloc_failure); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 const char* GetName() { return "NumberToStringStub"; } | 445 const char* GetName() { return "NumberToStringStub"; } |
| 441 | 446 |
| 442 #ifdef DEBUG | 447 #ifdef DEBUG |
| 443 void Print() { | 448 void Print() { |
| 444 PrintF("NumberToStringStub\n"); | 449 PrintF("NumberToStringStub\n"); |
| 445 } | 450 } |
| 446 #endif | 451 #endif |
| 447 }; | 452 }; |
| 448 | 453 |
| 449 | 454 |
| 455 // Generate code the to load an element from a pixel array. The receiver is |
| 456 // assumed to not be a smi and to have elements, the caller must guarantee this |
| 457 // precondition. If the receiver does not have elements that are pixel arrays, |
| 458 // the generated code jumps to not_pixel_array. If key is not a smi, then the |
| 459 // generated code branches to key_not_smi. Callers can specify NULL for |
| 460 // key_not_smi to signal that a smi check has already been performed on key so |
| 461 // that the smi check is not generated . If key is not a valid index within the |
| 462 // bounds of the pixel array, the generated code jumps to out_of_range. |
| 463 void GenerateFastPixelArrayLoad(MacroAssembler* masm, |
| 464 Register receiver, |
| 465 Register key, |
| 466 Register elements, |
| 467 Register untagged_key, |
| 468 Register result, |
| 469 Label* not_pixel_array, |
| 470 Label* key_not_smi, |
| 471 Label* out_of_range); |
| 472 |
| 473 |
| 450 } } // namespace v8::internal | 474 } } // namespace v8::internal |
| 451 | 475 |
| 452 #endif // V8_X64_CODE_STUBS_X64_H_ | 476 #endif // V8_X64_CODE_STUBS_X64_H_ |
| OLD | NEW |