| 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. |
| 72 #ifdef V8_TARGET_ARCH_ARM | 73 #ifdef V8_TARGET_ARCH_ARM |
| 73 #define CODE_STUB_LIST_ARM(V) \ | 74 #define CODE_STUB_LIST_ARM(V) \ |
| 74 V(GetProperty) \ | 75 V(GetProperty) \ |
| 75 V(SetProperty) \ | 76 V(SetProperty) \ |
| 76 V(InvokeBuiltin) \ | 77 V(InvokeBuiltin) \ |
| 77 V(RegExpCEntry) | 78 V(RegExpCEntry) \ |
| 79 V(DirectCEntry) |
| 78 #else | 80 #else |
| 79 #define CODE_STUB_LIST_ARM(V) | 81 #define CODE_STUB_LIST_ARM(V) |
| 80 #endif | 82 #endif |
| 81 | 83 |
| 82 // Combined list of code stubs. | 84 // Combined list of code stubs. |
| 83 #define CODE_STUB_LIST(V) \ | 85 #define CODE_STUB_LIST(V) \ |
| 84 CODE_STUB_LIST_ALL_PLATFORMS(V) \ | 86 CODE_STUB_LIST_ALL_PLATFORMS(V) \ |
| 85 CODE_STUB_LIST_ARM(V) | 87 CODE_STUB_LIST_ARM(V) |
| 86 | 88 |
| 87 // Types of uncatchable exceptions. | 89 // Types of uncatchable exceptions. |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 | 255 |
| 254 private: | 256 private: |
| 255 | 257 |
| 256 const char* GetName() { return "StackCheckStub"; } | 258 const char* GetName() { return "StackCheckStub"; } |
| 257 | 259 |
| 258 Major MajorKey() { return StackCheck; } | 260 Major MajorKey() { return StackCheck; } |
| 259 int MinorKey() { return 0; } | 261 int MinorKey() { return 0; } |
| 260 }; | 262 }; |
| 261 | 263 |
| 262 | 264 |
| 265 class ToNumberStub: public CodeStub { |
| 266 public: |
| 267 ToNumberStub() { } |
| 268 |
| 269 void Generate(MacroAssembler* masm); |
| 270 |
| 271 private: |
| 272 Major MajorKey() { return ToNumber; } |
| 273 int MinorKey() { return 0; } |
| 274 const char* GetName() { return "ToNumberStub"; } |
| 275 }; |
| 276 |
| 277 |
| 263 class FastNewClosureStub : public CodeStub { | 278 class FastNewClosureStub : public CodeStub { |
| 264 public: | 279 public: |
| 265 void Generate(MacroAssembler* masm); | 280 void Generate(MacroAssembler* masm); |
| 266 | 281 |
| 267 private: | 282 private: |
| 268 const char* GetName() { return "FastNewClosureStub"; } | 283 const char* GetName() { return "FastNewClosureStub"; } |
| 269 Major MajorKey() { return FastNewClosure; } | 284 Major MajorKey() { return FastNewClosure; } |
| 270 int MinorKey() { return 0; } | 285 int MinorKey() { return 0; } |
| 271 }; | 286 }; |
| 272 | 287 |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 private: | 944 private: |
| 930 MacroAssembler* masm_; | 945 MacroAssembler* masm_; |
| 931 bool previous_allow_; | 946 bool previous_allow_; |
| 932 | 947 |
| 933 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); | 948 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); |
| 934 }; | 949 }; |
| 935 | 950 |
| 936 } } // namespace v8::internal | 951 } } // namespace v8::internal |
| 937 | 952 |
| 938 #endif // V8_CODE_STUBS_H_ | 953 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |