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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 void Push(Result* result) { | 408 void Push(Result* result) { |
409 if (result->is_register()) { | 409 if (result->is_register()) { |
410 Push(result->reg(), result->type_info()); | 410 Push(result->reg(), result->type_info()); |
411 } else { | 411 } else { |
412 ASSERT(result->is_constant()); | 412 ASSERT(result->is_constant()); |
413 Push(result->handle()); | 413 Push(result->handle()); |
414 } | 414 } |
415 result->Unuse(); | 415 result->Unuse(); |
416 } | 416 } |
417 | 417 |
| 418 // Pushing an expression expects that the expression is trivial (according |
| 419 // to Expression::IsTrivial). |
| 420 void Push(Expression* expr); |
| 421 |
418 // Nip removes zero or more elements from immediately below the top | 422 // Nip removes zero or more elements from immediately below the top |
419 // of the frame, leaving the previous top-of-frame value on top of | 423 // of the frame, leaving the previous top-of-frame value on top of |
420 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). | 424 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). |
421 inline void Nip(int num_dropped); | 425 inline void Nip(int num_dropped); |
422 | 426 |
423 inline void SetTypeForLocalAt(int index, TypeInfo info); | 427 inline void SetTypeForLocalAt(int index, TypeInfo info); |
424 inline void SetTypeForParamAt(int index, TypeInfo info); | 428 inline void SetTypeForParamAt(int index, TypeInfo info); |
425 | 429 |
426 private: | 430 private: |
427 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; | 431 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 | 572 |
569 // Classes that need raw access to the elements_ array. | 573 // Classes that need raw access to the elements_ array. |
570 friend class DeferredCode; | 574 friend class DeferredCode; |
571 friend class JumpTarget; | 575 friend class JumpTarget; |
572 }; | 576 }; |
573 | 577 |
574 | 578 |
575 } } // namespace v8::internal | 579 } } // namespace v8::internal |
576 | 580 |
577 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ | 581 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ |
OLD | NEW |