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

Side by Side Diff: src/arm/codegen-arm.cc

Issue 11414262: Revert 13105: "Enable stub generation using Hydrogen/Lithium." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/codegen-arm.h ('k') | src/arm/deoptimizer-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 if (!FLAG_fast_math) return &exp; 66 if (!FLAG_fast_math) return &exp;
67 size_t actual_size; 67 size_t actual_size;
68 byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true)); 68 byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true));
69 if (buffer == NULL) return &exp; 69 if (buffer == NULL) return &exp;
70 ExternalReference::InitializeMathExpData(); 70 ExternalReference::InitializeMathExpData();
71 71
72 MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size)); 72 MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size));
73 73
74 { 74 {
75 CpuFeatures::Scope use_vfp(VFP2); 75 CpuFeatures::Scope use_vfp(VFP2);
76 DwVfpRegister input = d0; 76 DoubleRegister input = d0;
77 DwVfpRegister result = d1; 77 DoubleRegister result = d1;
78 DwVfpRegister double_scratch1 = d2; 78 DoubleRegister double_scratch1 = d2;
79 DwVfpRegister double_scratch2 = d3; 79 DoubleRegister double_scratch2 = d3;
80 Register temp1 = r4; 80 Register temp1 = r4;
81 Register temp2 = r5; 81 Register temp2 = r5;
82 Register temp3 = r6; 82 Register temp3 = r6;
83 83
84 if (masm.use_eabi_hardfloat()) { 84 if (masm.use_eabi_hardfloat()) {
85 // Input value is in d0 anyway, nothing to do. 85 // Input value is in d0 anyway, nothing to do.
86 } else { 86 } else {
87 __ vmov(input, r0, r1); 87 __ vmov(input, r0, r1);
88 } 88 }
89 __ Push(temp3, temp2, temp1); 89 __ Push(temp3, temp2, temp1);
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 __ bind(&done); 520 __ bind(&done);
521 } 521 }
522 522
523 523
524 static MemOperand ExpConstant(int index, Register base) { 524 static MemOperand ExpConstant(int index, Register base) {
525 return MemOperand(base, index * kDoubleSize); 525 return MemOperand(base, index * kDoubleSize);
526 } 526 }
527 527
528 528
529 void MathExpGenerator::EmitMathExp(MacroAssembler* masm, 529 void MathExpGenerator::EmitMathExp(MacroAssembler* masm,
530 DwVfpRegister input, 530 DoubleRegister input,
531 DwVfpRegister result, 531 DoubleRegister result,
532 DwVfpRegister double_scratch1, 532 DoubleRegister double_scratch1,
533 DwVfpRegister double_scratch2, 533 DoubleRegister double_scratch2,
534 Register temp1, 534 Register temp1,
535 Register temp2, 535 Register temp2,
536 Register temp3) { 536 Register temp3) {
537 ASSERT(!input.is(result)); 537 ASSERT(!input.is(result));
538 ASSERT(!input.is(double_scratch1)); 538 ASSERT(!input.is(double_scratch1));
539 ASSERT(!input.is(double_scratch2)); 539 ASSERT(!input.is(double_scratch2));
540 ASSERT(!result.is(double_scratch1)); 540 ASSERT(!result.is(double_scratch1));
541 ASSERT(!result.is(double_scratch2)); 541 ASSERT(!result.is(double_scratch2));
542 ASSERT(!double_scratch1.is(double_scratch2)); 542 ASSERT(!double_scratch1.is(double_scratch2));
543 ASSERT(!temp1.is(temp2)); 543 ASSERT(!temp1.is(temp2));
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 patcher.masm()->add(r0, pc, Operand(-8)); 653 patcher.masm()->add(r0, pc, Operand(-8));
654 patcher.masm()->ldr(pc, MemOperand(pc, -4)); 654 patcher.masm()->ldr(pc, MemOperand(pc, -4));
655 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); 655 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start()));
656 } 656 }
657 } 657 }
658 658
659 659
660 } } // namespace v8::internal 660 } } // namespace v8::internal
661 661
662 #endif // V8_TARGET_ARCH_ARM 662 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.h ('k') | src/arm/deoptimizer-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698