| OLD | NEW |
| 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 MacroAssembler* masm = code->masm(); | 57 MacroAssembler* masm = code->masm(); |
| 58 // Record position of deferred code stub. | 58 // Record position of deferred code stub. |
| 59 if (code->statement_position() != RelocInfo::kNoPosition) { | 59 if (code->statement_position() != RelocInfo::kNoPosition) { |
| 60 masm->RecordStatementPosition(code->statement_position()); | 60 masm->RecordStatementPosition(code->statement_position()); |
| 61 } | 61 } |
| 62 if (code->position() != RelocInfo::kNoPosition) { | 62 if (code->position() != RelocInfo::kNoPosition) { |
| 63 masm->RecordPosition(code->position()); | 63 masm->RecordPosition(code->position()); |
| 64 } | 64 } |
| 65 // Bind labels and generate the code. | 65 // Bind labels and generate the code. |
| 66 code->enter()->Bind(); | 66 code->enter()->Bind(); |
| 67 frame_->SpillAll(0); |
| 67 Comment cmnt(masm, code->comment()); | 68 Comment cmnt(masm, code->comment()); |
| 68 code->Generate(); | 69 code->Generate(); |
| 69 if (code->exit()->is_bound()) { | 70 if (code->exit()->is_bound()) { |
| 70 code->exit()->Jump(); | 71 code->exit()->Jump(); |
| 71 } | 72 } |
| 72 } | 73 } |
| 73 } | 74 } |
| 74 | 75 |
| 75 | 76 |
| 76 // Generate the code. Takes a function literal, generates code for it, assemble | 77 // Generate the code. Takes a function literal, generates code for it, assemble |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 491 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
| 491 switch (type_) { | 492 switch (type_) { |
| 492 case READ_LENGTH: GenerateReadLength(masm); break; | 493 case READ_LENGTH: GenerateReadLength(masm); break; |
| 493 case READ_ELEMENT: GenerateReadElement(masm); break; | 494 case READ_ELEMENT: GenerateReadElement(masm); break; |
| 494 case NEW_OBJECT: GenerateNewObject(masm); break; | 495 case NEW_OBJECT: GenerateNewObject(masm); break; |
| 495 } | 496 } |
| 496 } | 497 } |
| 497 | 498 |
| 498 | 499 |
| 499 } } // namespace v8::internal | 500 } } // namespace v8::internal |
| OLD | NEW |