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

Side by Side Diff: src/arm/code-stubs-arm.h

Issue 7218012: Make ToBooleanStub more consistent across platforms. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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 | « no previous file | src/arm/code-stubs-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 TranscendentalCache::Type type_; 51 TranscendentalCache::Type type_;
52 ArgumentType argument_type_; 52 ArgumentType argument_type_;
53 void GenerateCallCFunction(MacroAssembler* masm, Register scratch); 53 void GenerateCallCFunction(MacroAssembler* masm, Register scratch);
54 54
55 Major MajorKey() { return TranscendentalCache; } 55 Major MajorKey() { return TranscendentalCache; }
56 int MinorKey() { return type_ | argument_type_; } 56 int MinorKey() { return type_ | argument_type_; }
57 Runtime::FunctionId RuntimeFunction(); 57 Runtime::FunctionId RuntimeFunction();
58 }; 58 };
59 59
60 60
61 class ToBooleanStub: public CodeStub {
62 public:
63 explicit ToBooleanStub(Register tos) : tos_(tos) { }
64
65 void Generate(MacroAssembler* masm);
66
67 private:
68 Register tos_;
69 Major MajorKey() { return ToBoolean; }
70 int MinorKey() { return tos_.code(); }
71 };
72
73
74 class UnaryOpStub: public CodeStub { 61 class UnaryOpStub: public CodeStub {
75 public: 62 public:
76 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode) 63 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode)
77 : op_(op), 64 : op_(op),
78 mode_(mode), 65 mode_(mode),
79 operand_type_(UnaryOpIC::UNINITIALIZED), 66 operand_type_(UnaryOpIC::UNINITIALIZED),
80 name_(NULL) { 67 name_(NULL) {
81 } 68 }
82 69
83 UnaryOpStub( 70 UnaryOpStub(
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 650
664 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; 651 class LookupModeBits: public BitField<LookupMode, 0, 1> {};
665 652
666 LookupMode mode_; 653 LookupMode mode_;
667 }; 654 };
668 655
669 656
670 } } // namespace v8::internal 657 } } // namespace v8::internal
671 658
672 #endif // V8_ARM_CODE_STUBS_ARM_H_ 659 #endif // V8_ARM_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698