| 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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 | 687 |
| 688 // TODO(1240886): Some of the following methods are *not* handle safe, but | 688 // TODO(1240886): Some of the following methods are *not* handle safe, but |
| 689 // accept handle arguments. This seems fragile. | 689 // accept handle arguments. This seems fragile. |
| 690 | 690 |
| 691 // Support getting the characters in a string using [] notation as | 691 // Support getting the characters in a string using [] notation as |
| 692 // in Firefox/SpiderMonkey, Safari and Opera. | 692 // in Firefox/SpiderMonkey, Safari and Opera. |
| 693 MUST_USE_RESULT static MaybeObject* GetElementOrCharAt(Isolate* isolate, | 693 MUST_USE_RESULT static MaybeObject* GetElementOrCharAt(Isolate* isolate, |
| 694 Handle<Object> object, | 694 Handle<Object> object, |
| 695 uint32_t index); | 695 uint32_t index); |
| 696 | 696 |
| 697 MUST_USE_RESULT static MaybeObject* GetElementOrCharAtOrFail( |
| 698 Isolate* isolate, |
| 699 Handle<Object> object, |
| 700 uint32_t index); |
| 701 |
| 697 MUST_USE_RESULT static MaybeObject* SetObjectProperty( | 702 MUST_USE_RESULT static MaybeObject* SetObjectProperty( |
| 698 Isolate* isolate, | 703 Isolate* isolate, |
| 699 Handle<Object> object, | 704 Handle<Object> object, |
| 700 Handle<Object> key, | 705 Handle<Object> key, |
| 701 Handle<Object> value, | 706 Handle<Object> value, |
| 702 PropertyAttributes attr, | 707 PropertyAttributes attr, |
| 703 StrictModeFlag strict_mode); | 708 StrictModeFlag strict_mode); |
| 704 | 709 |
| 705 MUST_USE_RESULT static MaybeObject* SetObjectPropertyOrFail( | 710 MUST_USE_RESULT static MaybeObject* SetObjectPropertyOrFail( |
| 706 Isolate* isolate, | 711 Isolate* isolate, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 //--------------------------------------------------------------------------- | 757 //--------------------------------------------------------------------------- |
| 753 // Constants used by interface to runtime functions. | 758 // Constants used by interface to runtime functions. |
| 754 | 759 |
| 755 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 760 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
| 756 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 761 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
| 757 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 762 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
| 758 | 763 |
| 759 } } // namespace v8::internal | 764 } } // namespace v8::internal |
| 760 | 765 |
| 761 #endif // V8_RUNTIME_H_ | 766 #endif // V8_RUNTIME_H_ |
| OLD | NEW |