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

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

Issue 300023011: Convert String array index/length hash to BitField (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 6 years, 6 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/objects.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_
7 7
8 #include "assembler.h" 8 #include "assembler.h"
9 #include "frames.h" 9 #include "frames.h"
10 #include "globals.h" 10 #include "globals.h"
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 void LoadUint32(XMMRegister dst, Register src); 1007 void LoadUint32(XMMRegister dst, Register src);
1008 1008
1009 void LoadInstanceDescriptors(Register map, Register descriptors); 1009 void LoadInstanceDescriptors(Register map, Register descriptors);
1010 void EnumLength(Register dst, Register map); 1010 void EnumLength(Register dst, Register map);
1011 void NumberOfOwnDescriptors(Register dst, Register map); 1011 void NumberOfOwnDescriptors(Register dst, Register map);
1012 1012
1013 template<typename Field> 1013 template<typename Field>
1014 void DecodeField(Register reg) { 1014 void DecodeField(Register reg) {
1015 static const int shift = Field::kShift; 1015 static const int shift = Field::kShift;
1016 static const int mask = Field::kMask >> Field::kShift; 1016 static const int mask = Field::kMask >> Field::kShift;
1017 shrp(reg, Immediate(shift)); 1017 if (shift != 0) {
1018 shrp(reg, Immediate(shift));
1019 }
1018 andp(reg, Immediate(mask)); 1020 andp(reg, Immediate(mask));
1019 } 1021 }
1020 1022
1023 template<typename Field>
1024 void DecodeFieldToSmi(Register reg) {
1025 andp(reg, Immediate(Field::kMask));
1026 shlp(reg, Immediate(kSmiShift - Field::kShift));
1027 }
1028
1021 // Abort execution if argument is not a number, enabled via --debug-code. 1029 // Abort execution if argument is not a number, enabled via --debug-code.
1022 void AssertNumber(Register object); 1030 void AssertNumber(Register object);
1023 1031
1024 // Abort execution if argument is a smi, enabled via --debug-code. 1032 // Abort execution if argument is a smi, enabled via --debug-code.
1025 void AssertNotSmi(Register object); 1033 void AssertNotSmi(Register object);
1026 1034
1027 // Abort execution if argument is not a smi, enabled via --debug-code. 1035 // Abort execution if argument is not a smi, enabled via --debug-code.
1028 void AssertSmi(Register object); 1036 void AssertSmi(Register object);
1029 void AssertSmi(const Operand& object); 1037 void AssertSmi(const Operand& object);
1030 1038
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 masm->popfq(); \ 1603 masm->popfq(); \
1596 } \ 1604 } \
1597 masm-> 1605 masm->
1598 #else 1606 #else
1599 #define ACCESS_MASM(masm) masm-> 1607 #define ACCESS_MASM(masm) masm->
1600 #endif 1608 #endif
1601 1609
1602 } } // namespace v8::internal 1610 } } // namespace v8::internal
1603 1611
1604 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1612 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698