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

Side by Side Diff: src/x64/assembler-x64-inl.h

Issue 216513003: Adjust various constants for x32 port (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | « no previous file | src/x64/code-stubs-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 25 matching lines...) Expand all
36 36
37 namespace v8 { 37 namespace v8 {
38 namespace internal { 38 namespace internal {
39 39
40 40
41 // ----------------------------------------------------------------------------- 41 // -----------------------------------------------------------------------------
42 // Implementation of Assembler 42 // Implementation of Assembler
43 43
44 44
45 static const byte kCallOpcode = 0xE8; 45 static const byte kCallOpcode = 0xE8;
46 static const int kNoCodeAgeSequenceLength = 6; 46 // The length of pushq(rbp), movp(rbp, rsp), Push(rsi) and Push(rdi).
47 static const int kNoCodeAgeSequenceLength = kPointerSize == kInt64Size ? 6 : 17;
47 48
48 49
49 void Assembler::emitl(uint32_t x) { 50 void Assembler::emitl(uint32_t x) {
50 Memory::uint32_at(pc_) = x; 51 Memory::uint32_at(pc_) = x;
51 pc_ += sizeof(uint32_t); 52 pc_ += sizeof(uint32_t);
52 } 53 }
53 54
54 55
55 void Assembler::emitp(void* x, RelocInfo::Mode rmode) { 56 void Assembler::emitp(void* x, RelocInfo::Mode rmode) {
56 uintptr_t value = reinterpret_cast<uintptr_t>(x); 57 uintptr_t value = reinterpret_cast<uintptr_t>(x);
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 ASSERT(len_ == 1 || len_ == 2); 561 ASSERT(len_ == 1 || len_ == 2);
561 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); 562 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]);
562 *p = disp; 563 *p = disp;
563 len_ += sizeof(int32_t); 564 len_ += sizeof(int32_t);
564 } 565 }
565 566
566 567
567 } } // namespace v8::internal 568 } } // namespace v8::internal
568 569
569 #endif // V8_X64_ASSEMBLER_X64_INL_H_ 570 #endif // V8_X64_ASSEMBLER_X64_INL_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698