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/arm64/macro-assembler-arm64.h" | 7 #include "src/arm64/macro-assembler-arm64.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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 __ Bind(&done); \ | 330 __ Bind(&done); \ |
331 } while (0) | 331 } while (0) |
332 | 332 |
333 | 333 |
334 #define ASSEMBLE_SHIFT(asm_instr, width) \ | 334 #define ASSEMBLE_SHIFT(asm_instr, width) \ |
335 do { \ | 335 do { \ |
336 if (instr->InputAt(1)->IsRegister()) { \ | 336 if (instr->InputAt(1)->IsRegister()) { \ |
337 __ asm_instr(i.OutputRegister##width(), i.InputRegister##width(0), \ | 337 __ asm_instr(i.OutputRegister##width(), i.InputRegister##width(0), \ |
338 i.InputRegister##width(1)); \ | 338 i.InputRegister##width(1)); \ |
339 } else { \ | 339 } else { \ |
340 int64_t imm = i.InputOperand##width(1).immediate().value(); \ | 340 int imm = \ |
| 341 static_cast<int>(i.InputOperand##width(1).immediate().value()); \ |
341 __ asm_instr(i.OutputRegister##width(), i.InputRegister##width(0), imm); \ | 342 __ asm_instr(i.OutputRegister##width(), i.InputRegister##width(0), imm); \ |
342 } \ | 343 } \ |
343 } while (0) | 344 } while (0) |
344 | 345 |
345 | 346 |
346 void CodeGenerator::AssembleDeconstructActivationRecord() { | 347 void CodeGenerator::AssembleDeconstructActivationRecord() { |
347 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 348 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
348 int stack_slots = frame()->GetSpillSlotCount(); | 349 int stack_slots = frame()->GetSpillSlotCount(); |
349 if (descriptor->IsJSFunctionCall() || stack_slots > 0) { | 350 if (descriptor->IsJSFunctionCall() || stack_slots > 0) { |
350 __ Mov(jssp, fp); | 351 __ Mov(jssp, fp); |
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 } | 1323 } |
1323 } | 1324 } |
1324 MarkLazyDeoptSite(); | 1325 MarkLazyDeoptSite(); |
1325 } | 1326 } |
1326 | 1327 |
1327 #undef __ | 1328 #undef __ |
1328 | 1329 |
1329 } // namespace compiler | 1330 } // namespace compiler |
1330 } // namespace internal | 1331 } // namespace internal |
1331 } // namespace v8 | 1332 } // namespace v8 |
OLD | NEW |