Reviewers: Kevin Millikin,

Description:
Support for property assignment in the fast compiler.

The code for .result = (b.x = 99) where b is a global variable is:

   push [esi+0x17]
   mov ecx,0xf5c229ad          ;; object: 0xf5c229ad <String[1]: b>
   call LoadIC_Initialize
   nop
   mov [esp],eax
   mov eax,0xc6
   mov ecx,0xf5c25c41          ;; object: 0xf5c25c41 <String[1]: y>
   call StoreIC_Initialize
   nop
   mov [esp],eax
   pop [ebp+0xf4]

There is still some room for improvement in the generated code.



Please review this at http://codereview.chromium.org/347001

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/arm/fast-codegen-arm.cc
   M     src/compiler.cc
   M     src/ia32/fast-codegen-ia32.cc
   M     src/x64/fast-codegen-x64.cc



--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to