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