Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: src/runtime.h

Issue 196133017: Experimental parser: merge r19949 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/property-details-inl.h ('k') | src/runtime.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 F(GetPropertyNamesFast, 1, 1) \ 57 F(GetPropertyNamesFast, 1, 1) \
58 F(GetLocalPropertyNames, 2, 1) \ 58 F(GetLocalPropertyNames, 2, 1) \
59 F(GetLocalElementNames, 1, 1) \ 59 F(GetLocalElementNames, 1, 1) \
60 F(GetInterceptorInfo, 1, 1) \ 60 F(GetInterceptorInfo, 1, 1) \
61 F(GetNamedInterceptorPropertyNames, 1, 1) \ 61 F(GetNamedInterceptorPropertyNames, 1, 1) \
62 F(GetIndexedInterceptorElementNames, 1, 1) \ 62 F(GetIndexedInterceptorElementNames, 1, 1) \
63 F(GetArgumentsProperty, 1, 1) \ 63 F(GetArgumentsProperty, 1, 1) \
64 F(ToFastProperties, 1, 1) \ 64 F(ToFastProperties, 1, 1) \
65 F(FinishArrayPrototypeSetup, 1, 1) \ 65 F(FinishArrayPrototypeSetup, 1, 1) \
66 F(SpecialArrayFunctions, 1, 1) \ 66 F(SpecialArrayFunctions, 1, 1) \
67 F(IsClassicModeFunction, 1, 1) \ 67 F(IsSloppyModeFunction, 1, 1) \
68 F(GetDefaultReceiver, 1, 1) \ 68 F(GetDefaultReceiver, 1, 1) \
69 \ 69 \
70 F(GetPrototype, 1, 1) \ 70 F(GetPrototype, 1, 1) \
71 F(SetPrototype, 2, 1) \ 71 F(SetPrototype, 2, 1) \
72 F(IsInPrototypeChain, 2, 1) \ 72 F(IsInPrototypeChain, 2, 1) \
73 \ 73 \
74 F(GetOwnProperty, 2, 1) \ 74 F(GetOwnProperty, 2, 1) \
75 \ 75 \
76 F(IsExtensible, 1, 1) \ 76 F(IsExtensible, 1, 1) \
77 F(PreventExtensions, 1, 1)\ 77 F(PreventExtensions, 1, 1)\
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 F(StringToNumber, 1, 1) \ 124 F(StringToNumber, 1, 1) \
125 F(StringParseInt, 2, 1) \ 125 F(StringParseInt, 2, 1) \
126 F(StringParseFloat, 1, 1) \ 126 F(StringParseFloat, 1, 1) \
127 F(StringToLowerCase, 1, 1) \ 127 F(StringToLowerCase, 1, 1) \
128 F(StringToUpperCase, 1, 1) \ 128 F(StringToUpperCase, 1, 1) \
129 F(StringSplit, 3, 1) \ 129 F(StringSplit, 3, 1) \
130 F(CharFromCode, 1, 1) \ 130 F(CharFromCode, 1, 1) \
131 F(URIEscape, 1, 1) \ 131 F(URIEscape, 1, 1) \
132 F(URIUnescape, 1, 1) \ 132 F(URIUnescape, 1, 1) \
133 \ 133 \
134 F(NumberToString, 1, 1) \
135 F(NumberToStringSkipCache, 1, 1) \ 134 F(NumberToStringSkipCache, 1, 1) \
136 F(NumberToInteger, 1, 1) \ 135 F(NumberToInteger, 1, 1) \
137 F(NumberToPositiveInteger, 1, 1) \ 136 F(NumberToPositiveInteger, 1, 1) \
138 F(NumberToIntegerMapMinusZero, 1, 1) \ 137 F(NumberToIntegerMapMinusZero, 1, 1) \
139 F(NumberToJSUint32, 1, 1) \ 138 F(NumberToJSUint32, 1, 1) \
140 F(NumberToJSInt32, 1, 1) \ 139 F(NumberToJSInt32, 1, 1) \
141 F(NumberToSmi, 1, 1) \ 140 F(NumberToSmi, 1, 1) \
142 F(AllocateHeapNumber, 0, 1) \ 141 F(AllocateHeapNumber, 0, 1) \
143 \ 142 \
144 /* Arithmetic operations */ \ 143 /* Arithmetic operations */ \
145 F(NumberAdd, 2, 1) \ 144 F(NumberAdd, 2, 1) \
146 F(NumberSub, 2, 1) \ 145 F(NumberSub, 2, 1) \
147 F(NumberMul, 2, 1) \ 146 F(NumberMul, 2, 1) \
148 F(NumberDiv, 2, 1) \ 147 F(NumberDiv, 2, 1) \
149 F(NumberMod, 2, 1) \ 148 F(NumberMod, 2, 1) \
150 F(NumberUnaryMinus, 1, 1) \ 149 F(NumberUnaryMinus, 1, 1) \
151 F(NumberAlloc, 0, 1) \ 150 F(NumberAlloc, 0, 1) \
152 F(NumberImul, 2, 1) \ 151 F(NumberImul, 2, 1) \
153 \ 152 \
154 F(StringAdd, 2, 1) \
155 F(StringBuilderConcat, 3, 1) \ 153 F(StringBuilderConcat, 3, 1) \
156 F(StringBuilderJoin, 3, 1) \ 154 F(StringBuilderJoin, 3, 1) \
157 F(SparseJoinWithSeparator, 3, 1) \ 155 F(SparseJoinWithSeparator, 3, 1) \
158 \ 156 \
159 /* Bit operations */ \ 157 /* Bit operations */ \
160 F(NumberOr, 2, 1) \ 158 F(NumberOr, 2, 1) \
161 F(NumberAnd, 2, 1) \ 159 F(NumberAnd, 2, 1) \
162 F(NumberXor, 2, 1) \ 160 F(NumberXor, 2, 1) \
163 \ 161 \
164 F(NumberShl, 2, 1) \ 162 F(NumberShl, 2, 1) \
165 F(NumberShr, 2, 1) \ 163 F(NumberShr, 2, 1) \
166 F(NumberSar, 2, 1) \ 164 F(NumberSar, 2, 1) \
167 \ 165 \
168 /* Comparisons */ \ 166 /* Comparisons */ \
169 F(NumberEquals, 2, 1) \ 167 F(NumberEquals, 2, 1) \
170 F(StringEquals, 2, 1) \ 168 F(StringEquals, 2, 1) \
171 \ 169 \
172 F(NumberCompare, 3, 1) \ 170 F(NumberCompare, 3, 1) \
173 F(SmiLexicographicCompare, 2, 1) \ 171 F(SmiLexicographicCompare, 2, 1) \
174 F(StringCompare, 2, 1) \
175 \ 172 \
176 /* Math */ \ 173 /* Math */ \
177 F(Math_acos, 1, 1) \ 174 F(Math_acos, 1, 1) \
178 F(Math_asin, 1, 1) \ 175 F(Math_asin, 1, 1) \
179 F(Math_atan, 1, 1) \ 176 F(Math_atan, 1, 1) \
180 F(Math_log, 1, 1) \ 177 F(Math_log, 1, 1) \
181 F(Math_cbrt, 1, 1) \
182 F(Math_log1p, 1, 1) \
183 F(Math_expm1, 1, 1) \
184 F(Math_sqrt, 1, 1) \ 178 F(Math_sqrt, 1, 1) \
185 F(Math_exp, 1, 1) \ 179 F(Math_exp, 1, 1) \
186 F(Math_floor, 1, 1) \ 180 F(Math_floor, 1, 1) \
187 F(Math_pow, 2, 1) \ 181 F(Math_pow, 2, 1) \
188 F(Math_pow_cfunction, 2, 1) \ 182 F(Math_pow_cfunction, 2, 1) \
189 F(Math_atan2, 2, 1) \ 183 F(Math_atan2, 2, 1) \
190 F(RoundNumber, 1, 1) \ 184 F(RoundNumber, 1, 1) \
191 F(Math_fround, 1, 1) \ 185 F(Math_fround, 1, 1) \
192 \ 186 \
193 /* Regular expressions */ \ 187 /* Regular expressions */ \
194 F(RegExpCompile, 3, 1) \ 188 F(RegExpCompile, 3, 1) \
195 F(RegExpExec, 4, 1) \
196 F(RegExpExecMultiple, 4, 1) \ 189 F(RegExpExecMultiple, 4, 1) \
197 F(RegExpInitializeObject, 5, 1) \ 190 F(RegExpInitializeObject, 5, 1) \
198 F(RegExpConstructResult, 3, 1) \
199 \ 191 \
200 /* JSON */ \ 192 /* JSON */ \
201 F(ParseJson, 1, 1) \ 193 F(ParseJson, 1, 1) \
202 F(BasicJSONStringify, 1, 1) \ 194 F(BasicJSONStringify, 1, 1) \
203 F(QuoteJSONString, 1, 1) \ 195 F(QuoteJSONString, 1, 1) \
204 \ 196 \
205 /* Strings */ \ 197 /* Strings */ \
206 F(StringCharCodeAt, 2, 1) \
207 F(StringIndexOf, 3, 1) \ 198 F(StringIndexOf, 3, 1) \
208 F(StringLastIndexOf, 3, 1) \ 199 F(StringLastIndexOf, 3, 1) \
209 F(StringLocaleCompare, 2, 1) \ 200 F(StringLocaleCompare, 2, 1) \
210 F(SubString, 3, 1) \
211 F(StringReplaceGlobalRegExpWithString, 4, 1) \ 201 F(StringReplaceGlobalRegExpWithString, 4, 1) \
212 F(StringReplaceOneCharWithString, 3, 1) \ 202 F(StringReplaceOneCharWithString, 3, 1) \
213 F(StringMatch, 3, 1) \ 203 F(StringMatch, 3, 1) \
214 F(StringTrim, 3, 1) \ 204 F(StringTrim, 3, 1) \
215 F(StringToArray, 2, 1) \ 205 F(StringToArray, 2, 1) \
216 F(NewStringWrapper, 1, 1) \ 206 F(NewStringWrapper, 1, 1) \
217 F(NewString, 2, 1) \ 207 F(NewString, 2, 1) \
218 F(TruncateString, 2, 1) \ 208 F(TruncateString, 2, 1) \
219 \ 209 \
220 /* Numbers */ \ 210 /* Numbers */ \
(...skipping 22 matching lines...) Expand all
243 F(FunctionGetScript, 1, 1) \ 233 F(FunctionGetScript, 1, 1) \
244 F(FunctionGetScriptSourcePosition, 1, 1) \ 234 F(FunctionGetScriptSourcePosition, 1, 1) \
245 F(FunctionGetPositionForOffset, 2, 1) \ 235 F(FunctionGetPositionForOffset, 2, 1) \
246 F(FunctionIsAPIFunction, 1, 1) \ 236 F(FunctionIsAPIFunction, 1, 1) \
247 F(FunctionIsBuiltin, 1, 1) \ 237 F(FunctionIsBuiltin, 1, 1) \
248 F(GetScript, 1, 1) \ 238 F(GetScript, 1, 1) \
249 F(CollectStackTrace, 3, 1) \ 239 F(CollectStackTrace, 3, 1) \
250 F(GetAndClearOverflowedStackTrace, 1, 1) \ 240 F(GetAndClearOverflowedStackTrace, 1, 1) \
251 F(GetV8Version, 0, 1) \ 241 F(GetV8Version, 0, 1) \
252 \ 242 \
253 F(ClassOf, 1, 1) \
254 F(SetCode, 2, 1) \ 243 F(SetCode, 2, 1) \
255 F(SetExpectedNumberOfProperties, 2, 1) \ 244 F(SetExpectedNumberOfProperties, 2, 1) \
256 \ 245 \
257 F(CreateApiFunction, 1, 1) \ 246 F(CreateApiFunction, 1, 1) \
258 F(IsTemplate, 1, 1) \ 247 F(IsTemplate, 1, 1) \
259 F(GetTemplateField, 2, 1) \ 248 F(GetTemplateField, 2, 1) \
260 F(DisableAccessChecks, 1, 1) \ 249 F(DisableAccessChecks, 1, 1) \
261 F(EnableAccessChecks, 1, 1) \ 250 F(EnableAccessChecks, 1, 1) \
262 F(SetAccessorProperty, 6, 1) \ 251 F(SetAccessorProperty, 6, 1) \
263 \ 252 \
264 /* Dates */ \ 253 /* Dates */ \
265 F(DateCurrentTime, 0, 1) \ 254 F(DateCurrentTime, 0, 1) \
266 F(DateParseString, 2, 1) \ 255 F(DateParseString, 2, 1) \
267 F(DateLocalTimezone, 1, 1) \ 256 F(DateLocalTimezone, 1, 1) \
268 F(DateToUTC, 1, 1) \ 257 F(DateToUTC, 1, 1) \
269 F(DateMakeDay, 2, 1) \ 258 F(DateMakeDay, 2, 1) \
270 F(DateSetValue, 3, 1) \ 259 F(DateSetValue, 3, 1) \
260 F(DateCacheVersion, 0, 1) \
271 \ 261 \
272 /* Numbers */ \ 262 /* Numbers */ \
273 \ 263 \
274 /* Globals */ \ 264 /* Globals */ \
275 F(CompileString, 2, 1) \ 265 F(CompileString, 2, 1) \
276 F(GlobalPrint, 1, 1) \ 266 F(GlobalPrint, 1, 1) \
277 \ 267 \
278 /* Eval */ \ 268 /* Eval */ \
279 F(GlobalReceiver, 1, 1) \ 269 F(GlobalReceiver, 1, 1) \
280 F(IsAttachedGlobal, 1, 1) \ 270 F(IsAttachedGlobal, 1, 1) \
281 F(ResolvePossiblyDirectEval, 5, 2) \ 271 F(ResolvePossiblyDirectEval, 5, 2) \
282 \ 272 \
283 F(SetProperty, -1 /* 4 or 5 */, 1) \ 273 F(SetProperty, -1 /* 4 or 5 */, 1) \
284 F(DefineOrRedefineDataProperty, 4, 1) \ 274 F(DefineOrRedefineDataProperty, 4, 1) \
285 F(DefineOrRedefineAccessorProperty, 5, 1) \ 275 F(DefineOrRedefineAccessorProperty, 5, 1) \
286 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \ 276 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \
287 F(GetDataProperty, 2, 1) \ 277 F(GetDataProperty, 2, 1) \
278 F(SetHiddenProperty, 3, 1) \
288 \ 279 \
289 /* Arrays */ \ 280 /* Arrays */ \
290 F(RemoveArrayHoles, 2, 1) \ 281 F(RemoveArrayHoles, 2, 1) \
291 F(GetArrayKeys, 2, 1) \ 282 F(GetArrayKeys, 2, 1) \
292 F(MoveArrayContents, 2, 1) \ 283 F(MoveArrayContents, 2, 1) \
293 F(EstimateNumberOfElements, 1, 1) \ 284 F(EstimateNumberOfElements, 1, 1) \
294 F(ArrayConstructor, -1, 1) \ 285 F(ArrayConstructor, -1, 1) \
295 F(InternalArrayConstructor, -1, 1) \ 286 F(InternalArrayConstructor, -1, 1) \
296 \ 287 \
297 /* Getters and Setters */ \ 288 /* Getters and Setters */ \
298 F(LookupAccessor, 3, 1) \ 289 F(LookupAccessor, 3, 1) \
299 \ 290 \
300 /* Literals */ \ 291 /* Literals */ \
301 F(MaterializeRegExpLiteral, 4, 1)\ 292 F(MaterializeRegExpLiteral, 4, 1)\
302 F(CreateObjectLiteral, 4, 1) \ 293 F(CreateObjectLiteral, 4, 1) \
303 F(CreateArrayLiteral, 4, 1) \ 294 F(CreateArrayLiteral, 4, 1) \
304 F(CreateArrayLiteralStubBailout, 3, 1) \ 295 F(CreateArrayLiteralStubBailout, 3, 1) \
305 \ 296 \
306 /* Harmony generators */ \ 297 /* Harmony generators */ \
307 F(CreateJSGeneratorObject, 0, 1) \ 298 F(CreateJSGeneratorObject, 0, 1) \
308 F(SuspendJSGeneratorObject, 1, 1) \ 299 F(SuspendJSGeneratorObject, 1, 1) \
309 F(ResumeJSGeneratorObject, 3, 1) \ 300 F(ResumeJSGeneratorObject, 3, 1) \
310 F(ThrowGeneratorStateError, 1, 1) \ 301 F(ThrowGeneratorStateError, 1, 1) \
311 \ 302 \
312 /* ES5 */ \ 303 /* ES5 */ \
313 F(ObjectFreeze, 1, 1) \ 304 F(ObjectFreeze, 1, 1) \
314 \ 305 \
315 /* Harmony Microtasks */ \ 306 /* Harmony microtasks */ \
316 F(GetMicrotaskState, 0, 1) \ 307 F(GetMicrotaskState, 0, 1) \
317 \ 308 \
318 /* Harmony modules */ \ 309 /* Harmony modules */ \
319 F(IsJSModule, 1, 1) \ 310 F(IsJSModule, 1, 1) \
320 \ 311 \
321 /* Harmony symbols */ \ 312 /* Harmony symbols */ \
322 F(CreateSymbol, 1, 1) \ 313 F(CreateSymbol, 1, 1) \
323 F(CreatePrivateSymbol, 1, 1) \ 314 F(CreatePrivateSymbol, 1, 1) \
324 F(NewSymbolWrapper, 1, 1) \ 315 F(NewSymbolWrapper, 1, 1) \
325 F(SymbolDescription, 1, 1) \ 316 F(SymbolDescription, 1, 1) \
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 F(InitializeConstContextSlot, 3, 1) \ 432 F(InitializeConstContextSlot, 3, 1) \
442 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ 433 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \
443 \ 434 \
444 /* Debugging */ \ 435 /* Debugging */ \
445 F(DebugPrint, 1, 1) \ 436 F(DebugPrint, 1, 1) \
446 F(DebugTrace, 0, 1) \ 437 F(DebugTrace, 0, 1) \
447 F(TraceEnter, 0, 1) \ 438 F(TraceEnter, 0, 1) \
448 F(TraceExit, 1, 1) \ 439 F(TraceExit, 1, 1) \
449 F(Abort, 1, 1) \ 440 F(Abort, 1, 1) \
450 F(AbortJS, 1, 1) \ 441 F(AbortJS, 1, 1) \
451 /* Logging */ \
452 F(Log, 2, 1) \
453 /* ES5 */ \ 442 /* ES5 */ \
454 F(LocalKeys, 1, 1) \ 443 F(LocalKeys, 1, 1) \
455 /* Cache suport */ \
456 F(GetFromCache, 2, 1) \
457 \ 444 \
458 /* Message objects */ \ 445 /* Message objects */ \
459 F(MessageGetStartPosition, 1, 1) \ 446 F(MessageGetStartPosition, 1, 1) \
460 F(MessageGetScript, 1, 1) \ 447 F(MessageGetScript, 1, 1) \
461 \ 448 \
462 /* Pseudo functions - handled as macros by parser */ \ 449 /* Pseudo functions - handled as macros by parser */ \
463 F(IS_VAR, 1, 1) \ 450 F(IS_VAR, 1, 1) \
464 \ 451 \
465 /* expose boolean functions from objects-inl.h */ \ 452 /* expose boolean functions from objects-inl.h */ \
466 F(HasFastSmiElements, 1, 1) \ 453 F(HasFastSmiElements, 1, 1) \
467 F(HasFastSmiOrObjectElements, 1, 1) \ 454 F(HasFastSmiOrObjectElements, 1, 1) \
468 F(HasFastObjectElements, 1, 1) \ 455 F(HasFastObjectElements, 1, 1) \
469 F(HasFastDoubleElements, 1, 1) \ 456 F(HasFastDoubleElements, 1, 1) \
470 F(HasFastHoleyElements, 1, 1) \ 457 F(HasFastHoleyElements, 1, 1) \
471 F(HasDictionaryElements, 1, 1) \ 458 F(HasDictionaryElements, 1, 1) \
472 F(HasNonStrictArgumentsElements, 1, 1) \ 459 F(HasSloppyArgumentsElements, 1, 1) \
473 F(HasExternalUint8ClampedElements, 1, 1) \ 460 F(HasExternalUint8ClampedElements, 1, 1) \
474 F(HasExternalArrayElements, 1, 1) \ 461 F(HasExternalArrayElements, 1, 1) \
475 F(HasExternalInt8Elements, 1, 1) \ 462 F(HasExternalInt8Elements, 1, 1) \
476 F(HasExternalUint8Elements, 1, 1) \ 463 F(HasExternalUint8Elements, 1, 1) \
477 F(HasExternalInt16Elements, 1, 1) \ 464 F(HasExternalInt16Elements, 1, 1) \
478 F(HasExternalUint16Elements, 1, 1) \ 465 F(HasExternalUint16Elements, 1, 1) \
479 F(HasExternalInt32Elements, 1, 1) \ 466 F(HasExternalInt32Elements, 1, 1) \
480 F(HasExternalUint32Elements, 1, 1) \ 467 F(HasExternalUint32Elements, 1, 1) \
481 F(HasExternalFloat32Elements, 1, 1) \ 468 F(HasExternalFloat32Elements, 1, 1) \
482 F(HasExternalFloat64Elements, 1, 1) \ 469 F(HasExternalFloat64Elements, 1, 1) \
(...skipping 15 matching lines...) Expand all
498 F(DebugPropertyAttributesFromDetails, 1, 1) \ 485 F(DebugPropertyAttributesFromDetails, 1, 1) \
499 F(DebugPropertyIndexFromDetails, 1, 1) \ 486 F(DebugPropertyIndexFromDetails, 1, 1) \
500 F(DebugNamedInterceptorPropertyValue, 2, 1) \ 487 F(DebugNamedInterceptorPropertyValue, 2, 1) \
501 F(DebugIndexedInterceptorElementValue, 2, 1) \ 488 F(DebugIndexedInterceptorElementValue, 2, 1) \
502 F(CheckExecutionState, 1, 1) \ 489 F(CheckExecutionState, 1, 1) \
503 F(GetFrameCount, 1, 1) \ 490 F(GetFrameCount, 1, 1) \
504 F(GetFrameDetails, 2, 1) \ 491 F(GetFrameDetails, 2, 1) \
505 F(GetScopeCount, 2, 1) \ 492 F(GetScopeCount, 2, 1) \
506 F(GetStepInPositions, 2, 1) \ 493 F(GetStepInPositions, 2, 1) \
507 F(GetScopeDetails, 4, 1) \ 494 F(GetScopeDetails, 4, 1) \
495 F(GetAllScopesDetails, 3, 1) \
508 F(GetFunctionScopeCount, 1, 1) \ 496 F(GetFunctionScopeCount, 1, 1) \
509 F(GetFunctionScopeDetails, 2, 1) \ 497 F(GetFunctionScopeDetails, 2, 1) \
510 F(SetScopeVariableValue, 6, 1) \ 498 F(SetScopeVariableValue, 6, 1) \
511 F(DebugPrintScopes, 0, 1) \ 499 F(DebugPrintScopes, 0, 1) \
512 F(GetThreadCount, 1, 1) \ 500 F(GetThreadCount, 1, 1) \
513 F(GetThreadDetails, 2, 1) \ 501 F(GetThreadDetails, 2, 1) \
514 F(SetDisableBreak, 1, 1) \ 502 F(SetDisableBreak, 1, 1) \
515 F(GetBreakLocations, 2, 1) \ 503 F(GetBreakLocations, 2, 1) \
516 F(SetFunctionBreakPoint, 3, 1) \ 504 F(SetFunctionBreakPoint, 3, 1) \
517 F(SetScriptBreakPoint, 4, 1) \ 505 F(SetScriptBreakPoint, 4, 1) \
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 // ---------------------------------------------------------------------------- 592 // ----------------------------------------------------------------------------
605 // RUNTIME_FUNCTION_LIST defines all runtime functions accessed 593 // RUNTIME_FUNCTION_LIST defines all runtime functions accessed
606 // either directly by id (via the code generator), or indirectly 594 // either directly by id (via the code generator), or indirectly
607 // via a native call by name (from within JS code). 595 // via a native call by name (from within JS code).
608 596
609 #define RUNTIME_FUNCTION_LIST(F) \ 597 #define RUNTIME_FUNCTION_LIST(F) \
610 RUNTIME_FUNCTION_LIST_ALWAYS_1(F) \ 598 RUNTIME_FUNCTION_LIST_ALWAYS_1(F) \
611 RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ 599 RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \
612 RUNTIME_FUNCTION_LIST_DEBUG(F) \ 600 RUNTIME_FUNCTION_LIST_DEBUG(F) \
613 RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) \ 601 RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) \
614 RUNTIME_FUNCTION_LIST_I18N_SUPPORT(F) 602 RUNTIME_FUNCTION_LIST_I18N_SUPPORT(F) \
603 INLINE_RUNTIME_FUNCTION_LIST(F)
615 604
616 // ---------------------------------------------------------------------------- 605 // ----------------------------------------------------------------------------
617 // INLINE_FUNCTION_LIST defines all inlined functions accessed 606 // INLINE_FUNCTION_LIST defines all inlined functions accessed
618 // with a native call of the form %_name from within JS code. 607 // with a native call of the form %_name from within JS code.
619 // Entries have the form F(name, number of arguments, number of return values). 608 // Entries have the form F(name, number of arguments, number of return values).
620 #define INLINE_FUNCTION_LIST(F) \ 609 #define INLINE_FUNCTION_LIST(F) \
621 F(IsSmi, 1, 1) \ 610 F(IsSmi, 1, 1) \
622 F(IsNonNegativeSmi, 1, 1) \ 611 F(IsNonNegativeSmi, 1, 1) \
623 F(IsArray, 1, 1) \ 612 F(IsArray, 1, 1) \
624 F(IsRegExp, 1, 1) \ 613 F(IsRegExp, 1, 1) \
(...skipping 16 matching lines...) Expand all
641 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ 630 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \
642 F(MathPow, 2, 1) \ 631 F(MathPow, 2, 1) \
643 F(MathSqrt, 1, 1) \ 632 F(MathSqrt, 1, 1) \
644 F(MathLog, 1, 1) \ 633 F(MathLog, 1, 1) \
645 F(IsMinusZero, 1, 1) \ 634 F(IsMinusZero, 1, 1) \
646 F(HasCachedArrayIndex, 1, 1) \ 635 F(HasCachedArrayIndex, 1, 1) \
647 F(GetCachedArrayIndex, 1, 1) \ 636 F(GetCachedArrayIndex, 1, 1) \
648 F(FastAsciiArrayJoin, 2, 1) \ 637 F(FastAsciiArrayJoin, 2, 1) \
649 F(GeneratorNext, 2, 1) \ 638 F(GeneratorNext, 2, 1) \
650 F(GeneratorThrow, 2, 1) \ 639 F(GeneratorThrow, 2, 1) \
651 F(DebugBreakInOptimizedCode, 0, 1) 640 F(DebugBreakInOptimizedCode, 0, 1) \
641 INLINE_RUNTIME_FUNCTION_LIST(F)
652 642
653 643
654 // ---------------------------------------------------------------------------- 644 // ----------------------------------------------------------------------------
655 // INLINE_RUNTIME_FUNCTION_LIST defines all inlined functions accessed 645 // INLINE_RUNTIME_FUNCTION_LIST defines all inlined functions accessed
656 // with a native call of the form %_name from within JS code that also have 646 // with a native call of the form %_name from within JS code that also have
657 // a corresponding runtime function, that is called for slow cases. 647 // a corresponding runtime function, that is called for slow cases.
658 // Entries have the form F(name, number of arguments, number of return values). 648 // Entries have the form F(name, number of arguments, number of return values).
659 #define INLINE_RUNTIME_FUNCTION_LIST(F) \ 649 #define INLINE_RUNTIME_FUNCTION_LIST(F) \
660 F(ClassOf, 1, 1) \ 650 F(ClassOf, 1, 1) \
661 F(StringCharCodeAt, 2, 1) \ 651 F(StringCharCodeAt, 2, 1) \
662 F(Log, 3, 1) \ 652 F(Log, 3, 1) \
663 F(StringAdd, 2, 1) \ 653 F(StringAdd, 2, 1) \
664 F(SubString, 3, 1) \ 654 F(SubString, 3, 1) \
665 F(StringCompare, 2, 1) \ 655 F(StringCompare, 2, 1) \
666 F(RegExpExec, 4, 1) \ 656 F(RegExpExec, 4, 1) \
667 F(RegExpConstructResult, 3, 1) \ 657 F(RegExpConstructResult, 3, 1) \
668 F(GetFromCache, 2, 1) \ 658 F(GetFromCache, 2, 1) \
669 F(NumberToString, 1, 1) 659 F(NumberToString, 1, 1) \
660 F(DoubleHi, 1, 1) \
661 F(DoubleLo, 1, 1) \
662 F(ConstructDouble, 2, 1)
670 663
671 664
672 //--------------------------------------------------------------------------- 665 //---------------------------------------------------------------------------
673 // Runtime provides access to all C++ runtime functions. 666 // Runtime provides access to all C++ runtime functions.
674 667
675 class RuntimeState { 668 class RuntimeState {
676 public: 669 public:
677 StaticResource<ConsStringIteratorOp>* string_iterator() { 670 StaticResource<ConsStringIteratorOp>* string_iterator() {
678 return &string_iterator_; 671 return &string_iterator_;
679 } 672 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 708
716 709
717 class Runtime : public AllStatic { 710 class Runtime : public AllStatic {
718 public: 711 public:
719 enum FunctionId { 712 enum FunctionId {
720 #define F(name, nargs, ressize) k##name, 713 #define F(name, nargs, ressize) k##name,
721 RUNTIME_FUNCTION_LIST(F) 714 RUNTIME_FUNCTION_LIST(F)
722 #undef F 715 #undef F
723 #define F(name, nargs, ressize) kInline##name, 716 #define F(name, nargs, ressize) kInline##name,
724 INLINE_FUNCTION_LIST(F) 717 INLINE_FUNCTION_LIST(F)
725 INLINE_RUNTIME_FUNCTION_LIST(F)
726 #undef F 718 #undef F
727 kNumFunctions, 719 kNumFunctions,
728 kFirstInlineFunction = kInlineIsSmi 720 kFirstInlineFunction = kInlineIsSmi
729 }; 721 };
730 722
731 enum IntrinsicType { 723 enum IntrinsicType {
732 RUNTIME, 724 RUNTIME,
733 INLINE 725 INLINE
734 }; 726 };
735 727
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 Isolate* isolate, 779 Isolate* isolate,
788 Handle<Object> object, 780 Handle<Object> object,
789 uint32_t index); 781 uint32_t index);
790 782
791 static Handle<Object> SetObjectProperty( 783 static Handle<Object> SetObjectProperty(
792 Isolate* isolate, 784 Isolate* isolate,
793 Handle<Object> object, 785 Handle<Object> object,
794 Handle<Object> key, 786 Handle<Object> key,
795 Handle<Object> value, 787 Handle<Object> value,
796 PropertyAttributes attr, 788 PropertyAttributes attr,
797 StrictModeFlag strict_mode); 789 StrictMode strict_mode);
798 790
799 static Handle<Object> ForceSetObjectProperty( 791 static Handle<Object> ForceSetObjectProperty(
800 Isolate* isolate, 792 Isolate* isolate,
801 Handle<JSObject> object, 793 Handle<JSObject> object,
802 Handle<Object> key, 794 Handle<Object> key,
803 Handle<Object> value, 795 Handle<Object> value,
804 PropertyAttributes attr); 796 PropertyAttributes attr);
805 797
806 MUST_USE_RESULT static MaybeObject* DeleteObjectProperty( 798 MUST_USE_RESULT static MaybeObject* DeleteObjectProperty(
807 Isolate* isolate, 799 Isolate* isolate,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 static Handle<Object> CreateArrayLiteralBoilerplate( 855 static Handle<Object> CreateArrayLiteralBoilerplate(
864 Isolate* isolate, 856 Isolate* isolate,
865 Handle<FixedArray> literals, 857 Handle<FixedArray> literals,
866 Handle<FixedArray> elements); 858 Handle<FixedArray> elements);
867 }; 859 };
868 860
869 861
870 //--------------------------------------------------------------------------- 862 //---------------------------------------------------------------------------
871 // Constants used by interface to runtime functions. 863 // Constants used by interface to runtime functions.
872 864
873 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; 865 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {};
874 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; 866 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {};
875 867
876 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 868 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
877 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 869 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
878 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 870 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {};
879 871
880 } } // namespace v8::internal 872 } } // namespace v8::internal
881 873
882 #endif // V8_RUNTIME_H_ 874 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/property-details-inl.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698