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

Side by Side Diff: src/runtime.h

Issue 379893002: Clean up and update const / var (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 6 years, 5 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/parser.cc ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_RUNTIME_H_ 5 #ifndef V8_RUNTIME_H_
6 #define V8_RUNTIME_H_ 6 #define V8_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/zone.h" 9 #include "src/zone.h"
10 10
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 F(TruncateString, 2, 1) \ 170 F(TruncateString, 2, 1) \
171 \ 171 \
172 /* Numbers */ \ 172 /* Numbers */ \
173 F(NumberToRadixString, 2, 1) \ 173 F(NumberToRadixString, 2, 1) \
174 F(NumberToFixed, 2, 1) \ 174 F(NumberToFixed, 2, 1) \
175 F(NumberToExponential, 2, 1) \ 175 F(NumberToExponential, 2, 1) \
176 F(NumberToPrecision, 2, 1) \ 176 F(NumberToPrecision, 2, 1) \
177 F(IsValidSmi, 1, 1) 177 F(IsValidSmi, 1, 1)
178 178
179 179
180 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ 180 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \
181 /* Reflection */ \ 181 /* Reflection */ \
182 F(FunctionSetInstanceClassName, 2, 1) \ 182 F(FunctionSetInstanceClassName, 2, 1) \
183 F(FunctionSetLength, 2, 1) \ 183 F(FunctionSetLength, 2, 1) \
184 F(FunctionSetPrototype, 2, 1) \ 184 F(FunctionSetPrototype, 2, 1) \
185 F(FunctionGetName, 1, 1) \ 185 F(FunctionGetName, 1, 1) \
186 F(FunctionSetName, 2, 1) \ 186 F(FunctionSetName, 2, 1) \
187 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ 187 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \
188 F(FunctionMarkNameShouldPrintAsAnonymous, 1, 1) \ 188 F(FunctionMarkNameShouldPrintAsAnonymous, 1, 1) \
189 F(FunctionIsGenerator, 1, 1) \ 189 F(FunctionIsGenerator, 1, 1) \
190 F(FunctionBindArguments, 4, 1) \ 190 F(FunctionBindArguments, 4, 1) \
191 F(BoundFunctionGetBindings, 1, 1) \ 191 F(BoundFunctionGetBindings, 1, 1) \
192 F(FunctionRemovePrototype, 1, 1) \ 192 F(FunctionRemovePrototype, 1, 1) \
193 F(FunctionGetSourceCode, 1, 1) \ 193 F(FunctionGetSourceCode, 1, 1) \
194 F(FunctionGetScript, 1, 1) \ 194 F(FunctionGetScript, 1, 1) \
195 F(FunctionGetScriptSourcePosition, 1, 1) \ 195 F(FunctionGetScriptSourcePosition, 1, 1) \
196 F(FunctionGetPositionForOffset, 2, 1) \ 196 F(FunctionGetPositionForOffset, 2, 1) \
197 F(FunctionIsAPIFunction, 1, 1) \ 197 F(FunctionIsAPIFunction, 1, 1) \
198 F(FunctionIsBuiltin, 1, 1) \ 198 F(FunctionIsBuiltin, 1, 1) \
199 F(GetScript, 1, 1) \ 199 F(GetScript, 1, 1) \
200 F(CollectStackTrace, 2, 1) \ 200 F(CollectStackTrace, 2, 1) \
201 F(GetV8Version, 0, 1) \ 201 F(GetV8Version, 0, 1) \
202 \ 202 \
203 F(SetCode, 2, 1) \ 203 F(SetCode, 2, 1) \
204 \ 204 \
205 F(CreateApiFunction, 2, 1) \ 205 F(CreateApiFunction, 2, 1) \
206 F(IsTemplate, 1, 1) \ 206 F(IsTemplate, 1, 1) \
207 F(GetTemplateField, 2, 1) \ 207 F(GetTemplateField, 2, 1) \
208 F(DisableAccessChecks, 1, 1) \ 208 F(DisableAccessChecks, 1, 1) \
209 F(EnableAccessChecks, 1, 1) \ 209 F(EnableAccessChecks, 1, 1) \
210 \ 210 \
211 /* Dates */ \ 211 /* Dates */ \
212 F(DateCurrentTime, 0, 1) \ 212 F(DateCurrentTime, 0, 1) \
213 F(DateParseString, 2, 1) \ 213 F(DateParseString, 2, 1) \
214 F(DateLocalTimezone, 1, 1) \ 214 F(DateLocalTimezone, 1, 1) \
215 F(DateToUTC, 1, 1) \ 215 F(DateToUTC, 1, 1) \
216 F(DateMakeDay, 2, 1) \ 216 F(DateMakeDay, 2, 1) \
217 F(DateSetValue, 3, 1) \ 217 F(DateSetValue, 3, 1) \
218 F(DateCacheVersion, 0, 1) \ 218 F(DateCacheVersion, 0, 1) \
219 \ 219 \
220 /* Globals */ \ 220 /* Globals */ \
221 F(CompileString, 2, 1) \ 221 F(CompileString, 2, 1) \
222 \ 222 \
223 /* Eval */ \ 223 /* Eval */ \
224 F(GlobalProxy, 1, 1) \ 224 F(GlobalProxy, 1, 1) \
225 F(IsAttachedGlobal, 1, 1) \ 225 F(IsAttachedGlobal, 1, 1) \
226 \ 226 \
227 F(AddProperty, 4, 1) \ 227 F(AddProperty, 4, 1) \
228 F(AddPropertyForTemplate, 4, 1) \ 228 F(AddPropertyForTemplate, 4, 1) \
229 F(SetProperty, 4, 1) \ 229 F(SetProperty, 4, 1) \
230 F(DefineDataPropertyUnchecked, 4, 1) \ 230 F(DefineDataPropertyUnchecked, 4, 1) \
231 F(DefineAccessorPropertyUnchecked, 5, 1) \ 231 F(DefineAccessorPropertyUnchecked, 5, 1) \
232 F(GetDataProperty, 2, 1) \ 232 F(GetDataProperty, 2, 1) \
233 F(SetHiddenProperty, 3, 1) \ 233 F(SetHiddenProperty, 3, 1) \
234 \ 234 \
235 /* Arrays */ \ 235 /* Arrays */ \
236 F(RemoveArrayHoles, 2, 1) \ 236 F(RemoveArrayHoles, 2, 1) \
237 F(GetArrayKeys, 2, 1) \ 237 F(GetArrayKeys, 2, 1) \
238 F(MoveArrayContents, 2, 1) \ 238 F(MoveArrayContents, 2, 1) \
239 F(EstimateNumberOfElements, 1, 1) \ 239 F(EstimateNumberOfElements, 1, 1) \
240 \ 240 \
241 /* Getters and Setters */ \ 241 /* Getters and Setters */ \
242 F(LookupAccessor, 3, 1) \ 242 F(LookupAccessor, 3, 1) \
243 \ 243 \
244 /* ES5 */ \ 244 /* ES5 */ \
245 F(ObjectFreeze, 1, 1) \ 245 F(ObjectFreeze, 1, 1) \
246 \ 246 \
247 /* Harmony modules */ \ 247 /* Harmony modules */ \
248 F(IsJSModule, 1, 1) \ 248 F(IsJSModule, 1, 1) \
249 \ 249 \
250 /* Harmony symbols */ \ 250 /* Harmony symbols */ \
251 F(CreateSymbol, 1, 1) \ 251 F(CreateSymbol, 1, 1) \
252 F(CreatePrivateSymbol, 1, 1) \ 252 F(CreatePrivateSymbol, 1, 1) \
253 F(CreateGlobalPrivateSymbol, 1, 1) \ 253 F(CreateGlobalPrivateSymbol, 1, 1) \
254 F(NewSymbolWrapper, 1, 1) \ 254 F(NewSymbolWrapper, 1, 1) \
255 F(SymbolDescription, 1, 1) \ 255 F(SymbolDescription, 1, 1) \
256 F(SymbolRegistry, 0, 1) \ 256 F(SymbolRegistry, 0, 1) \
257 F(SymbolIsPrivate, 1, 1) \ 257 F(SymbolIsPrivate, 1, 1) \
258 \ 258 \
259 /* Harmony proxies */ \ 259 /* Harmony proxies */ \
260 F(CreateJSProxy, 2, 1) \ 260 F(CreateJSProxy, 2, 1) \
261 F(CreateJSFunctionProxy, 4, 1) \ 261 F(CreateJSFunctionProxy, 4, 1) \
262 F(IsJSProxy, 1, 1) \ 262 F(IsJSProxy, 1, 1) \
263 F(IsJSFunctionProxy, 1, 1) \ 263 F(IsJSFunctionProxy, 1, 1) \
264 F(GetHandler, 1, 1) \ 264 F(GetHandler, 1, 1) \
265 F(GetCallTrap, 1, 1) \ 265 F(GetCallTrap, 1, 1) \
266 F(GetConstructTrap, 1, 1) \ 266 F(GetConstructTrap, 1, 1) \
267 F(Fix, 1, 1) \ 267 F(Fix, 1, 1) \
268 \ 268 \
269 /* Harmony sets */ \ 269 /* Harmony sets */ \
270 F(SetInitialize, 1, 1) \ 270 F(SetInitialize, 1, 1) \
271 F(SetAdd, 2, 1) \ 271 F(SetAdd, 2, 1) \
272 F(SetHas, 2, 1) \ 272 F(SetHas, 2, 1) \
273 F(SetDelete, 2, 1) \ 273 F(SetDelete, 2, 1) \
274 F(SetClear, 1, 1) \ 274 F(SetClear, 1, 1) \
275 F(SetGetSize, 1, 1) \ 275 F(SetGetSize, 1, 1) \
276 \ 276 \
277 F(SetIteratorInitialize, 3, 1) \ 277 F(SetIteratorInitialize, 3, 1) \
278 F(SetIteratorNext, 2, 1) \ 278 F(SetIteratorNext, 2, 1) \
279 \ 279 \
280 /* Harmony maps */ \ 280 /* Harmony maps */ \
281 F(MapInitialize, 1, 1) \ 281 F(MapInitialize, 1, 1) \
282 F(MapGet, 2, 1) \ 282 F(MapGet, 2, 1) \
283 F(MapHas, 2, 1) \ 283 F(MapHas, 2, 1) \
284 F(MapDelete, 2, 1) \ 284 F(MapDelete, 2, 1) \
285 F(MapClear, 1, 1) \ 285 F(MapClear, 1, 1) \
286 F(MapSet, 3, 1) \ 286 F(MapSet, 3, 1) \
287 F(MapGetSize, 1, 1) \ 287 F(MapGetSize, 1, 1) \
288 \ 288 \
289 F(MapIteratorInitialize, 3, 1) \ 289 F(MapIteratorInitialize, 3, 1) \
290 F(MapIteratorNext, 2, 1) \ 290 F(MapIteratorNext, 2, 1) \
291 \ 291 \
292 /* Harmony weak maps and sets */ \ 292 /* Harmony weak maps and sets */ \
293 F(WeakCollectionInitialize, 1, 1) \ 293 F(WeakCollectionInitialize, 1, 1) \
294 F(WeakCollectionGet, 2, 1) \ 294 F(WeakCollectionGet, 2, 1) \
295 F(WeakCollectionHas, 2, 1) \ 295 F(WeakCollectionHas, 2, 1) \
296 F(WeakCollectionDelete, 2, 1) \ 296 F(WeakCollectionDelete, 2, 1) \
297 F(WeakCollectionSet, 3, 1) \ 297 F(WeakCollectionSet, 3, 1) \
298 \ 298 \
299 /* Harmony events */ \ 299 /* Harmony events */ \
300 F(EnqueueMicrotask, 1, 1) \ 300 F(EnqueueMicrotask, 1, 1) \
301 F(RunMicrotasks, 0, 1) \ 301 F(RunMicrotasks, 0, 1) \
302 \ 302 \
303 /* Harmony observe */ \ 303 /* Harmony observe */ \
304 F(IsObserved, 1, 1) \ 304 F(IsObserved, 1, 1) \
305 F(SetIsObserved, 1, 1) \ 305 F(SetIsObserved, 1, 1) \
306 F(GetObservationState, 0, 1) \ 306 F(GetObservationState, 0, 1) \
307 F(ObservationWeakMapCreate, 0, 1) \ 307 F(ObservationWeakMapCreate, 0, 1) \
308 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \ 308 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \
309 F(ObjectWasCreatedInCurrentOrigin, 1, 1) \ 309 F(ObjectWasCreatedInCurrentOrigin, 1, 1) \
310 F(GetObjectContextObjectObserve, 1, 1) \ 310 F(GetObjectContextObjectObserve, 1, 1) \
311 F(GetObjectContextObjectGetNotifier, 1, 1) \ 311 F(GetObjectContextObjectGetNotifier, 1, 1) \
312 F(GetObjectContextNotifierPerformChange, 1, 1) \ 312 F(GetObjectContextNotifierPerformChange, 1, 1) \
313 \ 313 \
314 /* Harmony typed arrays */ \ 314 /* Harmony typed arrays */ \
315 F(ArrayBufferInitialize, 2, 1)\ 315 F(ArrayBufferInitialize, 2, 1) \
316 F(ArrayBufferSliceImpl, 3, 1) \ 316 F(ArrayBufferSliceImpl, 3, 1) \
317 F(ArrayBufferIsView, 1, 1) \ 317 F(ArrayBufferIsView, 1, 1) \
318 F(ArrayBufferNeuter, 1, 1) \ 318 F(ArrayBufferNeuter, 1, 1) \
319 \ 319 \
320 F(TypedArrayInitializeFromArrayLike, 4, 1) \ 320 F(TypedArrayInitializeFromArrayLike, 4, 1) \
321 F(TypedArrayGetBuffer, 1, 1) \ 321 F(TypedArrayGetBuffer, 1, 1) \
322 F(TypedArraySetFastCases, 3, 1) \ 322 F(TypedArraySetFastCases, 3, 1) \
323 \ 323 \
324 F(DataViewGetBuffer, 1, 1) \ 324 F(DataViewGetBuffer, 1, 1) \
325 F(DataViewGetInt8, 3, 1) \ 325 F(DataViewGetInt8, 3, 1) \
326 F(DataViewGetUint8, 3, 1) \ 326 F(DataViewGetUint8, 3, 1) \
327 F(DataViewGetInt16, 3, 1) \ 327 F(DataViewGetInt16, 3, 1) \
328 F(DataViewGetUint16, 3, 1) \ 328 F(DataViewGetUint16, 3, 1) \
329 F(DataViewGetInt32, 3, 1) \ 329 F(DataViewGetInt32, 3, 1) \
330 F(DataViewGetUint32, 3, 1) \ 330 F(DataViewGetUint32, 3, 1) \
331 F(DataViewGetFloat32, 3, 1) \ 331 F(DataViewGetFloat32, 3, 1) \
332 F(DataViewGetFloat64, 3, 1) \ 332 F(DataViewGetFloat64, 3, 1) \
333 \ 333 \
334 F(DataViewSetInt8, 4, 1) \ 334 F(DataViewSetInt8, 4, 1) \
335 F(DataViewSetUint8, 4, 1) \ 335 F(DataViewSetUint8, 4, 1) \
336 F(DataViewSetInt16, 4, 1) \ 336 F(DataViewSetInt16, 4, 1) \
337 F(DataViewSetUint16, 4, 1) \ 337 F(DataViewSetUint16, 4, 1) \
338 F(DataViewSetInt32, 4, 1) \ 338 F(DataViewSetInt32, 4, 1) \
339 F(DataViewSetUint32, 4, 1) \ 339 F(DataViewSetUint32, 4, 1) \
340 F(DataViewSetFloat32, 4, 1) \ 340 F(DataViewSetFloat32, 4, 1) \
341 F(DataViewSetFloat64, 4, 1) \ 341 F(DataViewSetFloat64, 4, 1) \
342 \ 342 \
343 /* Statements */ \ 343 /* Statements */ \
344 F(NewObjectFromBound, 1, 1) \ 344 F(NewObjectFromBound, 1, 1) \
345 \ 345 \
346 /* Declarations and initialization */ \ 346 /* Declarations and initialization */ \
347 F(InitializeVarGlobal, -1 /* 2 or 3 */, 1) \ 347 F(InitializeVarGlobal, 3, 1) \
348 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ 348 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \
349 \ 349 \
350 /* Debugging */ \ 350 /* Debugging */ \
351 F(DebugPrint, 1, 1) \ 351 F(DebugPrint, 1, 1) \
352 F(GlobalPrint, 1, 1) \ 352 F(GlobalPrint, 1, 1) \
353 F(DebugTrace, 0, 1) \ 353 F(DebugTrace, 0, 1) \
354 F(TraceEnter, 0, 1) \ 354 F(TraceEnter, 0, 1) \
355 F(TraceExit, 1, 1) \ 355 F(TraceExit, 1, 1) \
356 F(Abort, 1, 1) \ 356 F(Abort, 1, 1) \
357 F(AbortJS, 1, 1) \ 357 F(AbortJS, 1, 1) \
358 /* ES5 */ \ 358 /* ES5 */ \
359 F(OwnKeys, 1, 1) \ 359 F(OwnKeys, 1, 1) \
360 \ 360 \
361 /* Message objects */ \ 361 /* Message objects */ \
362 F(MessageGetStartPosition, 1, 1) \ 362 F(MessageGetStartPosition, 1, 1) \
363 F(MessageGetScript, 1, 1) \ 363 F(MessageGetScript, 1, 1) \
364 \ 364 \
365 /* Pseudo functions - handled as macros by parser */ \ 365 /* Pseudo functions - handled as macros by parser */ \
366 F(IS_VAR, 1, 1) \ 366 F(IS_VAR, 1, 1) \
367 \ 367 \
368 /* expose boolean functions from objects-inl.h */ \ 368 /* expose boolean functions from objects-inl.h */ \
369 F(HasFastSmiElements, 1, 1) \ 369 F(HasFastSmiElements, 1, 1) \
370 F(HasFastSmiOrObjectElements, 1, 1) \ 370 F(HasFastSmiOrObjectElements, 1, 1) \
371 F(HasFastObjectElements, 1, 1) \ 371 F(HasFastObjectElements, 1, 1) \
372 F(HasFastDoubleElements, 1, 1) \ 372 F(HasFastDoubleElements, 1, 1) \
373 F(HasFastHoleyElements, 1, 1) \ 373 F(HasFastHoleyElements, 1, 1) \
374 F(HasDictionaryElements, 1, 1) \ 374 F(HasDictionaryElements, 1, 1) \
375 F(HasSloppyArgumentsElements, 1, 1) \ 375 F(HasSloppyArgumentsElements, 1, 1) \
376 F(HasExternalUint8ClampedElements, 1, 1) \ 376 F(HasExternalUint8ClampedElements, 1, 1) \
377 F(HasExternalArrayElements, 1, 1) \ 377 F(HasExternalArrayElements, 1, 1) \
378 F(HasExternalInt8Elements, 1, 1) \ 378 F(HasExternalInt8Elements, 1, 1) \
379 F(HasExternalUint8Elements, 1, 1) \ 379 F(HasExternalUint8Elements, 1, 1) \
380 F(HasExternalInt16Elements, 1, 1) \ 380 F(HasExternalInt16Elements, 1, 1) \
381 F(HasExternalUint16Elements, 1, 1) \ 381 F(HasExternalUint16Elements, 1, 1) \
382 F(HasExternalInt32Elements, 1, 1) \ 382 F(HasExternalInt32Elements, 1, 1) \
383 F(HasExternalUint32Elements, 1, 1) \ 383 F(HasExternalUint32Elements, 1, 1) \
384 F(HasExternalFloat32Elements, 1, 1) \ 384 F(HasExternalFloat32Elements, 1, 1) \
385 F(HasExternalFloat64Elements, 1, 1) \ 385 F(HasExternalFloat64Elements, 1, 1) \
386 F(HasFixedUint8ClampedElements, 1, 1) \ 386 F(HasFixedUint8ClampedElements, 1, 1) \
387 F(HasFixedInt8Elements, 1, 1) \ 387 F(HasFixedInt8Elements, 1, 1) \
388 F(HasFixedUint8Elements, 1, 1) \ 388 F(HasFixedUint8Elements, 1, 1) \
389 F(HasFixedInt16Elements, 1, 1) \ 389 F(HasFixedInt16Elements, 1, 1) \
390 F(HasFixedUint16Elements, 1, 1) \ 390 F(HasFixedUint16Elements, 1, 1) \
391 F(HasFixedInt32Elements, 1, 1) \ 391 F(HasFixedInt32Elements, 1, 1) \
392 F(HasFixedUint32Elements, 1, 1) \ 392 F(HasFixedUint32Elements, 1, 1) \
393 F(HasFixedFloat32Elements, 1, 1) \ 393 F(HasFixedFloat32Elements, 1, 1) \
394 F(HasFixedFloat64Elements, 1, 1) \ 394 F(HasFixedFloat64Elements, 1, 1) \
395 F(HasFastProperties, 1, 1) \ 395 F(HasFastProperties, 1, 1) \
396 F(TransitionElementsKind, 2, 1) \ 396 F(TransitionElementsKind, 2, 1) \
397 F(HaveSameMap, 2, 1) \ 397 F(HaveSameMap, 2, 1) \
398 F(IsJSGlobalProxy, 1, 1) 398 F(IsJSGlobalProxy, 1, 1)
399 399
400 400
401 #define RUNTIME_FUNCTION_LIST_ALWAYS_3(F) \ 401 #define RUNTIME_FUNCTION_LIST_ALWAYS_3(F) \
402 /* String and Regexp */ \ 402 /* String and Regexp */ \
403 F(NumberToStringRT, 1, 1) \ 403 F(NumberToStringRT, 1, 1) \
404 F(RegExpConstructResult, 3, 1) \ 404 F(RegExpConstructResult, 3, 1) \
405 F(RegExpExecRT, 4, 1) \ 405 F(RegExpExecRT, 4, 1) \
406 F(StringAdd, 2, 1) \ 406 F(StringAdd, 2, 1) \
407 F(SubString, 3, 1) \ 407 F(SubString, 3, 1) \
408 F(InternalizeString, 1, 1) \ 408 F(InternalizeString, 1, 1) \
409 F(StringCompare, 2, 1) \ 409 F(StringCompare, 2, 1) \
410 F(StringCharCodeAtRT, 2, 1) \ 410 F(StringCharCodeAtRT, 2, 1) \
411 F(GetFromCache, 2, 1) \ 411 F(GetFromCache, 2, 1) \
412 \ 412 \
413 /* Compilation */ \ 413 /* Compilation */ \
414 F(CompileUnoptimized, 1, 1) \ 414 F(CompileUnoptimized, 1, 1) \
415 F(CompileOptimized, 2, 1) \ 415 F(CompileOptimized, 2, 1) \
416 F(TryInstallOptimizedCode, 1, 1) \ 416 F(TryInstallOptimizedCode, 1, 1) \
417 F(NotifyDeoptimized, 1, 1) \ 417 F(NotifyDeoptimized, 1, 1) \
418 F(NotifyStubFailure, 0, 1) \ 418 F(NotifyStubFailure, 0, 1) \
419 \ 419 \
420 /* Utilities */ \ 420 /* Utilities */ \
421 F(AllocateInNewSpace, 1, 1) \ 421 F(AllocateInNewSpace, 1, 1) \
422 F(AllocateInTargetSpace, 2, 1) \ 422 F(AllocateInTargetSpace, 2, 1) \
423 F(AllocateHeapNumber, 0, 1) \ 423 F(AllocateHeapNumber, 0, 1) \
424 F(NumberToSmi, 1, 1) \ 424 F(NumberToSmi, 1, 1) \
425 F(NumberToStringSkipCache, 1, 1) \ 425 F(NumberToStringSkipCache, 1, 1) \
426 \ 426 \
427 F(NewSloppyArguments, 3, 1) \ 427 F(NewSloppyArguments, 3, 1) \
428 F(NewStrictArguments, 3, 1) \ 428 F(NewStrictArguments, 3, 1) \
429 \ 429 \
430 /* Harmony generators */ \ 430 /* Harmony generators */ \
431 F(CreateJSGeneratorObject, 0, 1) \ 431 F(CreateJSGeneratorObject, 0, 1) \
432 F(SuspendJSGeneratorObject, 1, 1) \ 432 F(SuspendJSGeneratorObject, 1, 1) \
433 F(ResumeJSGeneratorObject, 3, 1) \ 433 F(ResumeJSGeneratorObject, 3, 1) \
434 F(ThrowGeneratorStateError, 1, 1) \ 434 F(ThrowGeneratorStateError, 1, 1) \
435 \ 435 \
436 /* Arrays */ \ 436 /* Arrays */ \
437 F(ArrayConstructor, -1, 1) \ 437 F(ArrayConstructor, -1, 1) \
438 F(InternalArrayConstructor, -1, 1) \ 438 F(InternalArrayConstructor, -1, 1) \
439 \ 439 \
440 /* Literals */ \ 440 /* Literals */ \
441 F(MaterializeRegExpLiteral, 4, 1)\ 441 F(MaterializeRegExpLiteral, 4, 1) \
442 F(CreateObjectLiteral, 4, 1) \ 442 F(CreateObjectLiteral, 4, 1) \
443 F(CreateArrayLiteral, 4, 1) \ 443 F(CreateArrayLiteral, 4, 1) \
444 F(CreateArrayLiteralStubBailout, 3, 1) \ 444 F(CreateArrayLiteralStubBailout, 3, 1) \
445 \ 445 \
446 /* Statements */ \ 446 /* Statements */ \
447 F(NewClosure, 3, 1) \ 447 F(NewClosure, 3, 1) \
448 F(NewClosureFromStubFailure, 1, 1) \ 448 F(NewClosureFromStubFailure, 1, 1) \
449 F(NewObject, 1, 1) \ 449 F(NewObject, 1, 1) \
450 F(NewObjectWithAllocationSite, 2, 1) \ 450 F(NewObjectWithAllocationSite, 2, 1) \
451 F(FinalizeInstanceSize, 1, 1) \ 451 F(FinalizeInstanceSize, 1, 1) \
452 F(Throw, 1, 1) \ 452 F(Throw, 1, 1) \
453 F(ReThrow, 1, 1) \ 453 F(ReThrow, 1, 1) \
454 F(ThrowReferenceError, 1, 1) \ 454 F(ThrowReferenceError, 1, 1) \
455 F(ThrowNotDateError, 0, 1) \ 455 F(ThrowNotDateError, 0, 1) \
456 F(StackGuard, 0, 1) \ 456 F(StackGuard, 0, 1) \
457 F(Interrupt, 0, 1) \ 457 F(Interrupt, 0, 1) \
458 F(PromoteScheduledException, 0, 1) \ 458 F(PromoteScheduledException, 0, 1) \
459 \ 459 \
460 /* Contexts */ \ 460 /* Contexts */ \
461 F(NewGlobalContext, 2, 1) \ 461 F(NewGlobalContext, 2, 1) \
462 F(NewFunctionContext, 1, 1) \ 462 F(NewFunctionContext, 1, 1) \
463 F(PushWithContext, 2, 1) \ 463 F(PushWithContext, 2, 1) \
464 F(PushCatchContext, 3, 1) \ 464 F(PushCatchContext, 3, 1) \
465 F(PushBlockContext, 2, 1) \ 465 F(PushBlockContext, 2, 1) \
466 F(PushModuleContext, 2, 1) \ 466 F(PushModuleContext, 2, 1) \
467 F(DeleteContextSlot, 2, 1) \ 467 F(DeleteContextSlot, 2, 1) \
468 F(LoadContextSlot, 2, 2) \ 468 F(LoadContextSlot, 2, 2) \
469 F(LoadContextSlotNoReferenceError, 2, 2) \ 469 F(LoadContextSlotNoReferenceError, 2, 2) \
470 F(StoreContextSlot, 4, 1) \ 470 F(StoreLookupSlot, 4, 1) \
471 \ 471 \
472 /* Declarations and initialization */ \ 472 /* Declarations and initialization */ \
473 F(DeclareGlobals, 3, 1) \ 473 F(DeclareGlobals, 3, 1) \
474 F(DeclareModules, 1, 1) \ 474 F(DeclareModules, 1, 1) \
475 F(DeclareContextSlot, 4, 1) \ 475 F(DeclareLookupSlot, 4, 1) \
476 F(InitializeConstGlobal, 2, 1) \ 476 F(InitializeConstGlobal, 2, 1) \
477 F(InitializeConstContextSlot, 3, 1) \ 477 F(InitializeLegacyConstLookupSlot, 3, 1) \
478 \ 478 \
479 /* Eval */ \ 479 /* Eval */ \
480 F(ResolvePossiblyDirectEval, 5, 2) \ 480 F(ResolvePossiblyDirectEval, 5, 2) \
481 \ 481 \
482 /* Maths */ \ 482 /* Maths */ \
483 F(MathPowSlow, 2, 1) \ 483 F(MathPowSlow, 2, 1) \
484 F(MathPowRT, 2, 1) 484 F(MathPowRT, 2, 1)
485 485
486 486
487 #define RUNTIME_FUNCTION_LIST_DEBUGGER(F) \ 487 #define RUNTIME_FUNCTION_LIST_DEBUGGER(F) \
488 /* Debugger support*/ \ 488 /* Debugger support*/ \
489 F(DebugBreak, 0, 1) \ 489 F(DebugBreak, 0, 1) \
490 F(SetDebugEventListener, 2, 1) \ 490 F(SetDebugEventListener, 2, 1) \
491 F(Break, 0, 1) \ 491 F(Break, 0, 1) \
492 F(DebugGetPropertyDetails, 2, 1) \ 492 F(DebugGetPropertyDetails, 2, 1) \
493 F(DebugGetProperty, 2, 1) \ 493 F(DebugGetProperty, 2, 1) \
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; 890 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {};
891 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; 891 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {};
892 892
893 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 893 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
894 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 894 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
895 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; 895 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {};
896 896
897 } } // namespace v8::internal 897 } } // namespace v8::internal
898 898
899 #endif // V8_RUNTIME_H_ 899 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698