| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 function_return_is_shadowed_(false) { | 74 function_return_is_shadowed_(false) { |
| 75 } | 75 } |
| 76 | 76 |
| 77 | 77 |
| 78 // Calling conventions: | 78 // Calling conventions: |
| 79 // s8_fp: caller's frame pointer | 79 // s8_fp: caller's frame pointer |
| 80 // sp: stack pointer | 80 // sp: stack pointer |
| 81 // a1: called JS function | 81 // a1: called JS function |
| 82 // cp: callee's context | 82 // cp: callee's context |
| 83 | 83 |
| 84 void CodeGenerator::Generate(CompilationInfo* info, Mode mode) { | 84 void CodeGenerator::Generate(CompilationInfo* infomode) { |
| 85 UNIMPLEMENTED_MIPS(); | 85 UNIMPLEMENTED_MIPS(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 | 88 |
| 89 void CodeGenerator::VisitStatements(ZoneList<Statement*>* statements) { | 89 void CodeGenerator::VisitStatements(ZoneList<Statement*>* statements) { |
| 90 UNIMPLEMENTED_MIPS(); | 90 UNIMPLEMENTED_MIPS(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 | 93 |
| 94 void CodeGenerator::VisitBlock(Block* node) { | 94 void CodeGenerator::VisitBlock(Block* node) { |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 __ break_(0x826); | 460 __ break_(0x826); |
| 461 } | 461 } |
| 462 | 462 |
| 463 void CEntryStub::Generate(MacroAssembler* masm) { | 463 void CEntryStub::Generate(MacroAssembler* masm) { |
| 464 UNIMPLEMENTED_MIPS(); | 464 UNIMPLEMENTED_MIPS(); |
| 465 __ break_(0x831); | 465 __ break_(0x831); |
| 466 } | 466 } |
| 467 | 467 |
| 468 void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { | 468 void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { |
| 469 UNIMPLEMENTED_MIPS(); | 469 UNIMPLEMENTED_MIPS(); |
| 470 |
| 471 // Save callee saved registers on the stack. |
| 472 __ MultiPush(kCalleeSaved | ra.bit()); |
| 473 |
| 474 // ********** State ********** |
| 475 // |
| 476 // * Registers: |
| 477 // a0: entry_address |
| 478 // a1: function |
| 479 // a2: reveiver_pointer |
| 480 // a3: argc |
| 481 // |
| 482 // * Stack: |
| 483 // --------------------------- |
| 484 // args |
| 485 // --------------------------- |
| 486 // 4 args slots |
| 487 // --------------------------- |
| 488 // callee saved registers + ra |
| 489 // --------------------------- |
| 490 // |
| 491 // *************************** |
| 492 |
| 493 __ break_(0x1234); |
| 494 |
| 495 // Restore callee saved registers from the stack. |
| 496 __ MultiPop(kCalleeSaved | ra.bit()); |
| 497 |
| 470 // Load a result. | 498 // Load a result. |
| 471 __ li(v0, Operand(0x1234)); | 499 __ li(v0, Operand(0x1234)); |
| 472 __ jr(ra); | 500 __ jr(ra); |
| 473 // Return | 501 // Return |
| 474 __ nop(); | 502 __ nop(); |
| 475 } | 503 } |
| 476 | 504 |
| 477 | 505 |
| 478 // This stub performs an instanceof, calling the builtin function if | 506 // This stub performs an instanceof, calling the builtin function if |
| 479 // necessary. Uses a1 for the object, a0 for the function that it may | 507 // necessary. Uses a1 for the object, a0 for the function that it may |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 int CompareStub::MinorKey() { | 539 int CompareStub::MinorKey() { |
| 512 // Encode the two parameters in a unique 16 bit value. | 540 // Encode the two parameters in a unique 16 bit value. |
| 513 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15)); | 541 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15)); |
| 514 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0); | 542 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0); |
| 515 } | 543 } |
| 516 | 544 |
| 517 | 545 |
| 518 #undef __ | 546 #undef __ |
| 519 | 547 |
| 520 } } // namespace v8::internal | 548 } } // namespace v8::internal |
| OLD | NEW |