OLD | NEW |
1 // Copyright 2006-2008 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // DeclareGlobals | 64 // DeclareGlobals |
65 // FindInlineRuntimeLUT | 65 // FindInlineRuntimeLUT |
66 // CheckForInlineRuntimeCall | 66 // CheckForInlineRuntimeCall |
67 // AnalyzeCondition | 67 // AnalyzeCondition |
68 // CodeForFunctionPosition | 68 // CodeForFunctionPosition |
69 // CodeForReturnPosition | 69 // CodeForReturnPosition |
70 // CodeForStatementPosition | 70 // CodeForStatementPosition |
71 // CodeForDoWhileConditionPosition | 71 // CodeForDoWhileConditionPosition |
72 // CodeForSourcePosition | 72 // CodeForSourcePosition |
73 | 73 |
74 | |
75 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ | |
76 F(IsSmi, 1, 1) \ | |
77 F(IsNonNegativeSmi, 1, 1) \ | |
78 F(IsArray, 1, 1) \ | |
79 F(IsRegExp, 1, 1) \ | |
80 F(CallFunction, -1 /* receiver + n args + function */, 1) \ | |
81 F(IsConstructCall, 0, 1) \ | |
82 F(ArgumentsLength, 0, 1) \ | |
83 F(Arguments, 1, 1) \ | |
84 F(ClassOf, 1, 1) \ | |
85 F(ValueOf, 1, 1) \ | |
86 F(SetValueOf, 2, 1) \ | |
87 F(StringCharCodeAt, 2, 1) \ | |
88 F(StringCharFromCode, 1, 1) \ | |
89 F(StringCharAt, 2, 1) \ | |
90 F(ObjectEquals, 2, 1) \ | |
91 F(Log, 3, 1) \ | |
92 F(RandomHeapNumber, 0, 1) \ | |
93 F(IsObject, 1, 1) \ | |
94 F(IsFunction, 1, 1) \ | |
95 F(IsUndetectableObject, 1, 1) \ | |
96 F(IsSpecObject, 1, 1) \ | |
97 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ | |
98 F(StringAdd, 2, 1) \ | |
99 F(SubString, 3, 1) \ | |
100 F(StringCompare, 2, 1) \ | |
101 F(RegExpExec, 4, 1) \ | |
102 F(RegExpConstructResult, 3, 1) \ | |
103 F(RegExpCloneResult, 1, 1) \ | |
104 F(GetFromCache, 2, 1) \ | |
105 F(NumberToString, 1, 1) \ | |
106 F(SwapElements, 3, 1) \ | |
107 F(MathPow, 2, 1) \ | |
108 F(MathSin, 1, 1) \ | |
109 F(MathCos, 1, 1) \ | |
110 F(MathSqrt, 1, 1) \ | |
111 F(IsRegExpEquivalent, 2, 1) \ | |
112 F(HasCachedArrayIndex, 1, 1) \ | |
113 F(GetCachedArrayIndex, 1, 1) | |
114 | |
115 | |
116 #if V8_TARGET_ARCH_IA32 | 74 #if V8_TARGET_ARCH_IA32 |
117 #include "ia32/codegen-ia32.h" | 75 #include "ia32/codegen-ia32.h" |
118 #elif V8_TARGET_ARCH_X64 | 76 #elif V8_TARGET_ARCH_X64 |
119 #include "x64/codegen-x64.h" | 77 #include "x64/codegen-x64.h" |
120 #elif V8_TARGET_ARCH_ARM | 78 #elif V8_TARGET_ARCH_ARM |
121 #include "arm/codegen-arm.h" | 79 #include "arm/codegen-arm.h" |
122 #elif V8_TARGET_ARCH_MIPS | 80 #elif V8_TARGET_ARCH_MIPS |
123 #include "mips/codegen-mips.h" | 81 #include "mips/codegen-mips.h" |
124 #else | 82 #else |
125 #error Unsupported target architecture. | 83 #error Unsupported target architecture. |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 #ifdef DEBUG | 236 #ifdef DEBUG |
279 const char* comment_; | 237 const char* comment_; |
280 #endif | 238 #endif |
281 DISALLOW_COPY_AND_ASSIGN(DeferredCode); | 239 DISALLOW_COPY_AND_ASSIGN(DeferredCode); |
282 }; | 240 }; |
283 | 241 |
284 | 242 |
285 } } // namespace v8::internal | 243 } } // namespace v8::internal |
286 | 244 |
287 #endif // V8_CODEGEN_H_ | 245 #endif // V8_CODEGEN_H_ |
OLD | NEW |