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

Side by Side Diff: src/compiler/arm/code-generator-arm.cc

Issue 1150673002: Add a TurboFan skeleton for StringAddStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed frame construction logic Created 5 years, 7 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/code-stubs.cc ('k') | src/compiler/arm64/code-generator-arm64.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 register_save_area_size += kPointerSize; 945 register_save_area_size += kPointerSize;
946 } 946 }
947 frame()->SetRegisterSaveAreaSize(register_save_area_size); 947 frame()->SetRegisterSaveAreaSize(register_save_area_size);
948 __ stm(db_w, sp, saves); 948 __ stm(db_w, sp, saves);
949 } 949 }
950 } else if (descriptor->IsJSFunctionCall()) { 950 } else if (descriptor->IsJSFunctionCall()) {
951 CompilationInfo* info = this->info(); 951 CompilationInfo* info = this->info();
952 __ Prologue(info->IsCodePreAgingActive()); 952 __ Prologue(info->IsCodePreAgingActive());
953 frame()->SetRegisterSaveAreaSize( 953 frame()->SetRegisterSaveAreaSize(
954 StandardFrameConstants::kFixedFrameSizeFromFp); 954 StandardFrameConstants::kFixedFrameSizeFromFp);
955 } else if (stack_slots > 0) { 955 } else if (needs_frame_) {
956 __ StubPrologue(); 956 __ StubPrologue();
957 frame()->SetRegisterSaveAreaSize( 957 frame()->SetRegisterSaveAreaSize(
958 StandardFrameConstants::kFixedFrameSizeFromFp); 958 StandardFrameConstants::kFixedFrameSizeFromFp);
959 } 959 }
960 960
961 if (info()->is_osr()) { 961 if (info()->is_osr()) {
962 // TurboFan OSR-compiled functions cannot be entered directly. 962 // TurboFan OSR-compiled functions cannot be entered directly.
963 __ Abort(kShouldNotDirectlyEnterOsrFunction); 963 __ Abort(kShouldNotDirectlyEnterOsrFunction);
964 964
965 // Unoptimized code jumps directly to this entrypoint while the unoptimized 965 // Unoptimized code jumps directly to this entrypoint while the unoptimized
(...skipping 24 matching lines...) Expand all
990 __ add(sp, sp, Operand(stack_slots * kPointerSize)); 990 __ add(sp, sp, Operand(stack_slots * kPointerSize));
991 } 991 }
992 // Restore registers. 992 // Restore registers.
993 const RegList saves = descriptor->CalleeSavedRegisters(); 993 const RegList saves = descriptor->CalleeSavedRegisters();
994 if (saves != 0) { 994 if (saves != 0) {
995 __ ldm(ia_w, sp, saves); 995 __ ldm(ia_w, sp, saves);
996 } 996 }
997 } 997 }
998 __ LeaveFrame(StackFrame::MANUAL); 998 __ LeaveFrame(StackFrame::MANUAL);
999 __ Ret(); 999 __ Ret();
1000 } else if (descriptor->IsJSFunctionCall() || stack_slots > 0) { 1000 } else if (descriptor->IsJSFunctionCall() || needs_frame_) {
1001 __ LeaveFrame(StackFrame::MANUAL); 1001 __ LeaveFrame(StackFrame::MANUAL);
1002 int pop_count = descriptor->IsJSFunctionCall() 1002 int pop_count = descriptor->IsJSFunctionCall()
1003 ? static_cast<int>(descriptor->JSParameterCount()) 1003 ? static_cast<int>(descriptor->JSParameterCount())
1004 : 0; 1004 : 0;
1005 __ Drop(pop_count); 1005 __ Drop(pop_count);
1006 __ Ret(); 1006 __ Ret();
1007 } else { 1007 } else {
1008 __ Ret(); 1008 __ Ret();
1009 } 1009 }
1010 } 1010 }
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 } 1214 }
1215 } 1215 }
1216 MarkLazyDeoptSite(); 1216 MarkLazyDeoptSite();
1217 } 1217 }
1218 1218
1219 #undef __ 1219 #undef __
1220 1220
1221 } // namespace compiler 1221 } // namespace compiler
1222 } // namespace internal 1222 } // namespace internal
1223 } // namespace v8 1223 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/arm64/code-generator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698