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 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |