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

Side by Side Diff: src/x64/assembler-x64.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/x64/assembler-x64.h ('k') | src/x64/full-codegen-x64.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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "macro-assembler.h" 9 #include "macro-assembler.h"
10 #include "serialize.h" 10 #include "serialize.h"
(...skipping 2912 matching lines...) Expand 10 before | Expand all | Expand 10 after
2923 emitl(data); 2923 emitl(data);
2924 } 2924 }
2925 2925
2926 2926
2927 // Relocation information implementations. 2927 // Relocation information implementations.
2928 2928
2929 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { 2929 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) {
2930 ASSERT(!RelocInfo::IsNone(rmode)); 2930 ASSERT(!RelocInfo::IsNone(rmode));
2931 if (rmode == RelocInfo::EXTERNAL_REFERENCE) { 2931 if (rmode == RelocInfo::EXTERNAL_REFERENCE) {
2932 // Don't record external references unless the heap will be serialized. 2932 // Don't record external references unless the heap will be serialized.
2933 if (!Serializer::enabled() && !emit_debug_code()) { 2933 if (!Serializer::enabled(isolate()) && !emit_debug_code()) {
2934 return; 2934 return;
2935 } 2935 }
2936 } else if (rmode == RelocInfo::CODE_AGE_SEQUENCE) { 2936 } else if (rmode == RelocInfo::CODE_AGE_SEQUENCE) {
2937 // Don't record psuedo relocation info for code age sequence mode. 2937 // Don't record psuedo relocation info for code age sequence mode.
2938 return; 2938 return;
2939 } 2939 }
2940 RelocInfo rinfo(pc_, rmode, data, NULL); 2940 RelocInfo rinfo(pc_, rmode, data, NULL);
2941 reloc_info_writer.Write(&rinfo); 2941 reloc_info_writer.Write(&rinfo);
2942 } 2942 }
2943 2943
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
2993 2993
2994 2994
2995 bool RelocInfo::IsInConstantPool() { 2995 bool RelocInfo::IsInConstantPool() {
2996 return false; 2996 return false;
2997 } 2997 }
2998 2998
2999 2999
3000 } } // namespace v8::internal 3000 } } // namespace v8::internal
3001 3001
3002 #endif // V8_TARGET_ARCH_X64 3002 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698