| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 // frame. Both are dropped. | 336 // frame. Both are dropped. |
| 337 Result CallKeyedLoadIC(RelocInfo::Mode mode); | 337 Result CallKeyedLoadIC(RelocInfo::Mode mode); |
| 338 | 338 |
| 339 // Call store IC. If the load is contextual, value is found on top of the | 339 // Call store IC. If the load is contextual, value is found on top of the |
| 340 // frame. If not, value and receiver are on the frame. Both are dropped. | 340 // frame. If not, value and receiver are on the frame. Both are dropped. |
| 341 Result CallStoreIC(Handle<String> name, bool is_contextual, | 341 Result CallStoreIC(Handle<String> name, bool is_contextual, |
| 342 StrictModeFlag strict_mode); | 342 StrictModeFlag strict_mode); |
| 343 | 343 |
| 344 // Call keyed store IC. Value, key, and receiver are found on top | 344 // Call keyed store IC. Value, key, and receiver are found on top |
| 345 // of the frame. All three are dropped. | 345 // of the frame. All three are dropped. |
| 346 Result CallKeyedStoreIC(); | 346 Result CallKeyedStoreIC(StrictModeFlag strict_mode); |
| 347 | 347 |
| 348 // Call call IC. Function name, arguments, and receiver are found on top | 348 // Call call IC. Function name, arguments, and receiver are found on top |
| 349 // of the frame and dropped by the call. | 349 // of the frame and dropped by the call. |
| 350 // The argument count does not include the receiver. | 350 // The argument count does not include the receiver. |
| 351 Result CallCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); | 351 Result CallCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); |
| 352 | 352 |
| 353 // Call keyed call IC. Same calling convention as CallCallIC. | 353 // Call keyed call IC. Same calling convention as CallCallIC. |
| 354 Result CallKeyedCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); | 354 Result CallKeyedCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); |
| 355 | 355 |
| 356 // Allocate and call JS function as constructor. Arguments, | 356 // Allocate and call JS function as constructor. Arguments, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 void EmitPush(const Operand& operand, | 393 void EmitPush(const Operand& operand, |
| 394 TypeInfo info = TypeInfo::Unknown()); | 394 TypeInfo info = TypeInfo::Unknown()); |
| 395 void EmitPush(Heap::RootListIndex index, | 395 void EmitPush(Heap::RootListIndex index, |
| 396 TypeInfo info = TypeInfo::Unknown()); | 396 TypeInfo info = TypeInfo::Unknown()); |
| 397 void EmitPush(Immediate immediate, | 397 void EmitPush(Immediate immediate, |
| 398 TypeInfo info = TypeInfo::Unknown()); | 398 TypeInfo info = TypeInfo::Unknown()); |
| 399 void EmitPush(Smi* value); | 399 void EmitPush(Smi* value); |
| 400 // Uses kScratchRegister, emits appropriate relocation info. | 400 // Uses kScratchRegister, emits appropriate relocation info. |
| 401 void EmitPush(Handle<Object> value); | 401 void EmitPush(Handle<Object> value); |
| 402 | 402 |
| 403 inline bool ConstantPoolOverflowed(); |
| 404 |
| 403 // Push an element on the virtual frame. | 405 // Push an element on the virtual frame. |
| 406 void Push(Handle<Object> value); |
| 404 inline void Push(Register reg, TypeInfo info = TypeInfo::Unknown()); | 407 inline void Push(Register reg, TypeInfo info = TypeInfo::Unknown()); |
| 405 inline void Push(Handle<Object> value); | |
| 406 inline void Push(Smi* value); | 408 inline void Push(Smi* value); |
| 407 | 409 |
| 408 // Pushing a result invalidates it (its contents become owned by the | 410 // Pushing a result invalidates it (its contents become owned by the |
| 409 // frame). | 411 // frame). |
| 410 void Push(Result* result) { | 412 void Push(Result* result) { |
| 411 if (result->is_register()) { | 413 if (result->is_register()) { |
| 412 Push(result->reg(), result->type_info()); | 414 Push(result->reg(), result->type_info()); |
| 413 } else { | 415 } else { |
| 414 ASSERT(result->is_constant()); | 416 ASSERT(result->is_constant()); |
| 415 Push(result->handle()); | 417 Push(result->handle()); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 | 584 |
| 583 // Classes that need raw access to the elements_ array. | 585 // Classes that need raw access to the elements_ array. |
| 584 friend class FrameRegisterState; | 586 friend class FrameRegisterState; |
| 585 friend class JumpTarget; | 587 friend class JumpTarget; |
| 586 }; | 588 }; |
| 587 | 589 |
| 588 | 590 |
| 589 } } // namespace v8::internal | 591 } } // namespace v8::internal |
| 590 | 592 |
| 591 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ | 593 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ |
| OLD | NEW |