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

Side by Side Diff: src/ia32/assembler-ia32.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/debug.h ('k') | src/ia32/codegen-ia32.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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 static const int kCallTargetSize = kPointerSize; 457 static const int kCallTargetSize = kPointerSize;
458 static const int kExternalTargetSize = kPointerSize; 458 static const int kExternalTargetSize = kPointerSize;
459 459
460 // Distance between the address of the code target in the call instruction 460 // Distance between the address of the code target in the call instruction
461 // and the return address 461 // and the return address
462 static const int kCallTargetAddressOffset = kPointerSize; 462 static const int kCallTargetAddressOffset = kPointerSize;
463 // Distance between start of patched return sequence and the emitted address 463 // Distance between start of patched return sequence and the emitted address
464 // to jump to. 464 // to jump to.
465 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32. 465 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32.
466 466
467 static const int kCallInstructionLength = 5;
468 static const int kJSReturnSequenceLength = 6;
467 469
468 // --------------------------------------------------------------------------- 470 // ---------------------------------------------------------------------------
469 // Code generation 471 // Code generation
470 // 472 //
471 // - function names correspond one-to-one to ia32 instruction mnemonics 473 // - function names correspond one-to-one to ia32 instruction mnemonics
472 // - unless specified otherwise, instructions operate on 32bit operands 474 // - unless specified otherwise, instructions operate on 32bit operands
473 // - instructions on 8bit (byte) operands/registers have a trailing '_b' 475 // - instructions on 8bit (byte) operands/registers have a trailing '_b'
474 // - instructions on 16bit (word) operands/registers have a trailing '_w' 476 // - instructions on 16bit (word) operands/registers have a trailing '_w'
475 // - naming conflicts with C++ keywords are resolved via a trailing '_' 477 // - naming conflicts with C++ keywords are resolved via a trailing '_'
476 478
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 private: 894 private:
893 Assembler* assembler_; 895 Assembler* assembler_;
894 #ifdef DEBUG 896 #ifdef DEBUG
895 int space_before_; 897 int space_before_;
896 #endif 898 #endif
897 }; 899 };
898 900
899 } } // namespace v8::internal 901 } } // namespace v8::internal
900 902
901 #endif // V8_IA32_ASSEMBLER_IA32_H_ 903 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/debug.h ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698