| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 void EmitPush(Immediate immediate); | 378 void EmitPush(Immediate immediate); |
| 379 | 379 |
| 380 // Push an element on the virtual frame. | 380 // Push an element on the virtual frame. |
| 381 void Push(Register reg); | 381 void Push(Register reg); |
| 382 void Push(Handle<Object> value); | 382 void Push(Handle<Object> value); |
| 383 | 383 |
| 384 // Pushing a result invalidates it (its contents become owned by the | 384 // Pushing a result invalidates it (its contents become owned by the |
| 385 // frame). | 385 // frame). |
| 386 void Push(Result* result); | 386 void Push(Result* result); |
| 387 | 387 |
| 388 // Nip removes zero or more elements from immediately below the top |
| 389 // of the frame, leaving the previous top-of-frame value on top of |
| 390 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). |
| 391 void Nip(int num_dropped); |
| 392 |
| 388 #ifdef DEBUG | 393 #ifdef DEBUG |
| 389 bool IsSpilled(); | 394 bool IsSpilled(); |
| 390 #endif | 395 #endif |
| 391 | 396 |
| 392 private: | 397 private: |
| 393 // An illegal index into the virtual frame. | 398 // An illegal index into the virtual frame. |
| 394 static const int kIllegalIndex = -1; | 399 static const int kIllegalIndex = -1; |
| 395 | 400 |
| 396 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; | 401 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; |
| 397 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset; | 402 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 // Called after all register-to-memory and register-to-register | 522 // Called after all register-to-memory and register-to-register |
| 518 // moves have been made. After this function returns, the frames | 523 // moves have been made. After this function returns, the frames |
| 519 // should be equal. | 524 // should be equal. |
| 520 void MergeMoveMemoryToRegisters(VirtualFrame* expected); | 525 void MergeMoveMemoryToRegisters(VirtualFrame* expected); |
| 521 }; | 526 }; |
| 522 | 527 |
| 523 | 528 |
| 524 } } // namespace v8::internal | 529 } } // namespace v8::internal |
| 525 | 530 |
| 526 #endif // V8_VIRTUAL_FRAME_IA32_H_ | 531 #endif // V8_VIRTUAL_FRAME_IA32_H_ |
| OLD | NEW |