| 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 12 matching lines...) Expand all Loading... |
| 23 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 23 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 24 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 24 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 25 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 25 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 26 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | 26 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
| 27 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | 27 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
| 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 2012 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 "v8.h" |
| 39 |
| 38 #include "allocation.h" | 40 #include "allocation.h" |
| 41 #include "builtins.h" |
| 39 #include "gdb-jit.h" | 42 #include "gdb-jit.h" |
| 43 #include "isolate.h" |
| 40 #include "runtime.h" | 44 #include "runtime.h" |
| 41 #include "token.h" | 45 #include "token.h" |
| 42 | 46 |
| 43 namespace v8 { | 47 namespace v8 { |
| 48 |
| 49 class ApiFunction; |
| 50 |
| 44 namespace internal { | 51 namespace internal { |
| 45 | 52 |
| 53 struct StatsCounter; |
| 46 const unsigned kNoASTId = -1; | 54 const unsigned kNoASTId = -1; |
| 47 // ----------------------------------------------------------------------------- | 55 // ----------------------------------------------------------------------------- |
| 48 // Platform independent assembler base class. | 56 // Platform independent assembler base class. |
| 49 | 57 |
| 50 class AssemblerBase: public Malloced { | 58 class AssemblerBase: public Malloced { |
| 51 public: | 59 public: |
| 52 explicit AssemblerBase(Isolate* isolate); | 60 explicit AssemblerBase(Isolate* isolate); |
| 53 | 61 |
| 54 Isolate* isolate() const { return isolate_; } | 62 Isolate* isolate() const { return isolate_; } |
| 55 int jit_cookie() { return jit_cookie_; } | 63 int jit_cookie() { return jit_cookie_; } |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 public: | 882 public: |
| 875 NullCallWrapper() { } | 883 NullCallWrapper() { } |
| 876 virtual ~NullCallWrapper() { } | 884 virtual ~NullCallWrapper() { } |
| 877 virtual void BeforeCall(int call_size) const { } | 885 virtual void BeforeCall(int call_size) const { } |
| 878 virtual void AfterCall() const { } | 886 virtual void AfterCall() const { } |
| 879 }; | 887 }; |
| 880 | 888 |
| 881 } } // namespace v8::internal | 889 } } // namespace v8::internal |
| 882 | 890 |
| 883 #endif // V8_ASSEMBLER_H_ | 891 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |