| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 | 333 |
| 334 // Pop an element from the top of the expression stack. The register | 334 // Pop an element from the top of the expression stack. The register |
| 335 // will be one normally used for the top of stack register allocation | 335 // will be one normally used for the top of stack register allocation |
| 336 // so you can't hold on to it if you push on the stack. | 336 // so you can't hold on to it if you push on the stack. |
| 337 Register PopToRegister(Register but_not_to_this_one = no_reg); | 337 Register PopToRegister(Register but_not_to_this_one = no_reg); |
| 338 | 338 |
| 339 // Look at the top of the stack. The register returned is aliased and | 339 // Look at the top of the stack. The register returned is aliased and |
| 340 // must be copied to a scratch register before modification. | 340 // must be copied to a scratch register before modification. |
| 341 Register Peek(); | 341 Register Peek(); |
| 342 | 342 |
| 343 // A little specialized, this one. It flushes all registers, but it puts a |
| 344 // copy of the top-of-stack in R0. |
| 345 void SpillAllButCopyTOSToR0(); |
| 346 |
| 343 // Pop and save an element from the top of the expression stack and | 347 // Pop and save an element from the top of the expression stack and |
| 344 // emit a corresponding pop instruction. | 348 // emit a corresponding pop instruction. |
| 345 void EmitPop(Register reg); | 349 void EmitPop(Register reg); |
| 346 | 350 |
| 347 // Takes the top two elements and puts them in r0 (top element) and r1 | 351 // Takes the top two elements and puts them in r0 (top element) and r1 |
| 348 // (second element). | 352 // (second element). |
| 349 void PopToR1R0(); | 353 void PopToR1R0(); |
| 350 | 354 |
| 351 // Takes the top element and puts it in r1. | 355 // Takes the top element and puts it in r1. |
| 352 void PopToR1(); | 356 void PopToR1(); |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 inline bool Equals(VirtualFrame* other); | 474 inline bool Equals(VirtualFrame* other); |
| 471 | 475 |
| 472 friend class JumpTarget; | 476 friend class JumpTarget; |
| 473 friend class DeferredCode; | 477 friend class DeferredCode; |
| 474 }; | 478 }; |
| 475 | 479 |
| 476 | 480 |
| 477 } } // namespace v8::internal | 481 } } // namespace v8::internal |
| 478 | 482 |
| 479 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_ | 483 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_ |
| OLD | NEW |