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