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/disassembler.cc

Issue 1221433021: Move SmartPointer to base. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove some unecessary header includes Created 5 years, 5 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/debug.h" 9 #include "src/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 175 }
176 } else if (rmode == RelocInfo::DEOPT_REASON) { 176 } else if (rmode == RelocInfo::DEOPT_REASON) {
177 Deoptimizer::DeoptReason reason = 177 Deoptimizer::DeoptReason reason =
178 static_cast<Deoptimizer::DeoptReason>(relocinfo.data()); 178 static_cast<Deoptimizer::DeoptReason>(relocinfo.data());
179 out.AddFormatted(" ;; debug: deopt reason '%s'", 179 out.AddFormatted(" ;; debug: deopt reason '%s'",
180 Deoptimizer::GetDeoptReason(reason)); 180 Deoptimizer::GetDeoptReason(reason));
181 } else if (rmode == RelocInfo::EMBEDDED_OBJECT) { 181 } else if (rmode == RelocInfo::EMBEDDED_OBJECT) {
182 HeapStringAllocator allocator; 182 HeapStringAllocator allocator;
183 StringStream accumulator(&allocator); 183 StringStream accumulator(&allocator);
184 relocinfo.target_object()->ShortPrint(&accumulator); 184 relocinfo.target_object()->ShortPrint(&accumulator);
185 SmartArrayPointer<const char> obj_name = accumulator.ToCString(); 185 base::SmartArrayPointer<const char> obj_name = accumulator.ToCString();
186 out.AddFormatted(" ;; object: %s", obj_name.get()); 186 out.AddFormatted(" ;; object: %s", obj_name.get());
187 } else if (rmode == RelocInfo::EXTERNAL_REFERENCE) { 187 } else if (rmode == RelocInfo::EXTERNAL_REFERENCE) {
188 const char* reference_name = ref_encoder.NameOfAddress( 188 const char* reference_name = ref_encoder.NameOfAddress(
189 isolate, relocinfo.target_external_reference()); 189 isolate, relocinfo.target_external_reference());
190 out.AddFormatted(" ;; external reference (%s)", reference_name); 190 out.AddFormatted(" ;; external reference (%s)", reference_name);
191 } else if (RelocInfo::IsCodeTarget(rmode)) { 191 } else if (RelocInfo::IsCodeTarget(rmode)) {
192 out.AddFormatted(" ;; code:"); 192 out.AddFormatted(" ;; code:");
193 if (rmode == RelocInfo::CONSTRUCT_CALL) { 193 if (rmode == RelocInfo::CONSTRUCT_CALL) {
194 out.AddFormatted(" constructor,"); 194 out.AddFormatted(" constructor,");
195 } 195 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin, 283 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin,
284 byte* end, Code* code) { 284 byte* end, Code* code) {
285 return 0; 285 return 0;
286 } 286 }
287 287
288 #endif // ENABLE_DISASSEMBLER 288 #endif // ENABLE_DISASSEMBLER
289 289
290 } // namespace internal 290 } // namespace internal
291 } // namespace v8 291 } // namespace v8
OLDNEW
« BUILD.gn ('K') | « src/deoptimizer.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698