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

Side by Side Diff: src/x64/code-stubs-x64.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/mips/code-stubs-mips.cc ('k') | src/x64/code-stubs-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 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 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 void GenerateOperation(MacroAssembler* masm); 58 void GenerateOperation(MacroAssembler* masm);
59 }; 59 };
60 60
61 61
62 class ToBooleanStub: public CodeStub {
63 public:
64 ToBooleanStub() { }
65
66 void Generate(MacroAssembler* masm);
67
68 private:
69 Major MajorKey() { return ToBoolean; }
70 int MinorKey() { return 0; }
71 };
72
73
74 class UnaryOpStub: public CodeStub { 62 class UnaryOpStub: public CodeStub {
75 public: 63 public:
76 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode) 64 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode)
77 : op_(op), 65 : op_(op),
78 mode_(mode), 66 mode_(mode),
79 operand_type_(UnaryOpIC::UNINITIALIZED), 67 operand_type_(UnaryOpIC::UNINITIALIZED),
80 name_(NULL) { 68 name_(NULL) {
81 } 69 }
82 70
83 UnaryOpStub( 71 UnaryOpStub(
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 Register dictionary_; 493 Register dictionary_;
506 Register result_; 494 Register result_;
507 Register index_; 495 Register index_;
508 LookupMode mode_; 496 LookupMode mode_;
509 }; 497 };
510 498
511 499
512 } } // namespace v8::internal 500 } } // namespace v8::internal
513 501
514 #endif // V8_X64_CODE_STUBS_X64_H_ 502 #endif // V8_X64_CODE_STUBS_X64_H_
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698