| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 F(MoveArrayContents, 2, 1) \ | 283 F(MoveArrayContents, 2, 1) \ |
| 284 F(EstimateNumberOfElements, 1, 1) \ | 284 F(EstimateNumberOfElements, 1, 1) \ |
| 285 \ | 285 \ |
| 286 /* Getters and Setters */ \ | 286 /* Getters and Setters */ \ |
| 287 F(LookupAccessor, 3, 1) \ | 287 F(LookupAccessor, 3, 1) \ |
| 288 \ | 288 \ |
| 289 /* Literals */ \ | 289 /* Literals */ \ |
| 290 F(MaterializeRegExpLiteral, 4, 1)\ | 290 F(MaterializeRegExpLiteral, 4, 1)\ |
| 291 F(CreateObjectLiteral, 4, 1) \ | 291 F(CreateObjectLiteral, 4, 1) \ |
| 292 F(CreateObjectLiteralShallow, 4, 1) \ | 292 F(CreateObjectLiteralShallow, 4, 1) \ |
| 293 F(CreateArrayLiteral, 3, 1) \ | 293 F(CreateArrayLiteral, 4, 1) \ |
| 294 F(CreateArrayLiteralShallow, 3, 1) \ | 294 F(CreateArrayLiteralShallow, 4, 1) \ |
| 295 \ | 295 \ |
| 296 /* Harmony modules */ \ | 296 /* Harmony modules */ \ |
| 297 F(IsJSModule, 1, 1) \ | 297 F(IsJSModule, 1, 1) \ |
| 298 \ | 298 \ |
| 299 /* Harmony proxies */ \ | 299 /* Harmony proxies */ \ |
| 300 F(CreateJSProxy, 2, 1) \ | 300 F(CreateJSProxy, 2, 1) \ |
| 301 F(CreateJSFunctionProxy, 4, 1) \ | 301 F(CreateJSFunctionProxy, 4, 1) \ |
| 302 F(IsJSProxy, 1, 1) \ | 302 F(IsJSProxy, 1, 1) \ |
| 303 F(IsJSFunctionProxy, 1, 1) \ | 303 F(IsJSFunctionProxy, 1, 1) \ |
| 304 F(GetHandler, 1, 1) \ | 304 F(GetHandler, 1, 1) \ |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 Handle<Object> key); | 693 Handle<Object> key); |
| 694 | 694 |
| 695 MUST_USE_RESULT static MaybeObject* GetObjectProperty( | 695 MUST_USE_RESULT static MaybeObject* GetObjectProperty( |
| 696 Isolate* isolate, | 696 Isolate* isolate, |
| 697 Handle<Object> object, | 697 Handle<Object> object, |
| 698 Handle<Object> key); | 698 Handle<Object> key); |
| 699 | 699 |
| 700 // Helper functions used stubs. | 700 // Helper functions used stubs. |
| 701 static void PerformGC(Object* result); | 701 static void PerformGC(Object* result); |
| 702 | 702 |
| 703 // Used in runtime.cc and hydrogen's VisitObjectLiteral and VisitArrayLiteral |
| 704 MUST_USE_RESULT static MaybeObject* DeepCopyBoilerplate( |
| 705 Isolate* isolate, |
| 706 JSObject* boilerplate, |
| 707 AllocationSiteMode allocation_site_mode = DONT_TRACK_ALLOCATION_SITE); |
| 708 |
| 703 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 709 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
| 704 static Handle<Object> CreateArrayLiteralBoilerplate( | 710 static Handle<Object> CreateArrayLiteralBoilerplate( |
| 705 Isolate* isolate, | 711 Isolate* isolate, |
| 706 Handle<FixedArray> literals, | 712 Handle<FixedArray> literals, |
| 707 Handle<FixedArray> elements); | 713 Handle<FixedArray> elements); |
| 708 }; | 714 }; |
| 709 | 715 |
| 710 | 716 |
| 711 //--------------------------------------------------------------------------- | 717 //--------------------------------------------------------------------------- |
| 712 // Constants used by interface to runtime functions. | 718 // Constants used by interface to runtime functions. |
| 713 | 719 |
| 714 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 720 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
| 715 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 721 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
| 716 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 722 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
| 717 | 723 |
| 718 } } // namespace v8::internal | 724 } } // namespace v8::internal |
| 719 | 725 |
| 720 #endif // V8_RUNTIME_H_ | 726 #endif // V8_RUNTIME_H_ |
| OLD | NEW |