OLD | NEW |
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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 Writer::Slot<ELFHeader> header = w->CreateSlotHere<ELFHeader>(); | 651 Writer::Slot<ELFHeader> header = w->CreateSlotHere<ELFHeader>(); |
652 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X87 | 652 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X87 |
653 const uint8_t ident[16] = | 653 const uint8_t ident[16] = |
654 { 0x7f, 'E', 'L', 'F', 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0}; | 654 { 0x7f, 'E', 'L', 'F', 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
655 #elif V8_TARGET_ARCH_X64 | 655 #elif V8_TARGET_ARCH_X64 |
656 const uint8_t ident[16] = | 656 const uint8_t ident[16] = |
657 { 0x7f, 'E', 'L', 'F', 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0}; | 657 { 0x7f, 'E', 'L', 'F', 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0}; |
658 #else | 658 #else |
659 #error Unsupported target architecture. | 659 #error Unsupported target architecture. |
660 #endif | 660 #endif |
661 MemCopy(header->ident, ident, 16); | 661 memcpy(header->ident, ident, 16); |
662 header->type = 1; | 662 header->type = 1; |
663 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87 | 663 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87 |
664 header->machine = 3; | 664 header->machine = 3; |
665 #elif V8_TARGET_ARCH_X64 | 665 #elif V8_TARGET_ARCH_X64 |
666 // Processor identification value for x64 is 62 as defined in | 666 // Processor identification value for x64 is 62 as defined in |
667 // System V ABI, AMD64 Supplement | 667 // System V ABI, AMD64 Supplement |
668 // http://www.x86-64.org/documentation/abi.pdf | 668 // http://www.x86-64.org/documentation/abi.pdf |
669 header->machine = 62; | 669 header->machine = 62; |
670 #elif V8_TARGET_ARCH_ARM | 670 #elif V8_TARGET_ARCH_ARM |
671 // Set to EM_ARM, defined as 40, in "ARM ELF File Format" at | 671 // Set to EM_ARM, defined as 40, in "ARM ELF File Format" at |
(...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |