| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 28 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 29 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 | 30 |
| 31 // The original source code covered by the above license above has been | 31 // The original source code covered by the above license above has been |
| 32 // modified significantly by Google Inc. | 32 // modified significantly by Google Inc. |
| 33 // Copyright 2011 the V8 project authors. All rights reserved. | 33 // Copyright 2011 the V8 project authors. All rights reserved. |
| 34 | 34 |
| 35 #ifndef V8_ASSEMBLER_H_ | 35 #ifndef V8_ASSEMBLER_H_ |
| 36 #define V8_ASSEMBLER_H_ | 36 #define V8_ASSEMBLER_H_ |
| 37 | 37 |
| 38 #include "allocation.h" |
| 38 #include "gdb-jit.h" | 39 #include "gdb-jit.h" |
| 39 #include "runtime.h" | 40 #include "runtime.h" |
| 40 #include "token.h" | 41 #include "token.h" |
| 41 | 42 |
| 42 namespace v8 { | 43 namespace v8 { |
| 43 namespace internal { | 44 namespace internal { |
| 44 | 45 |
| 45 const unsigned kNoASTId = -1; | 46 const unsigned kNoASTId = -1; |
| 46 // ----------------------------------------------------------------------------- | 47 // ----------------------------------------------------------------------------- |
| 47 // Platform independent assembler base class. | 48 // Platform independent assembler base class. |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 // Function NativeRegExpMacroAssembler::GrowStack() | 667 // Function NativeRegExpMacroAssembler::GrowStack() |
| 667 static ExternalReference re_grow_stack(Isolate* isolate); | 668 static ExternalReference re_grow_stack(Isolate* isolate); |
| 668 | 669 |
| 669 // byte NativeRegExpMacroAssembler::word_character_bitmap | 670 // byte NativeRegExpMacroAssembler::word_character_bitmap |
| 670 static ExternalReference re_word_character_map(); | 671 static ExternalReference re_word_character_map(); |
| 671 | 672 |
| 672 #endif | 673 #endif |
| 673 | 674 |
| 674 // This lets you register a function that rewrites all external references. | 675 // This lets you register a function that rewrites all external references. |
| 675 // Used by the ARM simulator to catch calls to external references. | 676 // Used by the ARM simulator to catch calls to external references. |
| 676 static void set_redirector(ExternalReferenceRedirector* redirector) { | 677 static void set_redirector(Isolate* isolate, |
| 678 ExternalReferenceRedirector* redirector) { |
| 677 // We can't stack them. | 679 // We can't stack them. |
| 678 ASSERT(Isolate::Current()->external_reference_redirector() == NULL); | 680 ASSERT(isolate->external_reference_redirector() == NULL); |
| 679 Isolate::Current()->set_external_reference_redirector( | 681 isolate->set_external_reference_redirector( |
| 680 reinterpret_cast<ExternalReferenceRedirectorPointer*>(redirector)); | 682 reinterpret_cast<ExternalReferenceRedirectorPointer*>(redirector)); |
| 681 } | 683 } |
| 682 | 684 |
| 683 private: | 685 private: |
| 684 explicit ExternalReference(void* address) | 686 explicit ExternalReference(void* address) |
| 685 : address_(address) {} | 687 : address_(address) {} |
| 686 | 688 |
| 687 static void* Redirect(Isolate* isolate, | 689 static void* Redirect(Isolate* isolate, |
| 688 void* address, | 690 void* address, |
| 689 Type type = ExternalReference::BUILTIN_CALL) { | 691 Type type = ExternalReference::BUILTIN_CALL) { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 public: | 863 public: |
| 862 NullCallWrapper() { } | 864 NullCallWrapper() { } |
| 863 virtual ~NullCallWrapper() { } | 865 virtual ~NullCallWrapper() { } |
| 864 virtual void BeforeCall(int call_size) const { } | 866 virtual void BeforeCall(int call_size) const { } |
| 865 virtual void AfterCall() const { } | 867 virtual void AfterCall() const { } |
| 866 }; | 868 }; |
| 867 | 869 |
| 868 } } // namespace v8::internal | 870 } } // namespace v8::internal |
| 869 | 871 |
| 870 #endif // V8_ASSEMBLER_H_ | 872 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |