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 2458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2469 Code::ExtraICState extra_ic_state = ic.target()->extra_ic_state(); | 2469 Code::ExtraICState extra_ic_state = ic.target()->extra_ic_state(); |
2470 return ic.Store(state, | 2470 return ic.Store(state, |
2471 Code::GetStrictMode(extra_ic_state), | 2471 Code::GetStrictMode(extra_ic_state), |
2472 args.at<Object>(0), | 2472 args.at<Object>(0), |
2473 args.at<Object>(1), | 2473 args.at<Object>(1), |
2474 args.at<Object>(2), | 2474 args.at<Object>(2), |
2475 MISS_FORCE_GENERIC); | 2475 MISS_FORCE_GENERIC); |
2476 } | 2476 } |
2477 | 2477 |
2478 | 2478 |
| 2479 RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss) { |
| 2480 SealHandleScope scope(isolate); |
| 2481 ASSERT(args.length() == 4); |
| 2482 KeyedStoreIC ic(IC::NO_EXTRA_FRAME, isolate); |
| 2483 Code::ExtraICState extra_ic_state = ic.target()->extra_ic_state(); |
| 2484 Handle<Object> value = args.at<Object>(0); |
| 2485 Handle<Object> key = args.at<Object>(2); |
| 2486 Handle<Object> object = args.at<Object>(3); |
| 2487 StrictModeFlag strict_mode = Code::GetStrictMode(extra_ic_state); |
| 2488 return Runtime::SetObjectProperty(isolate, |
| 2489 object, |
| 2490 key, |
| 2491 value, |
| 2492 NONE, |
| 2493 strict_mode); |
| 2494 } |
| 2495 |
| 2496 |
2479 void BinaryOpIC::patch(Code* code) { | 2497 void BinaryOpIC::patch(Code* code) { |
2480 set_target(code); | 2498 set_target(code); |
2481 } | 2499 } |
2482 | 2500 |
2483 | 2501 |
2484 const char* BinaryOpIC::GetName(TypeInfo type_info) { | 2502 const char* BinaryOpIC::GetName(TypeInfo type_info) { |
2485 switch (type_info) { | 2503 switch (type_info) { |
2486 case UNINITIALIZED: return "Uninitialized"; | 2504 case UNINITIALIZED: return "Uninitialized"; |
2487 case SMI: return "Smi"; | 2505 case SMI: return "Smi"; |
2488 case INT32: return "Int32"; | 2506 case INT32: return "Int32"; |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3092 #undef ADDR | 3110 #undef ADDR |
3093 }; | 3111 }; |
3094 | 3112 |
3095 | 3113 |
3096 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 3114 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
3097 return IC_utilities[id]; | 3115 return IC_utilities[id]; |
3098 } | 3116 } |
3099 | 3117 |
3100 | 3118 |
3101 } } // namespace v8::internal | 3119 } } // namespace v8::internal |
OLD | NEW |