OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1229 if (!global.is_null()) { | 1229 if (!global.is_null()) { |
1230 GenerateCheckPropertyCell(masm(), global, name, scratch2(), &miss); | 1230 GenerateCheckPropertyCell(masm(), global, name, scratch2(), &miss); |
1231 } | 1231 } |
1232 | 1232 |
1233 HandlerFrontendFooter(success, &miss); | 1233 HandlerFrontendFooter(success, &miss); |
1234 } | 1234 } |
1235 | 1235 |
1236 | 1236 |
1237 void BaseLoadStubCompiler::GenerateLoadField(Register reg, | 1237 void BaseLoadStubCompiler::GenerateLoadField(Register reg, |
1238 Handle<JSObject> holder, | 1238 Handle<JSObject> holder, |
1239 PropertyIndex index) { | 1239 PropertyIndex field) { |
1240 // Get the value from the properties. | 1240 if (!reg.is(receiver())) __ mov(receiver(), reg); |
danno
2013/05/02 10:56:59
Seems like you should try to clean this up in a fo
| |
1241 GenerateFastPropertyLoad(masm(), eax, reg, holder, index); | 1241 if (kind() == Code::LOAD_IC) { |
1242 __ ret(0); | 1242 LoadFieldStub stub(field.is_inobject(holder), |
1243 field.translate(holder), | |
1244 Representation::Tagged()); | |
1245 GenerateTailCall(masm(), stub.GetCode(isolate())); | |
1246 } else { | |
1247 KeyedLoadFieldStub stub(field.is_inobject(holder), | |
1248 field.translate(holder), | |
1249 Representation::Tagged()); | |
1250 GenerateTailCall(masm(), stub.GetCode(isolate())); | |
1251 } | |
1243 } | 1252 } |
1244 | 1253 |
1245 | 1254 |
1246 void BaseLoadStubCompiler::GenerateLoadCallback( | 1255 void BaseLoadStubCompiler::GenerateLoadCallback( |
1247 Register reg, | 1256 Register reg, |
1248 Handle<ExecutableAccessorInfo> callback) { | 1257 Handle<ExecutableAccessorInfo> callback) { |
1249 // Insert additional parameters into the stack frame above return address. | 1258 // Insert additional parameters into the stack frame above return address. |
1250 ASSERT(!scratch3().is(reg)); | 1259 ASSERT(!scratch3().is(reg)); |
1251 __ pop(scratch3()); // Get return address to place it below. | 1260 __ pop(scratch3()); // Get return address to place it below. |
1252 | 1261 |
(...skipping 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3743 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); | 3752 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); |
3744 } | 3753 } |
3745 } | 3754 } |
3746 | 3755 |
3747 | 3756 |
3748 #undef __ | 3757 #undef __ |
3749 | 3758 |
3750 } } // namespace v8::internal | 3759 } } // namespace v8::internal |
3751 | 3760 |
3752 #endif // V8_TARGET_ARCH_IA32 | 3761 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |