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

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

Issue 456001: Move CPU-specific constants from debug.h into the platform-specific directori... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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/ia32/fast-codegen-ia32.cc ('k') | src/x64/codegen-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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 // Distance between the address of the code target in the call instruction 475 // Distance between the address of the code target in the call instruction
476 // and the return address pushed on the stack. 476 // and the return address pushed on the stack.
477 static const int kCallTargetAddressOffset = 4; // Use 32-bit displacement. 477 static const int kCallTargetAddressOffset = 4; // Use 32-bit displacement.
478 // Distance between the start of the JS return sequence and where the 478 // Distance between the start of the JS return sequence and where the
479 // 32-bit displacement of a near call would be, relative to the pushed 479 // 32-bit displacement of a near call would be, relative to the pushed
480 // return address. TODO: Use return sequence length instead. 480 // return address. TODO: Use return sequence length instead.
481 // Should equal Debug::kX64JSReturnSequenceLength - kCallTargetAddressOffset; 481 // Should equal Debug::kX64JSReturnSequenceLength - kCallTargetAddressOffset;
482 static const int kPatchReturnSequenceAddressOffset = 13 - 4; 482 static const int kPatchReturnSequenceAddressOffset = 13 - 4;
483 // TODO(X64): Rename this, removing the "Real", after changing the above. 483 // TODO(X64): Rename this, removing the "Real", after changing the above.
484 static const int kRealPatchReturnSequenceAddressOffset = 2; 484 static const int kRealPatchReturnSequenceAddressOffset = 2;
485
486 // The x64 JS return sequence is padded with int3 to make it large
487 // enough to hold a call instruction when the debugger patches it.
488 static const int kCallInstructionLength = 13;
489 static const int kJSReturnSequenceLength = 13;
490
485 // --------------------------------------------------------------------------- 491 // ---------------------------------------------------------------------------
486 // Code generation 492 // Code generation
487 // 493 //
488 // Function names correspond one-to-one to x64 instruction mnemonics. 494 // Function names correspond one-to-one to x64 instruction mnemonics.
489 // Unless specified otherwise, instructions operate on 64-bit operands. 495 // Unless specified otherwise, instructions operate on 64-bit operands.
490 // 496 //
491 // If we need versions of an assembly instruction that operate on different 497 // If we need versions of an assembly instruction that operate on different
492 // width arguments, we add a single-letter suffix specifying the width. 498 // width arguments, we add a single-letter suffix specifying the width.
493 // This is done for the following instructions: mov, cmp, inc, dec, 499 // This is done for the following instructions: mov, cmp, inc, dec,
494 // add, sub, and test. 500 // add, sub, and test.
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 private: 1390 private:
1385 Assembler* assembler_; 1391 Assembler* assembler_;
1386 #ifdef DEBUG 1392 #ifdef DEBUG
1387 int space_before_; 1393 int space_before_;
1388 #endif 1394 #endif
1389 }; 1395 };
1390 1396
1391 } } // namespace v8::internal 1397 } } // namespace v8::internal
1392 1398
1393 #endif // V8_X64_ASSEMBLER_X64_H_ 1399 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/fast-codegen-ia32.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698