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

Side by Side Diff: src/mips/codegen-mips.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 | « src/mark-compact.cc ('k') | src/mips/simulator-mips.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_mips_machine_code = NULL; 44 byte* fast_exp_mips_machine_code = NULL;
45 double fast_exp_simulator(double x) { 45 double fast_exp_simulator(double x) {
46 return Simulator::current(Isolate::Current())->CallFP( 46 return Simulator::current(Isolate::Current())->CallFP(
47 fast_exp_mips_machine_code, x, 0); 47 fast_exp_mips_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 DoubleRegister input = f12; 62 DoubleRegister input = f12;
63 DoubleRegister result = f0; 63 DoubleRegister result = f0;
64 DoubleRegister double_scratch1 = f4; 64 DoubleRegister double_scratch1 = f4;
65 DoubleRegister double_scratch2 = f6; 65 DoubleRegister double_scratch2 = f6;
66 Register temp1 = t0; 66 Register temp1 = t0;
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 patcher.masm()->nop(); // Pad the empty space. 1109 patcher.masm()->nop(); // Pad the empty space.
1110 } 1110 }
1111 } 1111 }
1112 1112
1113 1113
1114 #undef __ 1114 #undef __
1115 1115
1116 } } // namespace v8::internal 1116 } } // namespace v8::internal
1117 1117
1118 #endif // V8_TARGET_ARCH_MIPS 1118 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/mips/simulator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698