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

Side by Side Diff: src/ic.cc

Issue 10537050: Use the syntax of a property addition as a hint for controlling the fast-mode vs. dictionary mode h… (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 6 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/objects.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 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 Handle<Code> stub = (strict_mode == kStrictMode) 1401 Handle<Code> stub = (strict_mode == kStrictMode)
1402 ? global_proxy_stub_strict() 1402 ? global_proxy_stub_strict()
1403 : global_proxy_stub(); 1403 : global_proxy_stub();
1404 if (target() != *stub) { 1404 if (target() != *stub) {
1405 set_target(*stub); 1405 set_target(*stub);
1406 TRACE_IC("StoreIC", name, state, target()); 1406 TRACE_IC("StoreIC", name, state, target());
1407 } 1407 }
1408 } 1408 }
1409 1409
1410 // Set the property. 1410 // Set the property.
1411 return receiver->SetProperty(*name, *value, NONE, strict_mode); 1411 return receiver->SetProperty(*name,
1412 *value,
1413 NONE,
1414 strict_mode,
1415 JSReceiver::CERTAINLY_NOT_STORE_FROM_KEYED);
1412 } 1416 }
1413 1417
1414 1418
1415 void StoreIC::UpdateCaches(LookupResult* lookup, 1419 void StoreIC::UpdateCaches(LookupResult* lookup,
1416 State state, 1420 State state,
1417 StrictModeFlag strict_mode, 1421 StrictModeFlag strict_mode,
1418 Handle<JSObject> receiver, 1422 Handle<JSObject> receiver,
1419 Handle<String> name, 1423 Handle<String> name,
1420 Handle<Object> value) { 1424 Handle<Object> value) {
1421 ASSERT(!receiver->IsJSGlobalProxy()); 1425 ASSERT(!receiver->IsJSGlobalProxy());
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
2639 #undef ADDR 2643 #undef ADDR
2640 }; 2644 };
2641 2645
2642 2646
2643 Address IC::AddressFromUtilityId(IC::UtilityId id) { 2647 Address IC::AddressFromUtilityId(IC::UtilityId id) {
2644 return IC_utilities[id]; 2648 return IC_utilities[id];
2645 } 2649 }
2646 2650
2647 2651
2648 } } // namespace v8::internal 2652 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698