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

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

Issue 23496062: ARM: Fix simulator when using hard floating point ABI. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/simulator-arm.h » ('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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 return NULL; 48 return NULL;
49 } 49 }
50 50
51 51
52 #define __ masm. 52 #define __ masm.
53 53
54 54
55 #if defined(USE_SIMULATOR) 55 #if defined(USE_SIMULATOR)
56 byte* fast_exp_arm_machine_code = NULL; 56 byte* fast_exp_arm_machine_code = NULL;
57 double fast_exp_simulator(double x) { 57 double fast_exp_simulator(double x) {
58 return Simulator::current(Isolate::Current())->CallFP( 58 return Simulator::current(Isolate::Current())->CallFPReturnsDouble(
59 fast_exp_arm_machine_code, x, 0); 59 fast_exp_arm_machine_code, x, 0);
60 } 60 }
61 #endif 61 #endif
62 62
63 63
64 UnaryMathFunction CreateExpFunction() { 64 UnaryMathFunction CreateExpFunction() {
65 if (!FLAG_fast_math) return &exp; 65 if (!FLAG_fast_math) return &exp;
66 size_t actual_size; 66 size_t actual_size;
67 byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true)); 67 byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true));
68 if (buffer == NULL) return &exp; 68 if (buffer == NULL) return &exp;
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 patcher.masm()->add(r0, pc, Operand(-8)); 885 patcher.masm()->add(r0, pc, Operand(-8));
886 patcher.masm()->ldr(pc, MemOperand(pc, -4)); 886 patcher.masm()->ldr(pc, MemOperand(pc, -4));
887 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); 887 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start()));
888 } 888 }
889 } 889 }
890 890
891 891
892 } } // namespace v8::internal 892 } } // namespace v8::internal
893 893
894 #endif // V8_TARGET_ARCH_ARM 894 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/simulator-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698