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

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

Issue 121303005: Use std:: on symbols declared in C++-style C headers. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Same as the previous CL, but with an addition to cctest/test-log.cc Created 6 years, 11 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
« no previous file with comments | « no previous file | src/arm/simulator-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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #if defined(USE_SIMULATOR) 43 #if defined(USE_SIMULATOR)
44 byte* fast_exp_arm_machine_code = NULL; 44 byte* fast_exp_arm_machine_code = NULL;
45 double fast_exp_simulator(double x) { 45 double fast_exp_simulator(double x) {
46 return Simulator::current(Isolate::Current())->CallFPReturnsDouble( 46 return Simulator::current(Isolate::Current())->CallFPReturnsDouble(
47 fast_exp_arm_machine_code, x, 0); 47 fast_exp_arm_machine_code, x, 0);
48 } 48 }
49 #endif 49 #endif
50 50
51 51
52 UnaryMathFunction CreateExpFunction() { 52 UnaryMathFunction CreateExpFunction() {
53 if (!FLAG_fast_math) return &exp; 53 if (!FLAG_fast_math) return &std::exp;
54 size_t actual_size; 54 size_t actual_size;
55 byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true)); 55 byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true));
56 if (buffer == NULL) return &exp; 56 if (buffer == NULL) return &std::exp;
57 ExternalReference::InitializeMathExpData(); 57 ExternalReference::InitializeMathExpData();
58 58
59 MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size)); 59 MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size));
60 60
61 { 61 {
62 DwVfpRegister input = d0; 62 DwVfpRegister input = d0;
63 DwVfpRegister result = d1; 63 DwVfpRegister result = d1;
64 DwVfpRegister double_scratch1 = d2; 64 DwVfpRegister double_scratch1 = d2;
65 DwVfpRegister double_scratch2 = d3; 65 DwVfpRegister double_scratch2 = d3;
66 Register temp1 = r4; 66 Register temp1 = r4;
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 patcher.masm()->add(r0, pc, Operand(-8)); 908 patcher.masm()->add(r0, pc, Operand(-8));
909 patcher.masm()->ldr(pc, MemOperand(pc, -4)); 909 patcher.masm()->ldr(pc, MemOperand(pc, -4));
910 patcher.masm()->emit_code_stub_address(stub); 910 patcher.masm()->emit_code_stub_address(stub);
911 } 911 }
912 } 912 }
913 913
914 914
915 } } // namespace v8::internal 915 } } // namespace v8::internal
916 916
917 #endif // V8_TARGET_ARCH_ARM 917 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698