| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 \ | 106 \ |
| 107 /* Array join support */ \ | 107 /* Array join support */ \ |
| 108 F(PushIfAbsent, 2, 1) \ | 108 F(PushIfAbsent, 2, 1) \ |
| 109 F(ArrayConcat, 1, 1) \ | 109 F(ArrayConcat, 1, 1) \ |
| 110 \ | 110 \ |
| 111 /* Conversions */ \ | 111 /* Conversions */ \ |
| 112 F(ToBool, 1, 1) \ | 112 F(ToBool, 1, 1) \ |
| 113 F(Typeof, 1, 1) \ | 113 F(Typeof, 1, 1) \ |
| 114 \ | 114 \ |
| 115 F(StringToNumber, 1, 1) \ | 115 F(StringToNumber, 1, 1) \ |
| 116 F(StringFromCharCodeArray, 1, 1) \ | |
| 117 F(StringParseInt, 2, 1) \ | 116 F(StringParseInt, 2, 1) \ |
| 118 F(StringParseFloat, 1, 1) \ | 117 F(StringParseFloat, 1, 1) \ |
| 119 F(StringToLowerCase, 1, 1) \ | 118 F(StringToLowerCase, 1, 1) \ |
| 120 F(StringToUpperCase, 1, 1) \ | 119 F(StringToUpperCase, 1, 1) \ |
| 121 F(StringSplit, 3, 1) \ | 120 F(StringSplit, 3, 1) \ |
| 122 F(CharFromCode, 1, 1) \ | 121 F(CharFromCode, 1, 1) \ |
| 123 F(URIEscape, 1, 1) \ | 122 F(URIEscape, 1, 1) \ |
| 124 F(URIUnescape, 1, 1) \ | 123 F(URIUnescape, 1, 1) \ |
| 125 F(BasicJSONStringify, 1, 1) \ | |
| 126 F(QuoteJSONString, 1, 1) \ | |
| 127 F(QuoteJSONStringComma, 1, 1) \ | |
| 128 F(QuoteJSONStringArray, 1, 1) \ | |
| 129 \ | 124 \ |
| 130 F(NumberToString, 1, 1) \ | 125 F(NumberToString, 1, 1) \ |
| 131 F(NumberToStringSkipCache, 1, 1) \ | 126 F(NumberToStringSkipCache, 1, 1) \ |
| 132 F(NumberToInteger, 1, 1) \ | 127 F(NumberToInteger, 1, 1) \ |
| 133 F(NumberToIntegerMapMinusZero, 1, 1) \ | 128 F(NumberToIntegerMapMinusZero, 1, 1) \ |
| 134 F(NumberToJSUint32, 1, 1) \ | 129 F(NumberToJSUint32, 1, 1) \ |
| 135 F(NumberToJSInt32, 1, 1) \ | 130 F(NumberToJSInt32, 1, 1) \ |
| 136 F(NumberToSmi, 1, 1) \ | 131 F(NumberToSmi, 1, 1) \ |
| 137 F(AllocateHeapNumber, 0, 1) \ | 132 F(AllocateHeapNumber, 0, 1) \ |
| 138 \ | 133 \ |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 \ | 182 \ |
| 188 /* Regular expressions */ \ | 183 /* Regular expressions */ \ |
| 189 F(RegExpCompile, 3, 1) \ | 184 F(RegExpCompile, 3, 1) \ |
| 190 F(RegExpExec, 4, 1) \ | 185 F(RegExpExec, 4, 1) \ |
| 191 F(RegExpExecMultiple, 4, 1) \ | 186 F(RegExpExecMultiple, 4, 1) \ |
| 192 F(RegExpInitializeObject, 5, 1) \ | 187 F(RegExpInitializeObject, 5, 1) \ |
| 193 F(RegExpConstructResult, 3, 1) \ | 188 F(RegExpConstructResult, 3, 1) \ |
| 194 \ | 189 \ |
| 195 /* JSON */ \ | 190 /* JSON */ \ |
| 196 F(ParseJson, 1, 1) \ | 191 F(ParseJson, 1, 1) \ |
| 192 F(BasicJSONStringify, 1, 1) \ |
| 193 F(QuoteJSONString, 1, 1) \ |
| 194 F(QuoteJSONStringComma, 1, 1) \ |
| 195 F(QuoteJSONStringArray, 1, 1) \ |
| 197 \ | 196 \ |
| 198 /* Strings */ \ | 197 /* Strings */ \ |
| 199 F(StringCharCodeAt, 2, 1) \ | 198 F(StringCharCodeAt, 2, 1) \ |
| 200 F(StringIndexOf, 3, 1) \ | 199 F(StringIndexOf, 3, 1) \ |
| 201 F(StringLastIndexOf, 3, 1) \ | 200 F(StringLastIndexOf, 3, 1) \ |
| 202 F(StringLocaleCompare, 2, 1) \ | 201 F(StringLocaleCompare, 2, 1) \ |
| 203 F(SubString, 3, 1) \ | 202 F(SubString, 3, 1) \ |
| 204 F(StringReplaceRegExpWithString, 4, 1) \ | 203 F(StringReplaceRegExpWithString, 4, 1) \ |
| 205 F(StringReplaceOneCharWithString, 3, 1) \ | 204 F(StringReplaceOneCharWithString, 3, 1) \ |
| 206 F(StringMatch, 3, 1) \ | 205 F(StringMatch, 3, 1) \ |
| 207 F(StringTrim, 3, 1) \ | 206 F(StringTrim, 3, 1) \ |
| 208 F(StringToArray, 2, 1) \ | 207 F(StringToArray, 2, 1) \ |
| 209 F(NewStringWrapper, 1, 1) \ | 208 F(NewStringWrapper, 1, 1) \ |
| 209 F(NewString, 2, 1) \ |
| 210 F(TruncateString, 2, 1) \ |
| 210 \ | 211 \ |
| 211 /* Numbers */ \ | 212 /* Numbers */ \ |
| 212 F(NumberToRadixString, 2, 1) \ | 213 F(NumberToRadixString, 2, 1) \ |
| 213 F(NumberToFixed, 2, 1) \ | 214 F(NumberToFixed, 2, 1) \ |
| 214 F(NumberToExponential, 2, 1) \ | 215 F(NumberToExponential, 2, 1) \ |
| 215 F(NumberToPrecision, 2, 1) | 216 F(NumberToPrecision, 2, 1) |
| 216 | 217 |
| 217 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ | 218 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ |
| 218 /* Reflection */ \ | 219 /* Reflection */ \ |
| 219 F(FunctionSetInstanceClassName, 2, 1) \ | 220 F(FunctionSetInstanceClassName, 2, 1) \ |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 F(IsRegExp, 1, 1) \ | 523 F(IsRegExp, 1, 1) \ |
| 523 F(IsConstructCall, 0, 1) \ | 524 F(IsConstructCall, 0, 1) \ |
| 524 F(CallFunction, -1 /* receiver + n args + function */, 1) \ | 525 F(CallFunction, -1 /* receiver + n args + function */, 1) \ |
| 525 F(ArgumentsLength, 0, 1) \ | 526 F(ArgumentsLength, 0, 1) \ |
| 526 F(Arguments, 1, 1) \ | 527 F(Arguments, 1, 1) \ |
| 527 F(ValueOf, 1, 1) \ | 528 F(ValueOf, 1, 1) \ |
| 528 F(SetValueOf, 2, 1) \ | 529 F(SetValueOf, 2, 1) \ |
| 529 F(DateField, 2 /* date object, field index */, 1) \ | 530 F(DateField, 2 /* date object, field index */, 1) \ |
| 530 F(StringCharFromCode, 1, 1) \ | 531 F(StringCharFromCode, 1, 1) \ |
| 531 F(StringCharAt, 2, 1) \ | 532 F(StringCharAt, 2, 1) \ |
| 533 F(OneByteSeqStringSetChar, 3, 1) \ |
| 534 F(TwoByteSeqStringSetChar, 3, 1) \ |
| 532 F(ObjectEquals, 2, 1) \ | 535 F(ObjectEquals, 2, 1) \ |
| 533 F(RandomHeapNumber, 0, 1) \ | 536 F(RandomHeapNumber, 0, 1) \ |
| 534 F(IsObject, 1, 1) \ | 537 F(IsObject, 1, 1) \ |
| 535 F(IsFunction, 1, 1) \ | 538 F(IsFunction, 1, 1) \ |
| 536 F(IsUndetectableObject, 1, 1) \ | 539 F(IsUndetectableObject, 1, 1) \ |
| 537 F(IsSpecObject, 1, 1) \ | 540 F(IsSpecObject, 1, 1) \ |
| 538 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ | 541 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ |
| 539 F(MathPow, 2, 1) \ | 542 F(MathPow, 2, 1) \ |
| 540 F(MathSin, 1, 1) \ | 543 F(MathSin, 1, 1) \ |
| 541 F(MathCos, 1, 1) \ | 544 F(MathCos, 1, 1) \ |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 //--------------------------------------------------------------------------- | 721 //--------------------------------------------------------------------------- |
| 719 // Constants used by interface to runtime functions. | 722 // Constants used by interface to runtime functions. |
| 720 | 723 |
| 721 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 724 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
| 722 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 725 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
| 723 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 726 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
| 724 | 727 |
| 725 } } // namespace v8::internal | 728 } } // namespace v8::internal |
| 726 | 729 |
| 727 #endif // V8_RUNTIME_H_ | 730 #endif // V8_RUNTIME_H_ |
| OLD | NEW |