OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 } | 510 } |
511 } | 511 } |
512 | 512 |
513 | 513 |
514 const char* RuntimeStub::GetName() { | 514 const char* RuntimeStub::GetName() { |
515 return Runtime::FunctionForId(id_)->stub_name; | 515 return Runtime::FunctionForId(id_)->stub_name; |
516 } | 516 } |
517 | 517 |
518 | 518 |
519 void RuntimeStub::Generate(MacroAssembler* masm) { | 519 void RuntimeStub::Generate(MacroAssembler* masm) { |
520 masm->TailCallRuntime(ExternalReference(id_), num_arguments_); | 520 Runtime::Function* f = Runtime::FunctionForId(id_); |
| 521 masm->TailCallRuntime(ExternalReference(f), |
| 522 num_arguments_, |
| 523 f->result_size); |
521 } | 524 } |
522 | 525 |
523 | 526 |
524 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 527 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
525 switch (type_) { | 528 switch (type_) { |
526 case READ_LENGTH: GenerateReadLength(masm); break; | 529 case READ_LENGTH: GenerateReadLength(masm); break; |
527 case READ_ELEMENT: GenerateReadElement(masm); break; | 530 case READ_ELEMENT: GenerateReadElement(masm); break; |
528 case NEW_OBJECT: GenerateNewObject(masm); break; | 531 case NEW_OBJECT: GenerateNewObject(masm); break; |
529 } | 532 } |
530 } | 533 } |
531 | 534 |
532 | 535 |
533 } } // namespace v8::internal | 536 } } // namespace v8::internal |
OLD | NEW |