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

Side by Side Diff: src/gdb-jit.cc

Issue 363323003: More OStreamsUse OStreams more often. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased and polished. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/frames.cc ('k') | src/heap.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 #ifdef ENABLE_GDB_JIT_INTERFACE 5 #ifdef ENABLE_GDB_JIT_INTERFACE
6 #include "src/v8.h" 6 #include "src/v8.h"
7 7
8 #include "src/base/platform/platform.h" 8 #include "src/base/platform/platform.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 1803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1814 __asm__(""); 1814 __asm__("");
1815 } 1815 }
1816 1816
1817 // GDB will inspect contents of this descriptor. 1817 // GDB will inspect contents of this descriptor.
1818 // Static initialization is necessary to prevent GDB from seeing 1818 // Static initialization is necessary to prevent GDB from seeing
1819 // uninitialized descriptor. 1819 // uninitialized descriptor.
1820 JITDescriptor __jit_debug_descriptor = { 1, 0, 0, 0 }; 1820 JITDescriptor __jit_debug_descriptor = { 1, 0, 0, 0 };
1821 1821
1822 #ifdef OBJECT_PRINT 1822 #ifdef OBJECT_PRINT
1823 void __gdb_print_v8_object(Object* object) { 1823 void __gdb_print_v8_object(Object* object) {
1824 object->Print(); 1824 OFStream os(stdout);
1825 PrintF(stdout, "\n"); 1825 object->Print(os);
1826 os << flush;
1826 } 1827 }
1827 #endif 1828 #endif
1828 } 1829 }
1829 1830
1830 1831
1831 static JITCodeEntry* CreateCodeEntry(Address symfile_addr, 1832 static JITCodeEntry* CreateCodeEntry(Address symfile_addr,
1832 uintptr_t symfile_size) { 1833 uintptr_t symfile_size) {
1833 JITCodeEntry* entry = static_cast<JITCodeEntry*>( 1834 JITCodeEntry* entry = static_cast<JITCodeEntry*>(
1834 malloc(sizeof(JITCodeEntry) + symfile_size)); 1835 malloc(sizeof(JITCodeEntry) + symfile_size));
1835 1836
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
2169 base::LockGuard<base::Mutex> lock_guard(mutex.Pointer()); 2170 base::LockGuard<base::Mutex> lock_guard(mutex.Pointer());
2170 ASSERT(!IsLineInfoTagged(line_info)); 2171 ASSERT(!IsLineInfoTagged(line_info));
2171 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); 2172 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true);
2172 ASSERT(e->value == NULL); 2173 ASSERT(e->value == NULL);
2173 e->value = TagLineInfo(line_info); 2174 e->value = TagLineInfo(line_info);
2174 } 2175 }
2175 2176
2176 2177
2177 } } // namespace v8::internal 2178 } } // namespace v8::internal
2178 #endif 2179 #endif
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698