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

Side by Side Diff: src/mips/code-stubs-mips.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 | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips/code-stubs-mips.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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 TranscendentalCache::Type type_; 52 TranscendentalCache::Type type_;
53 ArgumentType argument_type_; 53 ArgumentType argument_type_;
54 void GenerateCallCFunction(MacroAssembler* masm, Register scratch); 54 void GenerateCallCFunction(MacroAssembler* masm, Register scratch);
55 55
56 Major MajorKey() { return TranscendentalCache; } 56 Major MajorKey() { return TranscendentalCache; }
57 int MinorKey() { return type_ | argument_type_; } 57 int MinorKey() { return type_ | argument_type_; }
58 Runtime::FunctionId RuntimeFunction(); 58 Runtime::FunctionId RuntimeFunction();
59 }; 59 };
60 60
61 61
62 class ToBooleanStub: public CodeStub {
63 public:
64 explicit ToBooleanStub(Register tos) : tos_(tos) { }
65
66 void Generate(MacroAssembler* masm);
67
68 private:
69 Register tos_;
70 Major MajorKey() { return ToBoolean; }
71 int MinorKey() { return tos_.code(); }
72 };
73
74
75 class UnaryOpStub: public CodeStub { 62 class UnaryOpStub: public CodeStub {
76 public: 63 public:
77 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode) 64 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode)
78 : op_(op), 65 : op_(op),
79 mode_(mode), 66 mode_(mode),
80 operand_type_(UnaryOpIC::UNINITIALIZED), 67 operand_type_(UnaryOpIC::UNINITIALIZED),
81 name_(NULL) { 68 name_(NULL) {
82 } 69 }
83 70
84 UnaryOpStub( 71 UnaryOpStub(
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 659
673 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; 660 class LookupModeBits: public BitField<LookupMode, 0, 1> {};
674 661
675 LookupMode mode_; 662 LookupMode mode_;
676 }; 663 };
677 664
678 665
679 } } // namespace v8::internal 666 } } // namespace v8::internal
680 667
681 #endif // V8_MIPS_CODE_STUBS_ARM_H_ 668 #endif // V8_MIPS_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698