| 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 20 matching lines...) Expand all Loading... |
| 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 2012 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 "src/allocation.h" | 38 #include "src/allocation.h" |
| 39 #include "src/builtins.h" | 39 #include "src/builtins.h" |
| 40 #include "src/isolate.h" | 40 #include "src/isolate.h" |
| 41 #include "src/objects-inl.h" | |
| 42 #include "src/runtime/runtime.h" | 41 #include "src/runtime/runtime.h" |
| 43 #include "src/token.h" | 42 #include "src/token.h" |
| 44 | 43 |
| 45 namespace v8 { | 44 namespace v8 { |
| 46 | 45 |
| 46 // Forward declarations. |
| 47 class ApiFunction; | 47 class ApiFunction; |
| 48 | 48 |
| 49 namespace internal { | 49 namespace internal { |
| 50 | 50 |
| 51 // Forward declarations. |
| 51 class StatsCounter; | 52 class StatsCounter; |
| 53 |
| 52 // ----------------------------------------------------------------------------- | 54 // ----------------------------------------------------------------------------- |
| 53 // Platform independent assembler base class. | 55 // Platform independent assembler base class. |
| 54 | 56 |
| 55 class AssemblerBase: public Malloced { | 57 class AssemblerBase: public Malloced { |
| 56 public: | 58 public: |
| 57 AssemblerBase(Isolate* isolate, void* buffer, int buffer_size); | 59 AssemblerBase(Isolate* isolate, void* buffer, int buffer_size); |
| 58 virtual ~AssemblerBase(); | 60 virtual ~AssemblerBase(); |
| 59 | 61 |
| 60 Isolate* isolate() const { return isolate_; } | 62 Isolate* isolate() const { return isolate_; } |
| 61 int jit_cookie() const { return jit_cookie_; } | 63 int jit_cookie() const { return jit_cookie_; } |
| (...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1265 }; | 1267 }; |
| 1266 | 1268 |
| 1267 Label emitted_label_; // Records pc_offset of emitted pool | 1269 Label emitted_label_; // Records pc_offset of emitted pool |
| 1268 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; | 1270 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; |
| 1269 }; | 1271 }; |
| 1270 | 1272 |
| 1271 | 1273 |
| 1272 } } // namespace v8::internal | 1274 } } // namespace v8::internal |
| 1273 | 1275 |
| 1274 #endif // V8_ASSEMBLER_H_ | 1276 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |