OLD | NEW |
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 F(BoundFunctionGetBindings, 1, 1) \ | 237 F(BoundFunctionGetBindings, 1, 1) \ |
238 F(FunctionRemovePrototype, 1, 1) \ | 238 F(FunctionRemovePrototype, 1, 1) \ |
239 F(FunctionGetSourceCode, 1, 1) \ | 239 F(FunctionGetSourceCode, 1, 1) \ |
240 F(FunctionGetScript, 1, 1) \ | 240 F(FunctionGetScript, 1, 1) \ |
241 F(FunctionGetScriptSourcePosition, 1, 1) \ | 241 F(FunctionGetScriptSourcePosition, 1, 1) \ |
242 F(FunctionGetPositionForOffset, 2, 1) \ | 242 F(FunctionGetPositionForOffset, 2, 1) \ |
243 F(FunctionIsAPIFunction, 1, 1) \ | 243 F(FunctionIsAPIFunction, 1, 1) \ |
244 F(FunctionIsBuiltin, 1, 1) \ | 244 F(FunctionIsBuiltin, 1, 1) \ |
245 F(GetScript, 1, 1) \ | 245 F(GetScript, 1, 1) \ |
246 F(CollectStackTrace, 3, 1) \ | 246 F(CollectStackTrace, 3, 1) \ |
247 F(MarkOneShotGetter, 1, 1) \ | 247 F(GetAndClearOverflowedStackTrace, 1, 1) \ |
248 F(GetOverflowedStackTrace, 1, 1) \ | |
249 F(SetOverflowedStackTrace, 2, 1) \ | |
250 F(GetV8Version, 0, 1) \ | 248 F(GetV8Version, 0, 1) \ |
251 \ | 249 \ |
252 F(ClassOf, 1, 1) \ | 250 F(ClassOf, 1, 1) \ |
253 F(SetCode, 2, 1) \ | 251 F(SetCode, 2, 1) \ |
254 F(SetExpectedNumberOfProperties, 2, 1) \ | 252 F(SetExpectedNumberOfProperties, 2, 1) \ |
255 \ | 253 \ |
256 F(CreateApiFunction, 1, 1) \ | 254 F(CreateApiFunction, 1, 1) \ |
257 F(IsTemplate, 1, 1) \ | 255 F(IsTemplate, 1, 1) \ |
258 F(GetTemplateField, 2, 1) \ | 256 F(GetTemplateField, 2, 1) \ |
259 F(DisableAccessChecks, 1, 1) \ | 257 F(DisableAccessChecks, 1, 1) \ |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 F(HasExternalByteElements, 1, 1) \ | 456 F(HasExternalByteElements, 1, 1) \ |
459 F(HasExternalUnsignedByteElements, 1, 1) \ | 457 F(HasExternalUnsignedByteElements, 1, 1) \ |
460 F(HasExternalShortElements, 1, 1) \ | 458 F(HasExternalShortElements, 1, 1) \ |
461 F(HasExternalUnsignedShortElements, 1, 1) \ | 459 F(HasExternalUnsignedShortElements, 1, 1) \ |
462 F(HasExternalIntElements, 1, 1) \ | 460 F(HasExternalIntElements, 1, 1) \ |
463 F(HasExternalUnsignedIntElements, 1, 1) \ | 461 F(HasExternalUnsignedIntElements, 1, 1) \ |
464 F(HasExternalFloatElements, 1, 1) \ | 462 F(HasExternalFloatElements, 1, 1) \ |
465 F(HasExternalDoubleElements, 1, 1) \ | 463 F(HasExternalDoubleElements, 1, 1) \ |
466 F(HasFastProperties, 1, 1) \ | 464 F(HasFastProperties, 1, 1) \ |
467 F(TransitionElementsKind, 2, 1) \ | 465 F(TransitionElementsKind, 2, 1) \ |
468 F(TransitionElementsSmiToDouble, 1, 1) \ | 466 F(HaveSameMap, 2, 1) |
469 F(TransitionElementsDoubleToObject, 1, 1) \ | |
470 F(HaveSameMap, 2, 1) \ | |
471 /* profiler */ \ | |
472 F(ProfilerResume, 0, 1) \ | |
473 F(ProfilerPause, 0, 1) | |
474 | 467 |
475 | 468 |
476 #ifdef ENABLE_DEBUGGER_SUPPORT | 469 #ifdef ENABLE_DEBUGGER_SUPPORT |
477 #define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) \ | 470 #define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) \ |
478 /* Debugger support*/ \ | 471 /* Debugger support*/ \ |
479 F(DebugBreak, 0, 1) \ | 472 F(DebugBreak, 0, 1) \ |
480 F(SetDebugEventListener, 2, 1) \ | 473 F(SetDebugEventListener, 2, 1) \ |
481 F(Break, 0, 1) \ | 474 F(Break, 0, 1) \ |
482 F(DebugGetPropertyDetails, 2, 1) \ | 475 F(DebugGetPropertyDetails, 2, 1) \ |
483 F(DebugGetProperty, 2, 1) \ | 476 F(DebugGetProperty, 2, 1) \ |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 //--------------------------------------------------------------------------- | 804 //--------------------------------------------------------------------------- |
812 // Constants used by interface to runtime functions. | 805 // Constants used by interface to runtime functions. |
813 | 806 |
814 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 807 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
815 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 808 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
816 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 809 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
817 | 810 |
818 } } // namespace v8::internal | 811 } } // namespace v8::internal |
819 | 812 |
820 #endif // V8_RUNTIME_H_ | 813 #endif // V8_RUNTIME_H_ |
OLD | NEW |