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

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

Issue 10824079: Use a special EnumLength field to indicate number of valid enum cache values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 8 years, 3 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/ia32/lithium-ia32.cc ('k') | src/ia32/macro-assembler-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 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 } 485 }
486 // Jump if register contain a non-smi. 486 // Jump if register contain a non-smi.
487 inline void JumpIfNotSmi(Register value, 487 inline void JumpIfNotSmi(Register value,
488 Label* not_smi_label, 488 Label* not_smi_label,
489 Label::Distance distance = Label::kFar) { 489 Label::Distance distance = Label::kFar) {
490 test(value, Immediate(kSmiTagMask)); 490 test(value, Immediate(kSmiTagMask));
491 j(not_zero, not_smi_label, distance); 491 j(not_zero, not_smi_label, distance);
492 } 492 }
493 493
494 void LoadInstanceDescriptors(Register map, Register descriptors); 494 void LoadInstanceDescriptors(Register map, Register descriptors);
495 void EnumLength(Register dst, Register map);
495 496
497 template<typename Field>
498 void DecodeField(Register reg) {
499 static const int full_shift = Field::kShift + kSmiTagSize;
500 static const int low_mask = Field::kMask >> Field::kShift;
501 sar(reg, full_shift);
502 and_(reg, Immediate(low_mask));
503 }
496 void LoadPowerOf2(XMMRegister dst, Register scratch, int power); 504 void LoadPowerOf2(XMMRegister dst, Register scratch, int power);
497 505
498 // Abort execution if argument is not a number. Used in debug code. 506 // Abort execution if argument is not a number. Used in debug code.
499 void AbortIfNotNumber(Register object); 507 void AbortIfNotNumber(Register object);
500 508
501 // Abort execution if argument is not a smi. Used in debug code. 509 // Abort execution if argument is not a smi. Used in debug code.
502 void AbortIfNotSmi(Register object); 510 void AbortIfNotSmi(Register object);
503 511
504 // Abort execution if argument is a smi. Used in debug code. 512 // Abort execution if argument is a smi. Used in debug code.
505 void AbortIfSmi(Register object); 513 void AbortIfSmi(Register object);
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 } \ 997 } \
990 masm-> 998 masm->
991 #else 999 #else
992 #define ACCESS_MASM(masm) masm-> 1000 #define ACCESS_MASM(masm) masm->
993 #endif 1001 #endif
994 1002
995 1003
996 } } // namespace v8::internal 1004 } } // namespace v8::internal
997 1005
998 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1006 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698