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 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 } | 1300 } |
1301 | 1301 |
1302 | 1302 |
1303 #undef __ | 1303 #undef __ |
1304 #define __ ACCESS_MASM(masm()) | 1304 #define __ ACCESS_MASM(masm()) |
1305 | 1305 |
1306 | 1306 |
1307 Handle<Code> StoreStubCompiler::CompileStoreInterceptor( | 1307 Handle<Code> StoreStubCompiler::CompileStoreInterceptor( |
1308 Handle<JSObject> object, | 1308 Handle<JSObject> object, |
1309 Handle<Name> name) { | 1309 Handle<Name> name) { |
1310 Label miss; | |
1311 | |
1312 // Check that the map of the object hasn't changed. | |
1313 __ CheckMap(receiver(), scratch1(), Handle<Map>(object->map()), &miss, | |
1314 DO_SMI_CHECK); | |
1315 | |
1316 // Perform global security token check if needed. | |
1317 if (object->IsJSGlobalProxy()) { | |
1318 __ CheckAccessGlobalProxy(receiver(), scratch1(), &miss); | |
1319 } | |
1320 | |
1321 // Stub is never generated for non-global objects that require access | |
1322 // checks. | |
1323 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded()); | |
1324 | |
1325 __ Push(receiver(), this->name(), value()); | 1310 __ Push(receiver(), this->name(), value()); |
1326 | 1311 |
1327 // Do tail-call to the runtime system. | 1312 // Do tail-call to the runtime system. |
1328 ExternalReference store_ic_property = | 1313 ExternalReference store_ic_property = |
1329 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate()); | 1314 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate()); |
1330 __ TailCallExternalReference(store_ic_property, 3, 1); | 1315 __ TailCallExternalReference(store_ic_property, 3, 1); |
1331 | 1316 |
1332 // Handle store cache miss. | |
1333 __ bind(&miss); | |
1334 TailCallBuiltin(masm(), MissBuiltin(kind())); | |
1335 | |
1336 // Return the generated code. | 1317 // Return the generated code. |
1337 return GetCode(kind(), Code::FAST, name); | 1318 return GetCode(kind(), Code::FAST, name); |
1338 } | 1319 } |
1339 | 1320 |
1340 | 1321 |
1341 Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<HeapType> type, | 1322 Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<HeapType> type, |
1342 Handle<JSObject> last, | 1323 Handle<JSObject> last, |
1343 Handle<Name> name) { | 1324 Handle<Name> name) { |
1344 NonexistentHandlerFrontend(type, last, name); | 1325 NonexistentHandlerFrontend(type, last, name); |
1345 | 1326 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1583 // ----------------------------------- | 1564 // ----------------------------------- |
1584 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1565 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1585 } | 1566 } |
1586 | 1567 |
1587 | 1568 |
1588 #undef __ | 1569 #undef __ |
1589 | 1570 |
1590 } } // namespace v8::internal | 1571 } } // namespace v8::internal |
1591 | 1572 |
1592 #endif // V8_TARGET_ARCH_ARM | 1573 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |