OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
555 Code* code = PropertyICCompiler::FindPreMonomorphic(isolate, Code::STORE_IC, | 555 Code* code = PropertyICCompiler::FindPreMonomorphic(isolate, Code::STORE_IC, |
556 target->extra_ic_state()); | 556 target->extra_ic_state()); |
557 SetTargetAtAddress(address, code, constant_pool); | 557 SetTargetAtAddress(address, code, constant_pool); |
558 } | 558 } |
559 | 559 |
560 | 560 |
561 void KeyedStoreIC::Clear(Isolate* isolate, Address address, Code* target, | 561 void KeyedStoreIC::Clear(Isolate* isolate, Address address, Code* target, |
562 ConstantPoolArray* constant_pool) { | 562 ConstantPoolArray* constant_pool) { |
563 if (IsCleared(target)) return; | 563 if (IsCleared(target)) return; |
564 SetTargetAtAddress( | 564 SetTargetAtAddress( |
565 address, *pre_monomorphic_stub( | 565 address, *pre_monomorphic_stub(isolate, StoreICState::GetLanguageMode( |
566 isolate, StoreIC::GetLanguageMode(target->extra_ic_state())), | 566 target->extra_ic_state())), |
Jakob Kummerow
2015/05/22 08:52:51
nit: this indentation looks funny. Maybe pull out
mvstanton
2015/05/22 09:12:56
Yeah, totally agree, will do.
| |
567 constant_pool); | 567 constant_pool); |
568 } | 568 } |
569 | 569 |
570 | 570 |
571 void CompareIC::Clear(Isolate* isolate, Address address, Code* target, | 571 void CompareIC::Clear(Isolate* isolate, Address address, Code* target, |
572 ConstantPoolArray* constant_pool) { | 572 ConstantPoolArray* constant_pool) { |
573 DCHECK(CodeStub::GetMajorKey(target) == CodeStub::CompareIC); | 573 DCHECK(CodeStub::GetMajorKey(target) == CodeStub::CompareIC); |
574 CompareICStub stub(target->stub_key(), isolate); | 574 CompareICStub stub(target->stub_key(), isolate); |
575 // Only clear CompareICs that can retain objects. | 575 // Only clear CompareICs that can retain objects. |
576 if (stub.state() != CompareICState::KNOWN_OBJECT) return; | 576 if (stub.state() != CompareICState::KNOWN_OBJECT) return; |
(...skipping 2335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2912 static const Address IC_utilities[] = { | 2912 static const Address IC_utilities[] = { |
2913 #define ADDR(name) FUNCTION_ADDR(name), | 2913 #define ADDR(name) FUNCTION_ADDR(name), |
2914 IC_UTIL_LIST(ADDR) NULL | 2914 IC_UTIL_LIST(ADDR) NULL |
2915 #undef ADDR | 2915 #undef ADDR |
2916 }; | 2916 }; |
2917 | 2917 |
2918 | 2918 |
2919 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } | 2919 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } |
2920 } | 2920 } |
2921 } // namespace v8::internal | 2921 } // namespace v8::internal |
OLD | NEW |