| 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 // emit a corresponding pop instruction. | 370 // emit a corresponding pop instruction. |
| 371 void EmitPop(Register reg); | 371 void EmitPop(Register reg); |
| 372 void EmitPop(const Operand& operand); | 372 void EmitPop(const Operand& operand); |
| 373 | 373 |
| 374 // Push an element on top of the expression stack and emit a | 374 // Push an element on top of the expression stack and emit a |
| 375 // corresponding push instruction. | 375 // corresponding push instruction. |
| 376 void EmitPush(Register reg); | 376 void EmitPush(Register reg); |
| 377 void EmitPush(const Operand& operand); | 377 void EmitPush(const Operand& operand); |
| 378 void EmitPush(Heap::RootListIndex index); | 378 void EmitPush(Heap::RootListIndex index); |
| 379 void EmitPush(Immediate immediate); | 379 void EmitPush(Immediate immediate); |
| 380 void EmitPush(Smi* value); |
| 380 // Uses kScratchRegister, emits appropriate relocation info. | 381 // Uses kScratchRegister, emits appropriate relocation info. |
| 381 void EmitPush(Handle<Object> value); | 382 void EmitPush(Handle<Object> value); |
| 382 | 383 |
| 383 // Push an element on the virtual frame. | 384 // Push an element on the virtual frame. |
| 384 void Push(Register reg); | 385 void Push(Register reg); |
| 385 void Push(Handle<Object> value); | 386 void Push(Handle<Object> value); |
| 386 void Push(Smi* value) { Push(Handle<Object>(value)); } | 387 void Push(Smi* value) { Push(Handle<Object>(value)); } |
| 387 | 388 |
| 388 // Pushing a result invalidates it (its contents become owned by the | 389 // Pushing a result invalidates it (its contents become owned by the |
| 389 // frame). | 390 // frame). |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 | 548 |
| 548 // Classes that need raw access to the elements_ array. | 549 // Classes that need raw access to the elements_ array. |
| 549 friend class DeferredCode; | 550 friend class DeferredCode; |
| 550 friend class JumpTarget; | 551 friend class JumpTarget; |
| 551 }; | 552 }; |
| 552 | 553 |
| 553 | 554 |
| 554 } } // namespace v8::internal | 555 } } // namespace v8::internal |
| 555 | 556 |
| 556 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ | 557 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ |
| OLD | NEW |