| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 void EmitPop(Register reg); | 314 void EmitPop(Register reg); |
| 315 void EmitPop(Operand operand); | 315 void EmitPop(Operand operand); |
| 316 | 316 |
| 317 // Push an element on top of the expression stack and emit a | 317 // Push an element on top of the expression stack and emit a |
| 318 // corresponding push instruction. | 318 // corresponding push instruction. |
| 319 void EmitPush(Register reg); | 319 void EmitPush(Register reg); |
| 320 void EmitPush(Operand operand); | 320 void EmitPush(Operand operand); |
| 321 void EmitPush(Immediate immediate); | 321 void EmitPush(Immediate immediate); |
| 322 | 322 |
| 323 // Push an element on the virtual frame. | 323 // Push an element on the virtual frame. |
| 324 void Push(Register reg); | 324 void Push(Register reg, StaticType static_type = StaticType()); |
| 325 void Push(Handle<Object> value); | 325 void Push(Handle<Object> value); |
| 326 void Push(Smi* value) { Push(Handle<Object>(value)); } | 326 void Push(Smi* value) { Push(Handle<Object>(value)); } |
| 327 | 327 |
| 328 // Pushing a result invalidates it (its contents become owned by the | 328 // Pushing a result invalidates it (its contents become owned by the |
| 329 // frame). | 329 // frame). |
| 330 void Push(Result* result); | 330 void Push(Result* result); |
| 331 | 331 |
| 332 // Nip removes zero or more elements from immediately below the top | 332 // Nip removes zero or more elements from immediately below the top |
| 333 // of the frame, leaving the previous top-of-frame value on top of | 333 // of the frame, leaving the previous top-of-frame value on top of |
| 334 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). | 334 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); | 480 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); |
| 481 | 481 |
| 482 bool Equals(VirtualFrame* other); | 482 bool Equals(VirtualFrame* other); |
| 483 | 483 |
| 484 friend class JumpTarget; | 484 friend class JumpTarget; |
| 485 }; | 485 }; |
| 486 | 486 |
| 487 } } // namespace v8::internal | 487 } } // namespace v8::internal |
| 488 | 488 |
| 489 #endif // V8_VIRTUAL_FRAME_IA32_H_ | 489 #endif // V8_VIRTUAL_FRAME_IA32_H_ |
| OLD | NEW |