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

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

Issue 259173003: Kiss goodbye to MaybeObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase + addressed comments 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/factory.cc ('k') | src/handles-inl.h » ('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 "v8.h" 6 #include "v8.h"
7 #include "gdb-jit.h" 7 #include "gdb-jit.h"
8 8
9 #include "bootstrapper.h" 9 #include "bootstrapper.h"
10 #include "compiler.h" 10 #include "compiler.h"
(...skipping 1800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1811 void __attribute__((noinline)) __jit_debug_register_code() { 1811 void __attribute__((noinline)) __jit_debug_register_code() {
1812 __asm__(""); 1812 __asm__("");
1813 } 1813 }
1814 1814
1815 // GDB will inspect contents of this descriptor. 1815 // GDB will inspect contents of this descriptor.
1816 // Static initialization is necessary to prevent GDB from seeing 1816 // Static initialization is necessary to prevent GDB from seeing
1817 // uninitialized descriptor. 1817 // uninitialized descriptor.
1818 JITDescriptor __jit_debug_descriptor = { 1, 0, 0, 0 }; 1818 JITDescriptor __jit_debug_descriptor = { 1, 0, 0, 0 };
1819 1819
1820 #ifdef OBJECT_PRINT 1820 #ifdef OBJECT_PRINT
1821 void __gdb_print_v8_object(MaybeObject* object) { 1821 void __gdb_print_v8_object(Object* object) {
1822 object->Print(); 1822 object->Print();
1823 PrintF(stdout, "\n"); 1823 PrintF(stdout, "\n");
1824 } 1824 }
1825 #endif 1825 #endif
1826 } 1826 }
1827 1827
1828 1828
1829 static JITCodeEntry* CreateCodeEntry(Address symfile_addr, 1829 static JITCodeEntry* CreateCodeEntry(Address symfile_addr,
1830 uintptr_t symfile_size) { 1830 uintptr_t symfile_size) {
1831 JITCodeEntry* entry = static_cast<JITCodeEntry*>( 1831 JITCodeEntry* entry = static_cast<JITCodeEntry*>(
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
2167 LockGuard<Mutex> lock_guard(mutex.Pointer()); 2167 LockGuard<Mutex> lock_guard(mutex.Pointer());
2168 ASSERT(!IsLineInfoTagged(line_info)); 2168 ASSERT(!IsLineInfoTagged(line_info));
2169 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); 2169 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true);
2170 ASSERT(e->value == NULL); 2170 ASSERT(e->value == NULL);
2171 e->value = TagLineInfo(line_info); 2171 e->value = TagLineInfo(line_info);
2172 } 2172 }
2173 2173
2174 2174
2175 } } // namespace v8::internal 2175 } } // namespace v8::internal
2176 #endif 2176 #endif
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/handles-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698