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

Side by Side Diff: src/arm/macro-assembler-arm.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, 11 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/arm/codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 inline Operand SmiUntagOperand(Register object) { 47 inline Operand SmiUntagOperand(Register object) {
48 return Operand(object, ASR, kSmiTagSize); 48 return Operand(object, ASR, kSmiTagSize);
49 } 49 }
50 50
51 51
52 52
53 // Give alias names to registers 53 // Give alias names to registers
54 const Register cp = { 8 }; // JavaScript context pointer 54 const Register cp = { 8 }; // JavaScript context pointer
55 const Register kRootRegister = { 10 }; // Roots array pointer. 55 const Register kRootRegister = { 10 }; // Roots array pointer.
56 56
57 // Flags used for the AllocateInNewSpace functions.
58 enum AllocationFlags {
59 // No special flags.
60 NO_ALLOCATION_FLAGS = 0,
61 // Return the pointer to the allocated already tagged as a heap object.
62 TAG_OBJECT = 1 << 0,
63 // The content of the result register already contains the allocation top in
64 // new space.
65 RESULT_CONTAINS_TOP = 1 << 1,
66 // Specify that the requested size of the space to allocate is specified in
67 // words instead of bytes.
68 SIZE_IN_WORDS = 1 << 2
69 };
70
71 // Flags used for AllocateHeapNumber 57 // Flags used for AllocateHeapNumber
72 enum TaggingMode { 58 enum TaggingMode {
73 // Tag the result. 59 // Tag the result.
74 TAG_RESULT, 60 TAG_RESULT,
75 // Don't tag 61 // Don't tag
76 DONT_TAG_RESULT 62 DONT_TAG_RESULT
77 }; 63 };
78 64
79 // Flags used for the ObjectToDoubleVFPRegister function. 65 // Flags used for the ObjectToDoubleVFPRegister function.
80 enum ObjectToDoubleFlags { 66 enum ObjectToDoubleFlags {
(...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1415 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1430 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1416 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1431 #else 1417 #else
1432 #define ACCESS_MASM(masm) masm-> 1418 #define ACCESS_MASM(masm) masm->
1433 #endif 1419 #endif
1434 1420
1435 1421
1436 } } // namespace v8::internal 1422 } } // namespace v8::internal
1437 1423
1438 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1424 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698