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