OLD | NEW |
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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 isolate(), deoptimization_id, bailout_type); | 919 isolate(), deoptimization_id, bailout_type); |
920 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 920 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
921 } | 921 } |
922 | 922 |
923 | 923 |
924 void CodeGenerator::AssemblePrologue() { | 924 void CodeGenerator::AssemblePrologue() { |
925 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 925 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
926 int stack_slots = frame()->GetSpillSlotCount(); | 926 int stack_slots = frame()->GetSpillSlotCount(); |
927 if (descriptor->kind() == CallDescriptor::kCallAddress) { | 927 if (descriptor->kind() == CallDescriptor::kCallAddress) { |
928 bool saved_pp; | 928 bool saved_pp; |
929 if (FLAG_enable_embedded_constant_pool) { | 929 if (FLAG_enable_ool_constant_pool) { |
930 __ Push(lr, fp, pp); | 930 __ Push(lr, fp, pp); |
931 // Adjust FP to point to saved FP. | 931 // Adjust FP to point to saved FP. |
932 __ sub(fp, sp, Operand(StandardFrameConstants::kConstantPoolOffset)); | 932 __ sub(fp, sp, Operand(StandardFrameConstants::kConstantPoolOffset)); |
933 saved_pp = true; | 933 saved_pp = true; |
934 } else { | 934 } else { |
935 __ Push(lr, fp); | 935 __ Push(lr, fp); |
936 __ mov(fp, sp); | 936 __ mov(fp, sp); |
937 saved_pp = false; | 937 saved_pp = false; |
938 } | 938 } |
939 const RegList saves = descriptor->CalleeSavedRegisters(); | 939 const RegList saves = descriptor->CalleeSavedRegisters(); |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |