Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: src/ic/ic.cc

Issue 1609893003: [es6] Tail calls support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ic/ic.h ('k') | src/ic/ic-state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/ic/ic.h ('k') | src/ic/ic-state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698