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

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

Issue 11684005: Refactor and improve inlined double-aligned allocations (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 12 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/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-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 17 matching lines...) Expand all
28 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ 28 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_
29 #define V8_X64_MACRO_ASSEMBLER_X64_H_ 29 #define V8_X64_MACRO_ASSEMBLER_X64_H_
30 30
31 #include "assembler.h" 31 #include "assembler.h"
32 #include "frames.h" 32 #include "frames.h"
33 #include "v8globals.h" 33 #include "v8globals.h"
34 34
35 namespace v8 { 35 namespace v8 {
36 namespace internal { 36 namespace internal {
37 37
38 // Flags used for the AllocateInNewSpace functions.
39 enum AllocationFlags {
40 // No special flags.
41 NO_ALLOCATION_FLAGS = 0,
42 // Return the pointer to the allocated already tagged as a heap object.
43 TAG_OBJECT = 1 << 0,
44 // The content of the result register already contains the allocation top in
45 // new space.
46 RESULT_CONTAINS_TOP = 1 << 1
47 };
48
49
50 // Default scratch register used by MacroAssembler (and other code that needs 38 // Default scratch register used by MacroAssembler (and other code that needs
51 // a spare register). The register isn't callee save, and not used by the 39 // a spare register). The register isn't callee save, and not used by the
52 // function calling convention. 40 // function calling convention.
53 const Register kScratchRegister = { 10 }; // r10. 41 const Register kScratchRegister = { 10 }; // r10.
54 const Register kSmiConstantRegister = { 12 }; // r12 (callee save). 42 const Register kSmiConstantRegister = { 12 }; // r12 (callee save).
55 const Register kRootRegister = { 13 }; // r13 (callee save). 43 const Register kRootRegister = { 13 }; // r13 (callee save).
56 // Value of smi in kSmiConstantRegister. 44 // Value of smi in kSmiConstantRegister.
57 const int kSmiConstantRegisterValue = 1; 45 const int kSmiConstantRegisterValue = 1;
58 // Actual value of root register is offset from the root array's start 46 // Actual value of root register is offset from the root array's start
59 // to take advantage of negitive 8-bit displacement values. 47 // to take advantage of negitive 8-bit displacement values.
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 masm->popfd(); \ 1485 masm->popfd(); \
1498 } \ 1486 } \
1499 masm-> 1487 masm->
1500 #else 1488 #else
1501 #define ACCESS_MASM(masm) masm-> 1489 #define ACCESS_MASM(masm) masm->
1502 #endif 1490 #endif
1503 1491
1504 } } // namespace v8::internal 1492 } } // namespace v8::internal
1505 1493
1506 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1494 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698