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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 static const Function* FunctionForId(FunctionId id); | 621 static const Function* FunctionForId(FunctionId id); |
622 | 622 |
623 // General-purpose helper functions for runtime system. | 623 // General-purpose helper functions for runtime system. |
624 static int StringMatch(Isolate* isolate, | 624 static int StringMatch(Isolate* isolate, |
625 Handle<String> sub, | 625 Handle<String> sub, |
626 Handle<String> pat, | 626 Handle<String> pat, |
627 int index); | 627 int index); |
628 | 628 |
629 static bool IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch); | 629 static bool IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch); |
630 | 630 |
631 // TODO(1240886): The following three methods are *not* handle safe, | 631 // TODO(1240886): Some of the following methods are *not* handle safe, but |
632 // but accept handle arguments. This seems fragile. | 632 // accept handle arguments. This seems fragile. |
633 | 633 |
634 // Support getting the characters in a string using [] notation as | 634 // Support getting the characters in a string using [] notation as |
635 // in Firefox/SpiderMonkey, Safari and Opera. | 635 // in Firefox/SpiderMonkey, Safari and Opera. |
636 MUST_USE_RESULT static MaybeObject* GetElementOrCharAt(Isolate* isolate, | 636 MUST_USE_RESULT static MaybeObject* GetElementOrCharAt(Isolate* isolate, |
637 Handle<Object> object, | 637 Handle<Object> object, |
638 uint32_t index); | 638 uint32_t index); |
639 MUST_USE_RESULT static MaybeObject* GetElement(Handle<Object> object, | |
640 uint32_t index); | |
641 | 639 |
642 MUST_USE_RESULT static MaybeObject* SetObjectProperty( | 640 MUST_USE_RESULT static MaybeObject* SetObjectProperty( |
643 Isolate* isolate, | 641 Isolate* isolate, |
644 Handle<Object> object, | 642 Handle<Object> object, |
645 Handle<Object> key, | 643 Handle<Object> key, |
646 Handle<Object> value, | 644 Handle<Object> value, |
647 PropertyAttributes attr, | 645 PropertyAttributes attr, |
648 StrictModeFlag strict_mode); | 646 StrictModeFlag strict_mode); |
649 | 647 |
650 MUST_USE_RESULT static MaybeObject* ForceSetObjectProperty( | 648 MUST_USE_RESULT static MaybeObject* ForceSetObjectProperty( |
(...skipping 28 matching lines...) Expand all Loading... |
679 | 677 |
680 enum kDeclareGlobalsFlags { | 678 enum kDeclareGlobalsFlags { |
681 kDeclareGlobalsEvalFlag = 1 << 0, | 679 kDeclareGlobalsEvalFlag = 1 << 0, |
682 kDeclareGlobalsStrictModeFlag = 1 << 1, | 680 kDeclareGlobalsStrictModeFlag = 1 << 1, |
683 kDeclareGlobalsNativeFlag = 1 << 2 | 681 kDeclareGlobalsNativeFlag = 1 << 2 |
684 }; | 682 }; |
685 | 683 |
686 } } // namespace v8::internal | 684 } } // namespace v8::internal |
687 | 685 |
688 #endif // V8_RUNTIME_H_ | 686 #endif // V8_RUNTIME_H_ |
OLD | NEW |