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

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

Issue 260003006: Added a Isolate* parameter to Serializer::enabled(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 #if !defined(USE_SIMULATOR) 95 #if !defined(USE_SIMULATOR)
96 return FUNCTION_CAST<UnaryMathFunction>(buffer); 96 return FUNCTION_CAST<UnaryMathFunction>(buffer);
97 #else 97 #else
98 fast_exp_arm_machine_code = buffer; 98 fast_exp_arm_machine_code = buffer;
99 return &fast_exp_simulator; 99 return &fast_exp_simulator;
100 #endif 100 #endif
101 } 101 }
102 102
103 #if defined(V8_HOST_ARCH_ARM) 103 #if defined(V8_HOST_ARCH_ARM)
104 OS::MemCopyUint8Function CreateMemCopyUint8Function( 104 OS::MemCopyUint8Function CreateMemCopyUint8Function(
105 OS::MemCopyUint8Function stub) { 105 bool serializer_enabled,
106 OS::MemCopyUint8Function stub) {
106 #if defined(USE_SIMULATOR) 107 #if defined(USE_SIMULATOR)
107 return stub; 108 return stub;
108 #else 109 #else
109 if (Serializer::enabled() || !CpuFeatures::IsSupported(UNALIGNED_ACCESSES)) { 110 if (serializer_enabled || !CpuFeatures::IsSupported(UNALIGNED_ACCESSES)) {
110 return stub; 111 return stub;
111 } 112 }
112 size_t actual_size; 113 size_t actual_size;
113 byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true)); 114 byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true));
114 if (buffer == NULL) return stub; 115 if (buffer == NULL) return stub;
115 116
116 MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size)); 117 MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size));
117 118
118 Register dest = r0; 119 Register dest = r0;
119 Register src = r1; 120 Register src = r1;
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 patcher.masm()->add(r0, pc, Operand(-8)); 912 patcher.masm()->add(r0, pc, Operand(-8));
912 patcher.masm()->ldr(pc, MemOperand(pc, -4)); 913 patcher.masm()->ldr(pc, MemOperand(pc, -4));
913 patcher.masm()->emit_code_stub_address(stub); 914 patcher.masm()->emit_code_stub_address(stub);
914 } 915 }
915 } 916 }
916 917
917 918
918 } } // namespace v8::internal 919 } } // namespace v8::internal
919 920
920 #endif // V8_TARGET_ARCH_ARM 921 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/deoptimizer-arm.cc » ('j') | src/objects-visiting-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698