| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 V(CEntry) \ | 67 V(CEntry) \ |
| 68 V(JSEntry) \ | 68 V(JSEntry) \ |
| 69 V(DebuggerStatement) | 69 V(DebuggerStatement) |
| 70 | 70 |
| 71 // List of code stubs only used on ARM platforms. | 71 // List of code stubs only used on ARM platforms. |
| 72 #ifdef V8_TARGET_ARCH_ARM | 72 #ifdef V8_TARGET_ARCH_ARM |
| 73 #define CODE_STUB_LIST_ARM(V) \ | 73 #define CODE_STUB_LIST_ARM(V) \ |
| 74 V(GetProperty) \ | 74 V(GetProperty) \ |
| 75 V(SetProperty) \ | 75 V(SetProperty) \ |
| 76 V(InvokeBuiltin) \ | 76 V(InvokeBuiltin) \ |
| 77 V(RegExpCEntry) | 77 V(RegExpCEntry) \ |
| 78 V(DirectCEntry) |
| 78 #else | 79 #else |
| 79 #define CODE_STUB_LIST_ARM(V) | 80 #define CODE_STUB_LIST_ARM(V) |
| 80 #endif | 81 #endif |
| 81 | 82 |
| 82 // Combined list of code stubs. | 83 // Combined list of code stubs. |
| 83 #define CODE_STUB_LIST(V) \ | 84 #define CODE_STUB_LIST(V) \ |
| 84 CODE_STUB_LIST_ALL_PLATFORMS(V) \ | 85 CODE_STUB_LIST_ALL_PLATFORMS(V) \ |
| 85 CODE_STUB_LIST_ARM(V) | 86 CODE_STUB_LIST_ARM(V) |
| 86 | 87 |
| 87 // Types of uncatchable exceptions. | |
| 88 enum UncatchableExceptionType { OUT_OF_MEMORY, TERMINATION }; | |
| 89 | |
| 90 // Mode to overwrite BinaryExpression values. | 88 // Mode to overwrite BinaryExpression values. |
| 91 enum OverwriteMode { NO_OVERWRITE, OVERWRITE_LEFT, OVERWRITE_RIGHT }; | 89 enum OverwriteMode { NO_OVERWRITE, OVERWRITE_LEFT, OVERWRITE_RIGHT }; |
| 92 enum UnaryOverwriteMode { UNARY_OVERWRITE, UNARY_NO_OVERWRITE }; | 90 enum UnaryOverwriteMode { UNARY_OVERWRITE, UNARY_NO_OVERWRITE }; |
| 93 | 91 |
| 94 | 92 |
| 95 // Stub is base classes of all stubs. | 93 // Stub is base classes of all stubs. |
| 96 class CodeStub BASE_EMBEDDED { | 94 class CodeStub BASE_EMBEDDED { |
| 97 public: | 95 public: |
| 98 enum Major { | 96 enum Major { |
| 99 #define DEF_ENUM(name) name, | 97 #define DEF_ENUM(name) name, |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 private: | 927 private: |
| 930 MacroAssembler* masm_; | 928 MacroAssembler* masm_; |
| 931 bool previous_allow_; | 929 bool previous_allow_; |
| 932 | 930 |
| 933 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); | 931 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); |
| 934 }; | 932 }; |
| 935 | 933 |
| 936 } } // namespace v8::internal | 934 } } // namespace v8::internal |
| 937 | 935 |
| 938 #endif // V8_CODE_STUBS_H_ | 936 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |