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