OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 Isolate* isolate = masm->isolate(); | 516 Isolate* isolate = masm->isolate(); |
517 isolate->counters()->code_stubs()->Increment(); | 517 isolate->counters()->code_stubs()->Increment(); |
518 | 518 |
519 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); | 519 CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); |
520 int param_count = descriptor->register_param_count_; | 520 int param_count = descriptor->register_param_count_; |
521 { | 521 { |
522 // Call the runtime system in a fresh internal frame. | 522 // Call the runtime system in a fresh internal frame. |
523 FrameScope scope(masm, StackFrame::INTERNAL); | 523 FrameScope scope(masm, StackFrame::INTERNAL); |
524 ASSERT((descriptor->register_param_count_ == 0) || | 524 ASSERT((descriptor->register_param_count_ == 0) || |
525 x0.Is(descriptor->register_params_[param_count - 1])); | 525 x0.Is(descriptor->register_params_[param_count - 1])); |
526 | |
527 // Push arguments | 526 // Push arguments |
528 MacroAssembler::PushPopQueue queue(masm); | 527 // TODO(jbramley): Try to push these in blocks. |
529 for (int i = 0; i < param_count; ++i) { | 528 for (int i = 0; i < param_count; ++i) { |
530 queue.Queue(descriptor->register_params_[i]); | 529 __ Push(descriptor->register_params_[i]); |
531 } | 530 } |
532 queue.PushQueued(); | |
533 | |
534 ExternalReference miss = descriptor->miss_handler(); | 531 ExternalReference miss = descriptor->miss_handler(); |
535 __ CallExternalReference(miss, descriptor->register_param_count_); | 532 __ CallExternalReference(miss, descriptor->register_param_count_); |
536 } | 533 } |
537 | 534 |
538 __ Ret(); | 535 __ Ret(); |
539 } | 536 } |
540 | 537 |
541 | 538 |
542 void DoubleToIStub::Generate(MacroAssembler* masm) { | 539 void DoubleToIStub::Generate(MacroAssembler* masm) { |
543 Label done; | 540 Label done; |
(...skipping 5255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5799 MemOperand(fp, 6 * kPointerSize), | 5796 MemOperand(fp, 6 * kPointerSize), |
5800 NULL); | 5797 NULL); |
5801 } | 5798 } |
5802 | 5799 |
5803 | 5800 |
5804 #undef __ | 5801 #undef __ |
5805 | 5802 |
5806 } } // namespace v8::internal | 5803 } } // namespace v8::internal |
5807 | 5804 |
5808 #endif // V8_TARGET_ARCH_A64 | 5805 #endif // V8_TARGET_ARCH_A64 |
OLD | NEW |