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

Side by Side Diff: src/ic.cc

Issue 19214002: Revert 15635: Turn ElementsTransitionAndStore stub into a HydrogenCodeStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | « src/ic.h ('k') | src/mips/code-stubs-mips.cc » ('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 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 Code::ExtraICState extra_ic_state = ic.target()->extra_ic_state(); 2471 Code::ExtraICState extra_ic_state = ic.target()->extra_ic_state();
2472 return ic.Store(state, 2472 return ic.Store(state,
2473 Code::GetStrictMode(extra_ic_state), 2473 Code::GetStrictMode(extra_ic_state),
2474 args.at<Object>(0), 2474 args.at<Object>(0),
2475 args.at<Object>(1), 2475 args.at<Object>(1),
2476 args.at<Object>(2), 2476 args.at<Object>(2),
2477 MISS_FORCE_GENERIC); 2477 MISS_FORCE_GENERIC);
2478 } 2478 }
2479 2479
2480 2480
2481 RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss) {
2482 SealHandleScope scope(isolate);
2483 ASSERT(args.length() == 4);
2484 KeyedStoreIC ic(IC::EXTRA_CALL_FRAME, isolate);
2485 Code::ExtraICState extra_ic_state = ic.target()->extra_ic_state();
2486 Handle<Object> value = args.at<Object>(0);
2487 Handle<Object> key = args.at<Object>(2);
2488 Handle<Object> object = args.at<Object>(3);
2489 StrictModeFlag strict_mode = Code::GetStrictMode(extra_ic_state);
2490 return Runtime::SetObjectProperty(isolate,
2491 object,
2492 key,
2493 value,
2494 NONE,
2495 strict_mode);
2496 }
2497
2498
2499 void BinaryOpIC::patch(Code* code) { 2481 void BinaryOpIC::patch(Code* code) {
2500 set_target(code); 2482 set_target(code);
2501 } 2483 }
2502 2484
2503 2485
2504 const char* BinaryOpIC::GetName(TypeInfo type_info) { 2486 const char* BinaryOpIC::GetName(TypeInfo type_info) {
2505 switch (type_info) { 2487 switch (type_info) {
2506 case UNINITIALIZED: return "Uninitialized"; 2488 case UNINITIALIZED: return "Uninitialized";
2507 case SMI: return "Smi"; 2489 case SMI: return "Smi";
2508 case INT32: return "Int32"; 2490 case INT32: return "Int32";
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
3112 #undef ADDR 3094 #undef ADDR
3113 }; 3095 };
3114 3096
3115 3097
3116 Address IC::AddressFromUtilityId(IC::UtilityId id) { 3098 Address IC::AddressFromUtilityId(IC::UtilityId id) {
3117 return IC_utilities[id]; 3099 return IC_utilities[id];
3118 } 3100 }
3119 3101
3120 3102
3121 } } // namespace v8::internal 3103 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.h ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698