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_ool_constant_pool) { | 929 if (FLAG_enable_embedded_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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1178 __ ldr(temp_0, src1); | 1178 __ ldr(temp_0, src1); |
1179 __ str(temp_0, dst1); | 1179 __ str(temp_0, dst1); |
1180 __ vstr(temp_1, src0); | 1180 __ vstr(temp_1, src0); |
1181 } else { | 1181 } else { |
1182 // No other combinations are possible. | 1182 // No other combinations are possible. |
1183 UNREACHABLE(); | 1183 UNREACHABLE(); |
1184 } | 1184 } |
1185 } | 1185 } |
1186 | 1186 |
1187 | 1187 |
| 1188 #if V8_EMBEDDED_CONSTANT_POOL |
| 1189 |
| 1190 void CodeGenerator::AssembleConstantPool() { |
| 1191 DCHECK(FLAG_enable_embedded_constant_pool); |
| 1192 __ EmitConstantPool(); |
| 1193 } |
| 1194 |
| 1195 #endif // V8_EMBEDDED_CONSTANT_POOL |
| 1196 |
1188 void CodeGenerator::AssembleJumpTable(Label** targets, size_t target_count) { | 1197 void CodeGenerator::AssembleJumpTable(Label** targets, size_t target_count) { |
1189 // On 32-bit ARM we emit the jump tables inline. | 1198 // On 32-bit ARM we emit the jump tables inline. |
1190 UNREACHABLE(); | 1199 UNREACHABLE(); |
1191 } | 1200 } |
1192 | 1201 |
1193 | 1202 |
1194 void CodeGenerator::AddNopForSmiCodeInlining() { | 1203 void CodeGenerator::AddNopForSmiCodeInlining() { |
1195 // On 32-bit ARM we do not insert nops for inlined Smi code. | 1204 // On 32-bit ARM we do not insert nops for inlined Smi code. |
1196 } | 1205 } |
1197 | 1206 |
(...skipping 16 matching lines...) Expand all Loading... |
1214 } | 1223 } |
1215 } | 1224 } |
1216 MarkLazyDeoptSite(); | 1225 MarkLazyDeoptSite(); |
1217 } | 1226 } |
1218 | 1227 |
1219 #undef __ | 1228 #undef __ |
1220 | 1229 |
1221 } // namespace compiler | 1230 } // namespace compiler |
1222 } // namespace internal | 1231 } // namespace internal |
1223 } // namespace v8 | 1232 } // namespace v8 |
OLD | NEW |