| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 3817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3828 __ call(ic, RelocInfo::CODE_TARGET); | 3828 __ call(ic, RelocInfo::CODE_TARGET); |
| 3829 } | 3829 } |
| 3830 frame->Push(eax); // IC call leaves result in eax, push it out | 3830 frame->Push(eax); // IC call leaves result in eax, push it out |
| 3831 break; | 3831 break; |
| 3832 } | 3832 } |
| 3833 | 3833 |
| 3834 case KEYED: { | 3834 case KEYED: { |
| 3835 // TODO(1241834): Make sure that this it is safe to ignore the | 3835 // TODO(1241834): Make sure that this it is safe to ignore the |
| 3836 // distinction between expressions in a typeof and not in a typeof. | 3836 // distinction between expressions in a typeof and not in a typeof. |
| 3837 Comment cmnt(masm, "[ Load from keyed Property"); | 3837 Comment cmnt(masm, "[ Load from keyed Property"); |
| 3838 Property* property = expression_->AsProperty(); | |
| 3839 ASSERT(property != NULL); | |
| 3840 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize)); | 3838 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize)); |
| 3841 | 3839 |
| 3842 Variable* var = expression_->AsVariableProxy()->AsVariable(); | 3840 Variable* var = expression_->AsVariableProxy()->AsVariable(); |
| 3843 if (var != NULL) { | 3841 if (var != NULL) { |
| 3844 ASSERT(var->is_global()); | 3842 ASSERT(var->is_global()); |
| 3845 __ call(ic, RelocInfo::CODE_TARGET_CONTEXT); | 3843 __ call(ic, RelocInfo::CODE_TARGET_CONTEXT); |
| 3846 } else { | 3844 } else { |
| 3847 __ call(ic, RelocInfo::CODE_TARGET); | 3845 __ call(ic, RelocInfo::CODE_TARGET); |
| 3848 } | 3846 } |
| 3849 frame->Push(eax); // IC call leaves result in eax, push it out | 3847 frame->Push(eax); // IC call leaves result in eax, push it out |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3946 frame->Pop(eax); | 3944 frame->Pop(eax); |
| 3947 // Setup the name register. | 3945 // Setup the name register. |
| 3948 __ mov(ecx, name); | 3946 __ mov(ecx, name); |
| 3949 __ call(ic, RelocInfo::CODE_TARGET); | 3947 __ call(ic, RelocInfo::CODE_TARGET); |
| 3950 frame->Push(eax); // IC call leaves result in eax, push it out | 3948 frame->Push(eax); // IC call leaves result in eax, push it out |
| 3951 break; | 3949 break; |
| 3952 } | 3950 } |
| 3953 | 3951 |
| 3954 case KEYED: { | 3952 case KEYED: { |
| 3955 Comment cmnt(masm, "[ Store to keyed Property"); | 3953 Comment cmnt(masm, "[ Store to keyed Property"); |
| 3956 Property* property = expression_->AsProperty(); | |
| 3957 ASSERT(property != NULL); | |
| 3958 // Call IC code. | 3954 // Call IC code. |
| 3959 Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Initialize)); | 3955 Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Initialize)); |
| 3960 // TODO(1222589): Make the IC grab the values from the stack. | 3956 // TODO(1222589): Make the IC grab the values from the stack. |
| 3961 frame->Pop(eax); | 3957 frame->Pop(eax); |
| 3962 __ call(ic, RelocInfo::CODE_TARGET); | 3958 __ call(ic, RelocInfo::CODE_TARGET); |
| 3963 frame->Push(eax); // IC call leaves result in eax, push it out | 3959 frame->Push(eax); // IC call leaves result in eax, push it out |
| 3964 break; | 3960 break; |
| 3965 } | 3961 } |
| 3966 | 3962 |
| 3967 default: | 3963 default: |
| (...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5188 | 5184 |
| 5189 // Slow-case: Go through the JavaScript implementation. | 5185 // Slow-case: Go through the JavaScript implementation. |
| 5190 __ bind(&slow); | 5186 __ bind(&slow); |
| 5191 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); | 5187 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); |
| 5192 } | 5188 } |
| 5193 | 5189 |
| 5194 | 5190 |
| 5195 #undef __ | 5191 #undef __ |
| 5196 | 5192 |
| 5197 } } // namespace v8::internal | 5193 } } // namespace v8::internal |
| OLD | NEW |