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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 | 368 |
369 // Pop and save an element from the top of the expression stack and | 369 // Pop and save an element from the top of the expression stack and |
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(Immediate immediate); | 379 void EmitPush(Immediate immediate); |
379 // Uses kScratchRegister, emits appropriate relocation info. | 380 // Uses kScratchRegister, emits appropriate relocation info. |
380 void EmitPush(Handle<Object> value); | 381 void EmitPush(Handle<Object> value); |
381 | 382 |
382 // Push an element on the virtual frame. | 383 // Push an element on the virtual frame. |
383 void Push(Register reg); | 384 void Push(Register reg); |
384 void Push(Handle<Object> value); | 385 void Push(Handle<Object> value); |
385 void Push(Smi* value) { Push(Handle<Object>(value)); } | 386 void Push(Smi* value) { Push(Handle<Object>(value)); } |
386 | 387 |
387 // Pushing a result invalidates it (its contents become owned by the | 388 // Pushing a result invalidates it (its contents become owned by the |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 547 |
547 // Classes that need raw access to the elements_ array. | 548 // Classes that need raw access to the elements_ array. |
548 friend class DeferredCode; | 549 friend class DeferredCode; |
549 friend class JumpTarget; | 550 friend class JumpTarget; |
550 }; | 551 }; |
551 | 552 |
552 | 553 |
553 } } // namespace v8::internal | 554 } } // namespace v8::internal |
554 | 555 |
555 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ | 556 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ |
OLD | NEW |