| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 334 |
| 335 // Call keyed load IC. Key and receiver are found on top of the | 335 // Call keyed load IC. Key and receiver are found on top of the |
| 336 // frame. They are not dropped. | 336 // frame. They are not dropped. |
| 337 Result CallKeyedLoadIC(RelocInfo::Mode mode); | 337 Result CallKeyedLoadIC(RelocInfo::Mode mode); |
| 338 | 338 |
| 339 | 339 |
| 340 // Calling a store IC and a keyed store IC differ only by which ic is called | 340 // Calling a store IC and a keyed store IC differ only by which ic is called |
| 341 // and by the order of the three arguments on the frame. | 341 // and by the order of the three arguments on the frame. |
| 342 Result CallCommonStoreIC(Handle<Code> ic, | 342 Result CallCommonStoreIC(Handle<Code> ic, |
| 343 Result* value, | 343 Result* value, |
| 344 Result *key, | 344 Result* key, |
| 345 Result* receiver); | 345 Result* receiver); |
| 346 | 346 |
| 347 // Call store IC. Name, value, and receiver are found on top | 347 // Call store IC. Name, value, and receiver are found on top |
| 348 // of the frame. All are dropped. | 348 // of the frame. All are dropped. |
| 349 Result CallStoreIC() { | 349 Result CallStoreIC() { |
| 350 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize)); | 350 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize)); |
| 351 Result name = Pop(); | 351 Result name = Pop(); |
| 352 Result value = Pop(); | 352 Result value = Pop(); |
| 353 Result receiver = Pop(); | 353 Result receiver = Pop(); |
| 354 return CallCommonStoreIC(ic, &value, &name, &receiver); | 354 return CallCommonStoreIC(ic, &value, &name, &receiver); |
| 355 } | 355 } |
| 356 | 356 |
| 357 // Call store IC. If the load is contextual, value is found on top of the |
| 358 // frame. If not, value and receiver are on the frame. Both are dropped. |
| 359 Result CallStoreIC(Handle<String> name, bool is_contextual); |
| 360 |
| 357 // Call keyed store IC. Value, key, and receiver are found on top | 361 // Call keyed store IC. Value, key, and receiver are found on top |
| 358 // of the frame. All are dropped. | 362 // of the frame. All are dropped. |
| 359 Result CallKeyedStoreIC() { | 363 Result CallKeyedStoreIC() { |
| 360 Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Initialize)); | 364 Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Initialize)); |
| 361 Result value = Pop(); | 365 Result value = Pop(); |
| 362 Result key = Pop(); | 366 Result key = Pop(); |
| 363 Result receiver = Pop(); | 367 Result receiver = Pop(); |
| 364 return CallCommonStoreIC(ic, &value, &key, &receiver); | 368 return CallCommonStoreIC(ic, &value, &key, &receiver); |
| 365 } | 369 } |
| 366 | 370 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 | 604 |
| 601 // Classes that need raw access to the elements_ array. | 605 // Classes that need raw access to the elements_ array. |
| 602 friend class FrameRegisterState; | 606 friend class FrameRegisterState; |
| 603 friend class JumpTarget; | 607 friend class JumpTarget; |
| 604 }; | 608 }; |
| 605 | 609 |
| 606 | 610 |
| 607 } } // namespace v8::internal | 611 } } // namespace v8::internal |
| 608 | 612 |
| 609 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ | 613 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ |
| OLD | NEW |