OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // These functions do nontrivial error checking in recursive calls, | 103 // These functions do nontrivial error checking in recursive calls, |
104 // which means that we have to propagate errors back. | 104 // which means that we have to propagate errors back. |
105 "SetFunctionBreakPoint": true, | 105 "SetFunctionBreakPoint": true, |
106 "SetScriptBreakPoint": true, | 106 "SetScriptBreakPoint": true, |
107 "ChangeBreakOnException": true, | 107 "ChangeBreakOnException": true, |
108 "PrepareStep": true, | 108 "PrepareStep": true, |
109 | 109 |
110 // These functions should not be callable as runtime functions. | 110 // These functions should not be callable as runtime functions. |
111 "NewContext": true, | 111 "NewContext": true, |
| 112 "NewArgumentsFast": true, |
112 "PushContext": true, | 113 "PushContext": true, |
113 "LazyCompile": true, | 114 "LazyCompile": true, |
114 "CreateObjectLiteralBoilerplate": true, | 115 "CreateObjectLiteralBoilerplate": true, |
115 "CloneObjectLiteralBoilerplate": true, | 116 "CloneObjectLiteralBoilerplate": true, |
116 "IS_VAR": true | 117 "IS_VAR": true |
117 }; | 118 }; |
118 | 119 |
119 var currentlyUncallable = { | 120 var currentlyUncallable = { |
120 // We need to find a way to test this without breaking the system. | 121 // We need to find a way to test this without breaking the system. |
121 "SystemBreak": true | 122 "SystemBreak": true |
122 }; | 123 }; |
123 | 124 |
124 function testNatives() { | 125 function testNatives() { |
125 var allNatives = %ListNatives(); | 126 var allNatives = %ListNatives(); |
126 for (var i = 0; i < allNatives.length; i++) { | 127 for (var i = 0; i < allNatives.length; i++) { |
127 var nativeInfo = allNatives[i]; | 128 var nativeInfo = allNatives[i]; |
128 var name = nativeInfo[0]; | 129 var name = nativeInfo[0]; |
129 if (name in knownProblems || name in currentlyUncallable) | 130 if (name in knownProblems || name in currentlyUncallable) |
130 continue; | 131 continue; |
131 print(name); | 132 print(name); |
132 var argc = nativeInfo[1]; | 133 var argc = nativeInfo[1]; |
133 testArgumentCount(name); | 134 testArgumentCount(name); |
134 testArgumentTypes(name, argc); | 135 testArgumentTypes(name, argc); |
135 } | 136 } |
136 } | 137 } |
137 | 138 |
138 testNatives(); | 139 testNatives(); |
OLD | NEW |