| 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/ic/ic.h" | 5 #include "src/ic/ic.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 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1554 } | 1554 } |
| 1555 | 1555 |
| 1556 LookupIterator it(object, name); | 1556 LookupIterator it(object, name); |
| 1557 if (FLAG_use_ic) UpdateCaches(&it, value, store_mode); | 1557 if (FLAG_use_ic) UpdateCaches(&it, value, store_mode); |
| 1558 | 1558 |
| 1559 MAYBE_RETURN_NULL( | 1559 MAYBE_RETURN_NULL( |
| 1560 Object::SetProperty(&it, value, language_mode(), store_mode)); | 1560 Object::SetProperty(&it, value, language_mode(), store_mode)); |
| 1561 return value; | 1561 return value; |
| 1562 } | 1562 } |
| 1563 | 1563 |
| 1564 | |
| 1565 Handle<Code> CallIC::initialize_stub(Isolate* isolate, int argc, | 1564 Handle<Code> CallIC::initialize_stub(Isolate* isolate, int argc, |
| 1566 ConvertReceiverMode mode) { | 1565 ConvertReceiverMode mode, |
| 1567 CallICTrampolineStub stub(isolate, CallICState(argc, mode)); | 1566 TailCallMode tail_call_mode) { |
| 1567 CallICTrampolineStub stub(isolate, CallICState(argc, mode, tail_call_mode)); |
| 1568 Handle<Code> code = stub.GetCode(); | 1568 Handle<Code> code = stub.GetCode(); |
| 1569 return code; | 1569 return code; |
| 1570 } | 1570 } |
| 1571 | 1571 |
| 1572 | |
| 1573 Handle<Code> CallIC::initialize_stub_in_optimized_code( | 1572 Handle<Code> CallIC::initialize_stub_in_optimized_code( |
| 1574 Isolate* isolate, int argc, ConvertReceiverMode mode) { | 1573 Isolate* isolate, int argc, ConvertReceiverMode mode, |
| 1575 CallICStub stub(isolate, CallICState(argc, mode)); | 1574 TailCallMode tail_call_mode) { |
| 1575 CallICStub stub(isolate, CallICState(argc, mode, tail_call_mode)); |
| 1576 Handle<Code> code = stub.GetCode(); | 1576 Handle<Code> code = stub.GetCode(); |
| 1577 return code; | 1577 return code; |
| 1578 } | 1578 } |
| 1579 | 1579 |
| 1580 | 1580 |
| 1581 static Handle<Code> StoreICInitializeStubHelper( | 1581 static Handle<Code> StoreICInitializeStubHelper( |
| 1582 Isolate* isolate, ExtraICState extra_state, | 1582 Isolate* isolate, ExtraICState extra_state, |
| 1583 InlineCacheState initialization_state) { | 1583 InlineCacheState initialization_state) { |
| 1584 Handle<Code> ic = PropertyICCompiler::ComputeStore( | 1584 Handle<Code> ic = PropertyICCompiler::ComputeStore( |
| 1585 isolate, initialization_state, extra_state); | 1585 isolate, initialization_state, extra_state); |
| (...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2974 KeyedLoadICNexus nexus(vector, vector_slot); | 2974 KeyedLoadICNexus nexus(vector, vector_slot); |
| 2975 KeyedLoadIC ic(IC::EXTRA_CALL_FRAME, isolate, &nexus); | 2975 KeyedLoadIC ic(IC::EXTRA_CALL_FRAME, isolate, &nexus); |
| 2976 ic.UpdateState(receiver, key); | 2976 ic.UpdateState(receiver, key); |
| 2977 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, ic.Load(receiver, key)); | 2977 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, ic.Load(receiver, key)); |
| 2978 } | 2978 } |
| 2979 | 2979 |
| 2980 return *result; | 2980 return *result; |
| 2981 } | 2981 } |
| 2982 } // namespace internal | 2982 } // namespace internal |
| 2983 } // namespace v8 | 2983 } // namespace v8 |
| OLD | NEW |