OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 F(NewFunctionContext, 1, 1) \ | 310 F(NewFunctionContext, 1, 1) \ |
311 F(PushWithContext, 2, 1) \ | 311 F(PushWithContext, 2, 1) \ |
312 F(PushCatchContext, 3, 1) \ | 312 F(PushCatchContext, 3, 1) \ |
313 F(PushBlockContext, 2, 1) \ | 313 F(PushBlockContext, 2, 1) \ |
314 F(DeleteContextSlot, 2, 1) \ | 314 F(DeleteContextSlot, 2, 1) \ |
315 F(LoadContextSlot, 2, 2) \ | 315 F(LoadContextSlot, 2, 2) \ |
316 F(LoadContextSlotNoReferenceError, 2, 2) \ | 316 F(LoadContextSlotNoReferenceError, 2, 2) \ |
317 F(StoreContextSlot, 4, 1) \ | 317 F(StoreContextSlot, 4, 1) \ |
318 \ | 318 \ |
319 /* Declarations and initialization */ \ | 319 /* Declarations and initialization */ \ |
320 F(DeclareGlobals, 4, 1) \ | 320 F(DeclareGlobals, 3, 1) \ |
321 F(DeclareContextSlot, 4, 1) \ | 321 F(DeclareContextSlot, 4, 1) \ |
322 F(InitializeVarGlobal, -1 /* 2 or 3 */, 1) \ | 322 F(InitializeVarGlobal, -1 /* 2 or 3 */, 1) \ |
323 F(InitializeConstGlobal, 2, 1) \ | 323 F(InitializeConstGlobal, 2, 1) \ |
324 F(InitializeConstContextSlot, 3, 1) \ | 324 F(InitializeConstContextSlot, 3, 1) \ |
325 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ | 325 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ |
326 \ | 326 \ |
327 /* Debugging */ \ | 327 /* Debugging */ \ |
328 F(DebugPrint, 1, 1) \ | 328 F(DebugPrint, 1, 1) \ |
329 F(DebugTrace, 0, 1) \ | 329 F(DebugTrace, 0, 1) \ |
330 F(TraceEnter, 0, 1) \ | 330 F(TraceEnter, 0, 1) \ |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 | 656 |
657 // This function is used in FunctionNameUsing* tests. | 657 // This function is used in FunctionNameUsing* tests. |
658 static Object* FindSharedFunctionInfoInScript(Isolate* isolate, | 658 static Object* FindSharedFunctionInfoInScript(Isolate* isolate, |
659 Handle<Script> script, | 659 Handle<Script> script, |
660 int position); | 660 int position); |
661 | 661 |
662 // Helper functions used stubs. | 662 // Helper functions used stubs. |
663 static void PerformGC(Object* result); | 663 static void PerformGC(Object* result); |
664 }; | 664 }; |
665 | 665 |
| 666 |
| 667 //--------------------------------------------------------------------------- |
| 668 // Constants used by interface to runtime functions. |
| 669 |
| 670 enum kDeclareGlobalsFlags { |
| 671 kDeclareGlobalsEvalFlag = 1 << 0, |
| 672 kDeclareGlobalsStrictModeFlag = 1 << 1, |
| 673 kDeclareGlobalsNativeFlag = 1 << 2 |
| 674 }; |
| 675 |
666 } } // namespace v8::internal | 676 } } // namespace v8::internal |
667 | 677 |
668 #endif // V8_RUNTIME_H_ | 678 #endif // V8_RUNTIME_H_ |
OLD | NEW |