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

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

Issue 260003006: Added a Isolate* parameter to Serializer::enabled(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Feedback. 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
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/mips/full-codegen-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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "codegen.h" 9 #include "codegen.h"
10 #include "macro-assembler.h" 10 #include "macro-assembler.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 return FUNCTION_CAST<UnaryMathFunction>(buffer); 65 return FUNCTION_CAST<UnaryMathFunction>(buffer);
66 #else 66 #else
67 fast_exp_mips_machine_code = buffer; 67 fast_exp_mips_machine_code = buffer;
68 return &fast_exp_simulator; 68 return &fast_exp_simulator;
69 #endif 69 #endif
70 } 70 }
71 71
72 72
73 #if defined(V8_HOST_ARCH_MIPS) 73 #if defined(V8_HOST_ARCH_MIPS)
74 OS::MemCopyUint8Function CreateMemCopyUint8Function( 74 OS::MemCopyUint8Function CreateMemCopyUint8Function(
75 OS::MemCopyUint8Function stub) { 75 bool serializer_enabled,
76 OS::MemCopyUint8Function stub) {
76 #if defined(USE_SIMULATOR) 77 #if defined(USE_SIMULATOR)
77 return stub; 78 return stub;
78 #else 79 #else
79 if (Serializer::enabled()) { 80 if (serializer_enabled) return stub;
80 return stub;
81 }
82 81
83 size_t actual_size; 82 size_t actual_size;
84 byte* buffer = static_cast<byte*>(OS::Allocate(3 * KB, &actual_size, true)); 83 byte* buffer = static_cast<byte*>(OS::Allocate(3 * KB, &actual_size, true));
85 if (buffer == NULL) return stub; 84 if (buffer == NULL) return stub;
86 85
87 // This code assumes that cache lines are 32 bytes and if the cache line is 86 // This code assumes that cache lines are 32 bytes and if the cache line is
88 // larger it will not work correctly. 87 // larger it will not work correctly.
89 MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size)); 88 MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size));
90 89
91 { 90 {
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 patcher.masm()->nop(); // Pad the empty space. 1198 patcher.masm()->nop(); // Pad the empty space.
1200 } 1199 }
1201 } 1200 }
1202 1201
1203 1202
1204 #undef __ 1203 #undef __
1205 1204
1206 } } // namespace v8::internal 1205 } } // namespace v8::internal
1207 1206
1208 #endif // V8_TARGET_ARCH_MIPS 1207 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698