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

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.cc

Issue 1728423002: [crankshaft] Remove useless HCallJSFunction instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@remove-dynamic-frame-alignment
Patch Set: 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/crankshaft/arm64/lithium-arm64.cc ('k') | src/crankshaft/hydrogen.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/crankshaft/arm64/lithium-codegen-arm64.h" 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1920 __ Add(target, target, Code::kHeaderSize - kHeapObjectTag); 1920 __ Add(target, target, Code::kHeaderSize - kHeapObjectTag);
1921 __ Call(target); 1921 __ Call(target);
1922 } 1922 }
1923 generator.AfterCall(); 1923 generator.AfterCall();
1924 } 1924 }
1925 1925
1926 RecordPushedArgumentsDelta(instr->hydrogen()->argument_delta()); 1926 RecordPushedArgumentsDelta(instr->hydrogen()->argument_delta());
1927 } 1927 }
1928 1928
1929 1929
1930 void LCodeGen::DoCallJSFunction(LCallJSFunction* instr) {
1931 DCHECK(instr->IsMarkedAsCall());
1932 DCHECK(ToRegister(instr->function()).is(x1));
1933
1934 // Change context.
1935 __ Ldr(cp, FieldMemOperand(x1, JSFunction::kContextOffset));
1936
1937 // Always initialize new target and number of actual arguments.
1938 __ LoadRoot(x3, Heap::kUndefinedValueRootIndex);
1939 __ Mov(x0, instr->arity());
1940
1941 // Load the code entry address
1942 __ Ldr(x10, FieldMemOperand(x1, JSFunction::kCodeEntryOffset));
1943 __ Call(x10);
1944
1945 RecordSafepointWithLazyDeopt(instr, RECORD_SIMPLE_SAFEPOINT);
1946 RecordPushedArgumentsDelta(instr->hydrogen()->argument_delta());
1947 }
1948
1949
1950 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { 1930 void LCodeGen::DoCallRuntime(LCallRuntime* instr) {
1951 CallRuntime(instr->function(), instr->arity(), instr); 1931 CallRuntime(instr->function(), instr->arity(), instr);
1952 RecordPushedArgumentsDelta(instr->hydrogen()->argument_delta()); 1932 RecordPushedArgumentsDelta(instr->hydrogen()->argument_delta());
1953 } 1933 }
1954 1934
1955 1935
1956 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) { 1936 void LCodeGen::DoUnknownOSRValue(LUnknownOSRValue* instr) {
1957 GenerateOsrPrologue(); 1937 GenerateOsrPrologue();
1958 } 1938 }
1959 1939
(...skipping 3712 matching lines...) Expand 10 before | Expand all | Expand 10 after
5672 5652
5673 5653
5674 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { 5654 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5675 Register context = ToRegister(instr->context()); 5655 Register context = ToRegister(instr->context());
5676 __ Str(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); 5656 __ Str(context, MemOperand(fp, StandardFrameConstants::kContextOffset));
5677 } 5657 }
5678 5658
5679 5659
5680 } // namespace internal 5660 } // namespace internal
5681 } // namespace v8 5661 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-arm64.cc ('k') | src/crankshaft/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698