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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 // Duplicate the top element of the frame. | 365 // Duplicate the top element of the frame. |
366 void Dup() { PushFrameSlotAt(element_count() - 1); } | 366 void Dup() { PushFrameSlotAt(element_count() - 1); } |
367 | 367 |
368 // Pop an element from the top of the expression stack. Returns a | 368 // Pop an element from the top of the expression stack. Returns a |
369 // Result, which may be a constant or a register. | 369 // Result, which may be a constant or a register. |
370 Result Pop(); | 370 Result Pop(); |
371 | 371 |
372 // Pop and save an element from the top of the expression stack and | 372 // Pop and save an element from the top of the expression stack and |
373 // emit a corresponding pop instruction. | 373 // emit a corresponding pop instruction. |
374 void EmitPop(Register reg); | 374 void EmitPop(Register reg); |
375 void EmitPop(Operand operand); | 375 void EmitPop(const Operand& operand); |
376 | 376 |
377 // Push an element on top of the expression stack and emit a | 377 // Push an element on top of the expression stack and emit a |
378 // corresponding push instruction. | 378 // corresponding push instruction. |
379 void EmitPush(Register reg); | 379 void EmitPush(Register reg); |
380 void EmitPush(Operand operand); | 380 void EmitPush(const Operand& operand); |
381 void EmitPush(Immediate immediate); | 381 void EmitPush(Immediate immediate); |
382 | 382 |
383 // Push an element on the virtual frame. | 383 // Push an element on the virtual frame. |
384 void Push(Register reg, StaticType static_type = StaticType()); | 384 void Push(Register reg, StaticType static_type = StaticType()); |
385 void Push(Handle<Object> value); | 385 void Push(Handle<Object> value); |
386 void Push(Smi* value) { Push(Handle<Object>(value)); } | 386 void Push(Smi* value) { Push(Handle<Object>(value)); } |
387 | 387 |
388 // Pushing a result invalidates it (its contents become owned by the | 388 // Pushing a result invalidates it (its contents become owned by the |
389 // frame). | 389 // frame). |
390 void Push(Result* result) { | 390 void Push(Result* result) { |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 | 547 |
548 // Classes that need raw access to the elements_ array. | 548 // Classes that need raw access to the elements_ array. |
549 friend class DeferredCode; | 549 friend class DeferredCode; |
550 friend class JumpTarget; | 550 friend class JumpTarget; |
551 }; | 551 }; |
552 | 552 |
553 | 553 |
554 } } // namespace v8::internal | 554 } } // namespace v8::internal |
555 | 555 |
556 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ | 556 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ |
OLD | NEW |