| 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 // frame. Both are dropped. | 363 // frame. Both are dropped. |
| 364 Result CallKeyedLoadIC(RelocInfo::Mode mode); | 364 Result CallKeyedLoadIC(RelocInfo::Mode mode); |
| 365 | 365 |
| 366 // Call store IC. If the load is contextual, value is found on top of the | 366 // Call store IC. If the load is contextual, value is found on top of the |
| 367 // frame. If not, value and receiver are on the frame. Both are dropped. | 367 // frame. If not, value and receiver are on the frame. Both are dropped. |
| 368 Result CallStoreIC(Handle<String> name, bool is_contextual, | 368 Result CallStoreIC(Handle<String> name, bool is_contextual, |
| 369 StrictModeFlag strict_mode); | 369 StrictModeFlag strict_mode); |
| 370 | 370 |
| 371 // Call keyed store IC. Value, key, and receiver are found on top | 371 // Call keyed store IC. Value, key, and receiver are found on top |
| 372 // of the frame. All three are dropped. | 372 // of the frame. All three are dropped. |
| 373 Result CallKeyedStoreIC(); | 373 Result CallKeyedStoreIC(StrictModeFlag strict_mode); |
| 374 | 374 |
| 375 // Call call IC. Function name, arguments, and receiver are found on top | 375 // Call call IC. Function name, arguments, and receiver are found on top |
| 376 // of the frame and dropped by the call. The argument count does not | 376 // of the frame and dropped by the call. The argument count does not |
| 377 // include the receiver. | 377 // include the receiver. |
| 378 Result CallCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); | 378 Result CallCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); |
| 379 | 379 |
| 380 // Call keyed call IC. Same calling convention as CallCallIC. | 380 // Call keyed call IC. Same calling convention as CallCallIC. |
| 381 Result CallKeyedCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); | 381 Result CallKeyedCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); |
| 382 | 382 |
| 383 // Allocate and call JS function as constructor. Arguments, | 383 // Allocate and call JS function as constructor. Arguments, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 412 | 412 |
| 413 // Push an element on top of the expression stack and emit a | 413 // Push an element on top of the expression stack and emit a |
| 414 // corresponding push instruction. | 414 // corresponding push instruction. |
| 415 void EmitPush(Register reg, | 415 void EmitPush(Register reg, |
| 416 TypeInfo info = TypeInfo::Unknown()); | 416 TypeInfo info = TypeInfo::Unknown()); |
| 417 void EmitPush(Operand operand, | 417 void EmitPush(Operand operand, |
| 418 TypeInfo info = TypeInfo::Unknown()); | 418 TypeInfo info = TypeInfo::Unknown()); |
| 419 void EmitPush(Immediate immediate, | 419 void EmitPush(Immediate immediate, |
| 420 TypeInfo info = TypeInfo::Unknown()); | 420 TypeInfo info = TypeInfo::Unknown()); |
| 421 | 421 |
| 422 inline bool ConstantPoolOverflowed(); |
| 423 |
| 422 // Push an element on the virtual frame. | 424 // Push an element on the virtual frame. |
| 425 void Push(Handle<Object> value); |
| 423 inline void Push(Register reg, TypeInfo info = TypeInfo::Unknown()); | 426 inline void Push(Register reg, TypeInfo info = TypeInfo::Unknown()); |
| 424 inline void Push(Handle<Object> value); | |
| 425 inline void Push(Smi* value); | 427 inline void Push(Smi* value); |
| 426 | 428 |
| 427 void PushUntaggedElement(Handle<Object> value); | 429 void PushUntaggedElement(Handle<Object> value); |
| 428 | 430 |
| 429 // Pushing a result invalidates it (its contents become owned by the | 431 // Pushing a result invalidates it (its contents become owned by the |
| 430 // frame). | 432 // frame). |
| 431 void Push(Result* result) { | 433 void Push(Result* result) { |
| 432 // This assert will trigger if you try to push the same value twice. | 434 // This assert will trigger if you try to push the same value twice. |
| 433 ASSERT(result->is_valid()); | 435 ASSERT(result->is_valid()); |
| 434 if (result->is_register()) { | 436 if (result->is_register()) { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 inline bool Equals(VirtualFrame* other); | 637 inline bool Equals(VirtualFrame* other); |
| 636 | 638 |
| 637 // Classes that need raw access to the elements_ array. | 639 // Classes that need raw access to the elements_ array. |
| 638 friend class FrameRegisterState; | 640 friend class FrameRegisterState; |
| 639 friend class JumpTarget; | 641 friend class JumpTarget; |
| 640 }; | 642 }; |
| 641 | 643 |
| 642 } } // namespace v8::internal | 644 } } // namespace v8::internal |
| 643 | 645 |
| 644 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ | 646 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ |
| OLD | NEW |