OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 TranscendentalCache::Type type_; | 53 TranscendentalCache::Type type_; |
54 ArgumentType argument_type_; | 54 ArgumentType argument_type_; |
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 void GenerateOperation(MacroAssembler* masm); | 59 void GenerateOperation(MacroAssembler* masm); |
60 }; | 60 }; |
61 | 61 |
62 | 62 |
63 class ToBooleanStub: public CodeStub { | |
64 public: | |
65 ToBooleanStub() { } | |
66 | |
67 void Generate(MacroAssembler* masm); | |
68 | |
69 private: | |
70 Major MajorKey() { return ToBoolean; } | |
71 int MinorKey() { return 0; } | |
72 }; | |
73 | |
74 | |
75 class UnaryOpStub: public CodeStub { | 63 class UnaryOpStub: public CodeStub { |
76 public: | 64 public: |
77 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode) | 65 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode) |
78 : op_(op), | 66 : op_(op), |
79 mode_(mode), | 67 mode_(mode), |
80 operand_type_(UnaryOpIC::UNINITIALIZED), | 68 operand_type_(UnaryOpIC::UNINITIALIZED), |
81 name_(NULL) { | 69 name_(NULL) { |
82 } | 70 } |
83 | 71 |
84 UnaryOpStub(int key, UnaryOpIC::TypeInfo operand_type) | 72 UnaryOpStub(int key, UnaryOpIC::TypeInfo operand_type) |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 Register dictionary_; | 496 Register dictionary_; |
509 Register result_; | 497 Register result_; |
510 Register index_; | 498 Register index_; |
511 LookupMode mode_; | 499 LookupMode mode_; |
512 }; | 500 }; |
513 | 501 |
514 | 502 |
515 } } // namespace v8::internal | 503 } } // namespace v8::internal |
516 | 504 |
517 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 505 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
OLD | NEW |