| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 \ | 234 \ |
| 235 /* Globals */ \ | 235 /* Globals */ \ |
| 236 F(CompileString, 1, 1) \ | 236 F(CompileString, 1, 1) \ |
| 237 F(GlobalPrint, 1, 1) \ | 237 F(GlobalPrint, 1, 1) \ |
| 238 \ | 238 \ |
| 239 /* Eval */ \ | 239 /* Eval */ \ |
| 240 F(GlobalReceiver, 1, 1) \ | 240 F(GlobalReceiver, 1, 1) \ |
| 241 F(ResolvePossiblyDirectEval, 4, 2) \ | 241 F(ResolvePossiblyDirectEval, 4, 2) \ |
| 242 F(ResolvePossiblyDirectEvalNoLookup, 4, 2) \ | 242 F(ResolvePossiblyDirectEvalNoLookup, 4, 2) \ |
| 243 \ | 243 \ |
| 244 F(SetProperty, -1 /* 3 or 4 */, 1) \ | 244 F(SetProperty, -1 /* 4 or 5 */, 1) \ |
| 245 F(DefineOrRedefineDataProperty, 4, 1) \ | 245 F(DefineOrRedefineDataProperty, 4, 1) \ |
| 246 F(DefineOrRedefineAccessorProperty, 5, 1) \ | 246 F(DefineOrRedefineAccessorProperty, 5, 1) \ |
| 247 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \ | 247 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \ |
| 248 \ | 248 \ |
| 249 /* Arrays */ \ | 249 /* Arrays */ \ |
| 250 F(RemoveArrayHoles, 2, 1) \ | 250 F(RemoveArrayHoles, 2, 1) \ |
| 251 F(GetArrayKeys, 2, 1) \ | 251 F(GetArrayKeys, 2, 1) \ |
| 252 F(MoveArrayContents, 2, 1) \ | 252 F(MoveArrayContents, 2, 1) \ |
| 253 F(EstimateNumberOfElements, 1, 1) \ | 253 F(EstimateNumberOfElements, 1, 1) \ |
| 254 F(SwapElements, 3, 1) \ | 254 F(SwapElements, 3, 1) \ |
| (...skipping 26 matching lines...) Expand all Loading... |
| 281 F(StackGuard, 0, 1) \ | 281 F(StackGuard, 0, 1) \ |
| 282 F(PromoteScheduledException, 0, 1) \ | 282 F(PromoteScheduledException, 0, 1) \ |
| 283 \ | 283 \ |
| 284 /* Contexts */ \ | 284 /* Contexts */ \ |
| 285 F(NewContext, 1, 1) \ | 285 F(NewContext, 1, 1) \ |
| 286 F(PushContext, 1, 1) \ | 286 F(PushContext, 1, 1) \ |
| 287 F(PushCatchContext, 1, 1) \ | 287 F(PushCatchContext, 1, 1) \ |
| 288 F(DeleteContextSlot, 2, 1) \ | 288 F(DeleteContextSlot, 2, 1) \ |
| 289 F(LoadContextSlot, 2, 2) \ | 289 F(LoadContextSlot, 2, 2) \ |
| 290 F(LoadContextSlotNoReferenceError, 2, 2) \ | 290 F(LoadContextSlotNoReferenceError, 2, 2) \ |
| 291 F(StoreContextSlot, 3, 1) \ | 291 F(StoreContextSlot, 4, 1) \ |
| 292 \ | 292 \ |
| 293 /* Declarations and initialization */ \ | 293 /* Declarations and initialization */ \ |
| 294 F(DeclareGlobals, 3, 1) \ | 294 F(DeclareGlobals, 4, 1) \ |
| 295 F(DeclareContextSlot, 4, 1) \ | 295 F(DeclareContextSlot, 4, 1) \ |
| 296 F(InitializeVarGlobal, -1 /* 1 or 2 */, 1) \ | 296 F(InitializeVarGlobal, -1 /* 2 or 3 */, 1) \ |
| 297 F(InitializeConstGlobal, 2, 1) \ | 297 F(InitializeConstGlobal, 2, 1) \ |
| 298 F(InitializeConstContextSlot, 3, 1) \ | 298 F(InitializeConstContextSlot, 3, 1) \ |
| 299 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ | 299 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ |
| 300 \ | 300 \ |
| 301 /* Debugging */ \ | 301 /* Debugging */ \ |
| 302 F(DebugPrint, 1, 1) \ | 302 F(DebugPrint, 1, 1) \ |
| 303 F(DebugTrace, 0, 1) \ | 303 F(DebugTrace, 0, 1) \ |
| 304 F(TraceEnter, 0, 1) \ | 304 F(TraceEnter, 0, 1) \ |
| 305 F(TraceExit, 1, 1) \ | 305 F(TraceExit, 1, 1) \ |
| 306 F(Abort, 2, 1) \ | 306 F(Abort, 2, 1) \ |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 // in Firefox/SpiderMonkey, Safari and Opera. | 531 // in Firefox/SpiderMonkey, Safari and Opera. |
| 532 MUST_USE_RESULT static MaybeObject* GetElementOrCharAt(Handle<Object> object, | 532 MUST_USE_RESULT static MaybeObject* GetElementOrCharAt(Handle<Object> object, |
| 533 uint32_t index); | 533 uint32_t index); |
| 534 MUST_USE_RESULT static MaybeObject* GetElement(Handle<Object> object, | 534 MUST_USE_RESULT static MaybeObject* GetElement(Handle<Object> object, |
| 535 uint32_t index); | 535 uint32_t index); |
| 536 | 536 |
| 537 MUST_USE_RESULT static MaybeObject* SetObjectProperty( | 537 MUST_USE_RESULT static MaybeObject* SetObjectProperty( |
| 538 Handle<Object> object, | 538 Handle<Object> object, |
| 539 Handle<Object> key, | 539 Handle<Object> key, |
| 540 Handle<Object> value, | 540 Handle<Object> value, |
| 541 PropertyAttributes attr); | 541 PropertyAttributes attr, |
| 542 StrictModeFlag strict); |
| 542 | 543 |
| 543 MUST_USE_RESULT static MaybeObject* ForceSetObjectProperty( | 544 MUST_USE_RESULT static MaybeObject* ForceSetObjectProperty( |
| 544 Handle<JSObject> object, | 545 Handle<JSObject> object, |
| 545 Handle<Object> key, | 546 Handle<Object> key, |
| 546 Handle<Object> value, | 547 Handle<Object> value, |
| 547 PropertyAttributes attr); | 548 PropertyAttributes attr); |
| 548 | 549 |
| 549 MUST_USE_RESULT static MaybeObject* ForceDeleteObjectProperty( | 550 MUST_USE_RESULT static MaybeObject* ForceDeleteObjectProperty( |
| 550 Handle<JSObject> object, | 551 Handle<JSObject> object, |
| 551 Handle<Object> key); | 552 Handle<Object> key); |
| 552 | 553 |
| 553 MUST_USE_RESULT static MaybeObject* GetObjectProperty(Handle<Object> object, | 554 MUST_USE_RESULT static MaybeObject* GetObjectProperty(Handle<Object> object, |
| 554 Handle<Object> key); | 555 Handle<Object> key); |
| 555 | 556 |
| 556 // This function is used in FunctionNameUsing* tests. | 557 // This function is used in FunctionNameUsing* tests. |
| 557 static Object* FindSharedFunctionInfoInScript(Handle<Script> script, | 558 static Object* FindSharedFunctionInfoInScript(Handle<Script> script, |
| 558 int position); | 559 int position); |
| 559 | 560 |
| 560 // Helper functions used stubs. | 561 // Helper functions used stubs. |
| 561 static void PerformGC(Object* result); | 562 static void PerformGC(Object* result); |
| 562 }; | 563 }; |
| 563 | 564 |
| 564 | 565 |
| 565 } } // namespace v8::internal | 566 } } // namespace v8::internal |
| 566 | 567 |
| 567 #endif // V8_RUNTIME_H_ | 568 #endif // V8_RUNTIME_H_ |
| OLD | NEW |