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

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

Issue 306453005: Replace some calls to MemCopy with small constant sizes with memcpy (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/conversions-inl.h ('k') | src/mips/assembler-mips.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 "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
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
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/conversions-inl.h ('k') | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698