OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |