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

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

Issue 170343004: MIPS: Reland "Allow ICs to be generated for own global proxy." (Closed) Base URL: git@github.com:paul99/v8m-rb.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | 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 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 } 1289 }
1290 1290
1291 1291
1292 #undef __ 1292 #undef __
1293 #define __ ACCESS_MASM(masm()) 1293 #define __ ACCESS_MASM(masm())
1294 1294
1295 1295
1296 Handle<Code> StoreStubCompiler::CompileStoreInterceptor( 1296 Handle<Code> StoreStubCompiler::CompileStoreInterceptor(
1297 Handle<JSObject> object, 1297 Handle<JSObject> object,
1298 Handle<Name> name) { 1298 Handle<Name> name) {
1299 Label miss;
1300
1301 // Check that the map of the object hasn't changed.
1302 __ CheckMap(receiver(), scratch1(), Handle<Map>(object->map()), &miss,
1303 DO_SMI_CHECK);
1304
1305 // Perform global security token check if needed.
1306 if (object->IsJSGlobalProxy()) {
1307 __ CheckAccessGlobalProxy(receiver(), scratch1(), &miss);
1308 }
1309
1310 // Stub is never generated for non-global objects that require access
1311 // checks.
1312 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded());
1313
1314 __ Push(receiver(), this->name(), value()); 1299 __ Push(receiver(), this->name(), value());
1315 1300
1316 // Do tail-call to the runtime system. 1301 // Do tail-call to the runtime system.
1317 ExternalReference store_ic_property = 1302 ExternalReference store_ic_property =
1318 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate()); 1303 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate());
1319 __ TailCallExternalReference(store_ic_property, 3, 1); 1304 __ TailCallExternalReference(store_ic_property, 3, 1);
1320 1305
1321 // Handle store cache miss.
1322 __ bind(&miss);
1323 TailCallBuiltin(masm(), MissBuiltin(kind()));
1324
1325 // Return the generated code. 1306 // Return the generated code.
1326 return GetCode(kind(), Code::FAST, name); 1307 return GetCode(kind(), Code::FAST, name);
1327 } 1308 }
1328 1309
1329 1310
1330 Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<HeapType> type, 1311 Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<HeapType> type,
1331 Handle<JSObject> last, 1312 Handle<JSObject> last,
1332 Handle<Name> name) { 1313 Handle<Name> name) {
1333 NonexistentHandlerFrontend(type, last, name); 1314 NonexistentHandlerFrontend(type, last, name);
1334 1315
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 // ----------------------------------- 1551 // -----------------------------------
1571 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1552 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1572 } 1553 }
1573 1554
1574 1555
1575 #undef __ 1556 #undef __
1576 1557
1577 } } // namespace v8::internal 1558 } } // namespace v8::internal
1578 1559
1579 #endif // V8_TARGET_ARCH_MIPS 1560 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698