| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 namespace internal { | 51 namespace internal { |
| 52 | 52 |
| 53 struct StatsCounter; | 53 struct StatsCounter; |
| 54 const unsigned kNoASTId = -1; | 54 const unsigned kNoASTId = -1; |
| 55 // ----------------------------------------------------------------------------- | 55 // ----------------------------------------------------------------------------- |
| 56 // Platform independent assembler base class. | 56 // Platform independent assembler base class. |
| 57 | 57 |
| 58 class AssemblerBase: public Malloced { | 58 class AssemblerBase: public Malloced { |
| 59 public: | 59 public: |
| 60 explicit AssemblerBase(Isolate* isolate); | 60 AssemblerBase(Isolate* isolate, Zone* zone); |
| 61 | 61 |
| 62 Isolate* isolate() const { return isolate_; } | 62 Isolate* isolate() const { return isolate_; } |
| 63 int jit_cookie() { return jit_cookie_; } | 63 int jit_cookie() { return jit_cookie_; } |
| 64 | 64 |
| 65 // Overwrite a host NaN with a quiet target NaN. Used by mksnapshot for | 65 // Overwrite a host NaN with a quiet target NaN. Used by mksnapshot for |
| 66 // cross-snapshotting. | 66 // cross-snapshotting. |
| 67 static void QuietNaN(HeapObject* nan) { } | 67 static void QuietNaN(HeapObject* nan) { } |
| 68 | 68 |
| 69 Zone* zone() const { return zone_; } |
| 70 |
| 69 private: | 71 private: |
| 70 Isolate* isolate_; | 72 Isolate* isolate_; |
| 71 int jit_cookie_; | 73 int jit_cookie_; |
| 74 Zone* zone_; |
| 72 }; | 75 }; |
| 73 | 76 |
| 74 | 77 |
| 75 // ----------------------------------------------------------------------------- | 78 // ----------------------------------------------------------------------------- |
| 76 // Labels represent pc locations; they are typically jump or call targets. | 79 // Labels represent pc locations; they are typically jump or call targets. |
| 77 // After declaration, a label can be freely used to denote known or (yet) | 80 // After declaration, a label can be freely used to denote known or (yet) |
| 78 // unknown pc location. Assembler::bind() is used to bind a label to the | 81 // unknown pc location. Assembler::bind() is used to bind a label to the |
| 79 // current pc. A label can be bound only once. | 82 // current pc. A label can be bound only once. |
| 80 | 83 |
| 81 class Label BASE_EMBEDDED { | 84 class Label BASE_EMBEDDED { |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 public: | 881 public: |
| 879 NullCallWrapper() { } | 882 NullCallWrapper() { } |
| 880 virtual ~NullCallWrapper() { } | 883 virtual ~NullCallWrapper() { } |
| 881 virtual void BeforeCall(int call_size) const { } | 884 virtual void BeforeCall(int call_size) const { } |
| 882 virtual void AfterCall() const { } | 885 virtual void AfterCall() const { } |
| 883 }; | 886 }; |
| 884 | 887 |
| 885 } } // namespace v8::internal | 888 } } // namespace v8::internal |
| 886 | 889 |
| 887 #endif // V8_ASSEMBLER_H_ | 890 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |