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/ia32/lithium-codegen-ia32.cc

Issue 6759025: Version 3.2.6 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 9 years, 8 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/ia32/deoptimizer-ia32.cc ('k') | src/ia32/lithium-ia32.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Copy the string before recording it in the assembler to avoid 110 // Copy the string before recording it in the assembler to avoid
111 // issues when the stack allocated buffer goes out of scope. 111 // issues when the stack allocated buffer goes out of scope.
112 size_t length = builder.position(); 112 size_t length = builder.position();
113 Vector<char> copy = Vector<char>::New(length + 1); 113 Vector<char> copy = Vector<char>::New(length + 1);
114 memcpy(copy.start(), builder.Finalize(), copy.length()); 114 memcpy(copy.start(), builder.Finalize(), copy.length());
115 masm()->RecordComment(copy.start()); 115 masm()->RecordComment(copy.start());
116 } 116 }
117 117
118 118
119 bool LCodeGen::GenerateRelocPadding() {
120 int reloc_size = masm()->relocation_writer_size();
121 while (reloc_size < deoptimization_reloc_size.min_size) {
122 __ RecordComment(RelocInfo::kFillerCommentString, true);
123 reloc_size += RelocInfo::kMinRelocCommentSize;
124 }
125 return !is_aborted();
126 }
127
128
129 bool LCodeGen::GeneratePrologue() { 119 bool LCodeGen::GeneratePrologue() {
130 ASSERT(is_generating()); 120 ASSERT(is_generating());
131 121
132 #ifdef DEBUG 122 #ifdef DEBUG
133 if (strlen(FLAG_stop_at) > 0 && 123 if (strlen(FLAG_stop_at) > 0 &&
134 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { 124 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) {
135 __ int3(); 125 __ int3();
136 } 126 }
137 #endif 127 #endif
138 128
(...skipping 3974 matching lines...) Expand 10 before | Expand all | Expand 10 after
4113 ASSERT(osr_pc_offset_ == -1); 4103 ASSERT(osr_pc_offset_ == -1);
4114 osr_pc_offset_ = masm()->pc_offset(); 4104 osr_pc_offset_ = masm()->pc_offset();
4115 } 4105 }
4116 4106
4117 4107
4118 #undef __ 4108 #undef __
4119 4109
4120 } } // namespace v8::internal 4110 } } // namespace v8::internal
4121 4111
4122 #endif // V8_TARGET_ARCH_IA32 4112 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698