Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: src/arm/stub-cache-arm.cc

Issue 170343002: Reland "Allow ICs to be generated for own global proxy." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix setting through global proxy without interceptor setter. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/code-stubs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 } 1303 }
1304 1304
1305 1305
1306 #undef __ 1306 #undef __
1307 #define __ ACCESS_MASM(masm()) 1307 #define __ ACCESS_MASM(masm())
1308 1308
1309 1309
1310 Handle<Code> StoreStubCompiler::CompileStoreInterceptor( 1310 Handle<Code> StoreStubCompiler::CompileStoreInterceptor(
1311 Handle<JSObject> object, 1311 Handle<JSObject> object,
1312 Handle<Name> name) { 1312 Handle<Name> name) {
1313 Label miss;
1314
1315 // Check that the map of the object hasn't changed.
1316 __ CheckMap(receiver(), scratch1(), Handle<Map>(object->map()), &miss,
1317 DO_SMI_CHECK);
1318
1319 // Perform global security token check if needed.
1320 if (object->IsJSGlobalProxy()) {
1321 __ CheckAccessGlobalProxy(receiver(), scratch1(), &miss);
1322 }
1323
1324 // Stub is never generated for non-global objects that require access
1325 // checks.
1326 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded());
1327
1328 __ Push(receiver(), this->name(), value()); 1313 __ Push(receiver(), this->name(), value());
1329 1314
1330 // Do tail-call to the runtime system. 1315 // Do tail-call to the runtime system.
1331 ExternalReference store_ic_property = 1316 ExternalReference store_ic_property =
1332 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate()); 1317 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate());
1333 __ TailCallExternalReference(store_ic_property, 3, 1); 1318 __ TailCallExternalReference(store_ic_property, 3, 1);
1334 1319
1335 // Handle store cache miss.
1336 __ bind(&miss);
1337 TailCallBuiltin(masm(), MissBuiltin(kind()));
1338
1339 // Return the generated code. 1320 // Return the generated code.
1340 return GetCode(kind(), Code::FAST, name); 1321 return GetCode(kind(), Code::FAST, name);
1341 } 1322 }
1342 1323
1343 1324
1344 Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<HeapType> type, 1325 Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<HeapType> type,
1345 Handle<JSObject> last, 1326 Handle<JSObject> last,
1346 Handle<Name> name) { 1327 Handle<Name> name) {
1347 NonexistentHandlerFrontend(type, last, name); 1328 NonexistentHandlerFrontend(type, last, name);
1348 1329
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 // ----------------------------------- 1567 // -----------------------------------
1587 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1568 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1588 } 1569 }
1589 1570
1590 1571
1591 #undef __ 1572 #undef __
1592 1573
1593 } } // namespace v8::internal 1574 } } // namespace v8::internal
1594 1575
1595 #endif // V8_TARGET_ARCH_ARM 1576 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698