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 V(ConvertToDouble) \ | 52 V(ConvertToDouble) \ |
53 V(WriteInt32ToHeapNumber) \ | 53 V(WriteInt32ToHeapNumber) \ |
54 V(IntegerMod) \ | 54 V(IntegerMod) \ |
55 V(StackCheck) \ | 55 V(StackCheck) \ |
56 V(FastNewClosure) \ | 56 V(FastNewClosure) \ |
57 V(FastNewContext) \ | 57 V(FastNewContext) \ |
58 V(FastCloneShallowArray) \ | 58 V(FastCloneShallowArray) \ |
59 V(GenericUnaryOp) \ | 59 V(GenericUnaryOp) \ |
60 V(RevertToNumber) \ | 60 V(RevertToNumber) \ |
61 V(ToBoolean) \ | 61 V(ToBoolean) \ |
| 62 V(ToNumber) \ |
62 V(CounterOp) \ | 63 V(CounterOp) \ |
63 V(ArgumentsAccess) \ | 64 V(ArgumentsAccess) \ |
64 V(RegExpExec) \ | 65 V(RegExpExec) \ |
65 V(RegExpConstructResult) \ | 66 V(RegExpConstructResult) \ |
66 V(NumberToString) \ | 67 V(NumberToString) \ |
67 V(CEntry) \ | 68 V(CEntry) \ |
68 V(JSEntry) \ | 69 V(JSEntry) \ |
69 V(DebuggerStatement) | 70 V(DebuggerStatement) |
70 | 71 |
71 // List of code stubs only used on ARM platforms. | 72 // List of code stubs only used on ARM platforms. |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 254 |
254 private: | 255 private: |
255 | 256 |
256 const char* GetName() { return "StackCheckStub"; } | 257 const char* GetName() { return "StackCheckStub"; } |
257 | 258 |
258 Major MajorKey() { return StackCheck; } | 259 Major MajorKey() { return StackCheck; } |
259 int MinorKey() { return 0; } | 260 int MinorKey() { return 0; } |
260 }; | 261 }; |
261 | 262 |
262 | 263 |
| 264 class ToNumberStub: public CodeStub { |
| 265 public: |
| 266 ToNumberStub() { } |
| 267 |
| 268 void Generate(MacroAssembler* masm); |
| 269 |
| 270 private: |
| 271 Major MajorKey() { return ToNumber; } |
| 272 int MinorKey() { return 0; } |
| 273 const char* GetName() { return "ToNumberStub"; } |
| 274 }; |
| 275 |
| 276 |
263 class FastNewClosureStub : public CodeStub { | 277 class FastNewClosureStub : public CodeStub { |
264 public: | 278 public: |
265 void Generate(MacroAssembler* masm); | 279 void Generate(MacroAssembler* masm); |
266 | 280 |
267 private: | 281 private: |
268 const char* GetName() { return "FastNewClosureStub"; } | 282 const char* GetName() { return "FastNewClosureStub"; } |
269 Major MajorKey() { return FastNewClosure; } | 283 Major MajorKey() { return FastNewClosure; } |
270 int MinorKey() { return 0; } | 284 int MinorKey() { return 0; } |
271 }; | 285 }; |
272 | 286 |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 private: | 943 private: |
930 MacroAssembler* masm_; | 944 MacroAssembler* masm_; |
931 bool previous_allow_; | 945 bool previous_allow_; |
932 | 946 |
933 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); | 947 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); |
934 }; | 948 }; |
935 | 949 |
936 } } // namespace v8::internal | 950 } } // namespace v8::internal |
937 | 951 |
938 #endif // V8_CODE_STUBS_H_ | 952 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |