| OLD | NEW |
| 1 // Copyright 2010 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 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 \ | 235 \ |
| 236 /* Globals */ \ | 236 /* Globals */ \ |
| 237 F(CompileString, 1, 1) \ | 237 F(CompileString, 1, 1) \ |
| 238 F(GlobalPrint, 1, 1) \ | 238 F(GlobalPrint, 1, 1) \ |
| 239 \ | 239 \ |
| 240 /* Eval */ \ | 240 /* Eval */ \ |
| 241 F(GlobalReceiver, 1, 1) \ | 241 F(GlobalReceiver, 1, 1) \ |
| 242 F(ResolvePossiblyDirectEval, 4, 2) \ | 242 F(ResolvePossiblyDirectEval, 4, 2) \ |
| 243 F(ResolvePossiblyDirectEvalNoLookup, 4, 2) \ | 243 F(ResolvePossiblyDirectEvalNoLookup, 4, 2) \ |
| 244 \ | 244 \ |
| 245 F(SetProperty, -1 /* 3 or 4 */, 1) \ | 245 F(SetProperty, -1 /* 4 or 5 */, 1) \ |
| 246 F(DefineOrRedefineDataProperty, 4, 1) \ | 246 F(DefineOrRedefineDataProperty, 4, 1) \ |
| 247 F(DefineOrRedefineAccessorProperty, 5, 1) \ | 247 F(DefineOrRedefineAccessorProperty, 5, 1) \ |
| 248 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \ | 248 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \ |
| 249 \ | 249 \ |
| 250 /* Arrays */ \ | 250 /* Arrays */ \ |
| 251 F(RemoveArrayHoles, 2, 1) \ | 251 F(RemoveArrayHoles, 2, 1) \ |
| 252 F(GetArrayKeys, 2, 1) \ | 252 F(GetArrayKeys, 2, 1) \ |
| 253 F(MoveArrayContents, 2, 1) \ | 253 F(MoveArrayContents, 2, 1) \ |
| 254 F(EstimateNumberOfElements, 1, 1) \ | 254 F(EstimateNumberOfElements, 1, 1) \ |
| 255 F(SwapElements, 3, 1) \ | 255 F(SwapElements, 3, 1) \ |
| (...skipping 26 matching lines...) Expand all Loading... |
| 282 F(StackGuard, 0, 1) \ | 282 F(StackGuard, 0, 1) \ |
| 283 F(PromoteScheduledException, 0, 1) \ | 283 F(PromoteScheduledException, 0, 1) \ |
| 284 \ | 284 \ |
| 285 /* Contexts */ \ | 285 /* Contexts */ \ |
| 286 F(NewContext, 1, 1) \ | 286 F(NewContext, 1, 1) \ |
| 287 F(PushContext, 1, 1) \ | 287 F(PushContext, 1, 1) \ |
| 288 F(PushCatchContext, 1, 1) \ | 288 F(PushCatchContext, 1, 1) \ |
| 289 F(DeleteContextSlot, 2, 1) \ | 289 F(DeleteContextSlot, 2, 1) \ |
| 290 F(LoadContextSlot, 2, 2) \ | 290 F(LoadContextSlot, 2, 2) \ |
| 291 F(LoadContextSlotNoReferenceError, 2, 2) \ | 291 F(LoadContextSlotNoReferenceError, 2, 2) \ |
| 292 F(StoreContextSlot, 3, 1) \ | 292 F(StoreContextSlot, 4, 1) \ |
| 293 \ | 293 \ |
| 294 /* Declarations and initialization */ \ | 294 /* Declarations and initialization */ \ |
| 295 F(DeclareGlobals, 3, 1) \ | 295 F(DeclareGlobals, 4, 1) \ |
| 296 F(DeclareContextSlot, 4, 1) \ | 296 F(DeclareContextSlot, 4, 1) \ |
| 297 F(InitializeVarGlobal, -1 /* 1 or 2 */, 1) \ | 297 F(InitializeVarGlobal, -1 /* 2 or 3 */, 1) \ |
| 298 F(InitializeConstGlobal, 2, 1) \ | 298 F(InitializeConstGlobal, 2, 1) \ |
| 299 F(InitializeConstContextSlot, 3, 1) \ | 299 F(InitializeConstContextSlot, 3, 1) \ |
| 300 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ | 300 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ |
| 301 \ | 301 \ |
| 302 /* Debugging */ \ | 302 /* Debugging */ \ |
| 303 F(DebugPrint, 1, 1) \ | 303 F(DebugPrint, 1, 1) \ |
| 304 F(DebugTrace, 0, 1) \ | 304 F(DebugTrace, 0, 1) \ |
| 305 F(TraceEnter, 0, 1) \ | 305 F(TraceEnter, 0, 1) \ |
| 306 F(TraceExit, 1, 1) \ | 306 F(TraceExit, 1, 1) \ |
| 307 F(Abort, 2, 1) \ | 307 F(Abort, 2, 1) \ |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 F(LiveEditFunctionSetScript, 2, 1) \ | 370 F(LiveEditFunctionSetScript, 2, 1) \ |
| 371 F(LiveEditReplaceRefToNestedFunction, 3, 1) \ | 371 F(LiveEditReplaceRefToNestedFunction, 3, 1) \ |
| 372 F(LiveEditPatchFunctionPositions, 2, 1) \ | 372 F(LiveEditPatchFunctionPositions, 2, 1) \ |
| 373 F(LiveEditCheckAndDropActivations, 2, 1) \ | 373 F(LiveEditCheckAndDropActivations, 2, 1) \ |
| 374 F(LiveEditCompareStrings, 2, 1) \ | 374 F(LiveEditCompareStrings, 2, 1) \ |
| 375 F(GetFunctionCodePositionFromSource, 2, 1) \ | 375 F(GetFunctionCodePositionFromSource, 2, 1) \ |
| 376 F(ExecuteInDebugContext, 2, 1) \ | 376 F(ExecuteInDebugContext, 2, 1) \ |
| 377 \ | 377 \ |
| 378 F(SetFlags, 1, 1) \ | 378 F(SetFlags, 1, 1) \ |
| 379 F(CollectGarbage, 1, 1) \ | 379 F(CollectGarbage, 1, 1) \ |
| 380 F(GetHeapUsage, 0, 1) | 380 F(GetHeapUsage, 0, 1) \ |
| 381 \ |
| 382 /* LiveObjectList support*/ \ |
| 383 F(HasLOLEnabled, 0, 1) \ |
| 384 F(CaptureLOL, 0, 1) \ |
| 385 F(DeleteLOL, 1, 1) \ |
| 386 F(DumpLOL, 5, 1) \ |
| 387 F(GetLOLObj, 1, 1) \ |
| 388 F(GetLOLObjId, 1, 1) \ |
| 389 F(GetLOLObjRetainers, 6, 1) \ |
| 390 F(GetLOLPath, 3, 1) \ |
| 391 F(InfoLOL, 2, 1) \ |
| 392 F(PrintLOLObj, 1, 1) \ |
| 393 F(ResetLOL, 0, 1) \ |
| 394 F(SummarizeLOL, 3, 1) |
| 381 | 395 |
| 382 #else | 396 #else |
| 383 #define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) | 397 #define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) |
| 384 #endif | 398 #endif |
| 385 | 399 |
| 386 #ifdef ENABLE_LOGGING_AND_PROFILING | 400 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 387 #define RUNTIME_FUNCTION_LIST_PROFILER_SUPPORT(F) \ | 401 #define RUNTIME_FUNCTION_LIST_PROFILER_SUPPORT(F) \ |
| 388 F(ProfilerResume, 2, 1) \ | 402 F(ProfilerResume, 2, 1) \ |
| 389 F(ProfilerPause, 2, 1) | 403 F(ProfilerPause, 2, 1) |
| 390 #else | 404 #else |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 // in Firefox/SpiderMonkey, Safari and Opera. | 546 // in Firefox/SpiderMonkey, Safari and Opera. |
| 533 MUST_USE_RESULT static MaybeObject* GetElementOrCharAt(Handle<Object> object, | 547 MUST_USE_RESULT static MaybeObject* GetElementOrCharAt(Handle<Object> object, |
| 534 uint32_t index); | 548 uint32_t index); |
| 535 MUST_USE_RESULT static MaybeObject* GetElement(Handle<Object> object, | 549 MUST_USE_RESULT static MaybeObject* GetElement(Handle<Object> object, |
| 536 uint32_t index); | 550 uint32_t index); |
| 537 | 551 |
| 538 MUST_USE_RESULT static MaybeObject* SetObjectProperty( | 552 MUST_USE_RESULT static MaybeObject* SetObjectProperty( |
| 539 Handle<Object> object, | 553 Handle<Object> object, |
| 540 Handle<Object> key, | 554 Handle<Object> key, |
| 541 Handle<Object> value, | 555 Handle<Object> value, |
| 542 PropertyAttributes attr); | 556 PropertyAttributes attr, |
| 557 StrictModeFlag strict_mode); |
| 543 | 558 |
| 544 MUST_USE_RESULT static MaybeObject* ForceSetObjectProperty( | 559 MUST_USE_RESULT static MaybeObject* ForceSetObjectProperty( |
| 545 Handle<JSObject> object, | 560 Handle<JSObject> object, |
| 546 Handle<Object> key, | 561 Handle<Object> key, |
| 547 Handle<Object> value, | 562 Handle<Object> value, |
| 548 PropertyAttributes attr); | 563 PropertyAttributes attr); |
| 549 | 564 |
| 550 MUST_USE_RESULT static MaybeObject* ForceDeleteObjectProperty( | 565 MUST_USE_RESULT static MaybeObject* ForceDeleteObjectProperty( |
| 551 Handle<JSObject> object, | 566 Handle<JSObject> object, |
| 552 Handle<Object> key); | 567 Handle<Object> key); |
| 553 | 568 |
| 554 MUST_USE_RESULT static MaybeObject* GetObjectProperty(Handle<Object> object, | 569 MUST_USE_RESULT static MaybeObject* GetObjectProperty(Handle<Object> object, |
| 555 Handle<Object> key); | 570 Handle<Object> key); |
| 556 | 571 |
| 557 // This function is used in FunctionNameUsing* tests. | 572 // This function is used in FunctionNameUsing* tests. |
| 558 static Object* FindSharedFunctionInfoInScript(Handle<Script> script, | 573 static Object* FindSharedFunctionInfoInScript(Handle<Script> script, |
| 559 int position); | 574 int position); |
| 560 | 575 |
| 561 // Helper functions used stubs. | 576 // Helper functions used stubs. |
| 562 static void PerformGC(Object* result); | 577 static void PerformGC(Object* result); |
| 563 }; | 578 }; |
| 564 | 579 |
| 565 | 580 |
| 566 } } // namespace v8::internal | 581 } } // namespace v8::internal |
| 567 | 582 |
| 568 #endif // V8_RUNTIME_H_ | 583 #endif // V8_RUNTIME_H_ |
| OLD | NEW |