| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 namespace internal { | 49 namespace internal { |
| 50 | 50 |
| 51 // Forward declarations. | 51 // Forward declarations. |
| 52 class SourcePosition; | 52 class SourcePosition; |
| 53 class StatsCounter; | 53 class StatsCounter; |
| 54 | 54 |
| 55 // ----------------------------------------------------------------------------- | 55 // ----------------------------------------------------------------------------- |
| 56 // Platform independent assembler base class. | 56 // Platform independent assembler base class. |
| 57 | 57 |
| 58 enum class CodeObjectRequired { kNo, kYes }; |
| 59 |
| 60 |
| 58 class AssemblerBase: public Malloced { | 61 class AssemblerBase: public Malloced { |
| 59 public: | 62 public: |
| 60 AssemblerBase(Isolate* isolate, void* buffer, int buffer_size); | 63 AssemblerBase(Isolate* isolate, void* buffer, int buffer_size); |
| 61 virtual ~AssemblerBase(); | 64 virtual ~AssemblerBase(); |
| 62 | 65 |
| 63 Isolate* isolate() const { return isolate_; } | 66 Isolate* isolate() const { return isolate_; } |
| 64 int jit_cookie() const { return jit_cookie_; } | 67 int jit_cookie() const { return jit_cookie_; } |
| 65 | 68 |
| 66 bool emit_debug_code() const { return emit_debug_code_; } | 69 bool emit_debug_code() const { return emit_debug_code_; } |
| 67 void set_emit_debug_code(bool value) { emit_debug_code_ = value; } | 70 void set_emit_debug_code(bool value) { emit_debug_code_ = value; } |
| (...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1276 std::vector<ConstantPoolEntry> shared_entries; | 1279 std::vector<ConstantPoolEntry> shared_entries; |
| 1277 }; | 1280 }; |
| 1278 | 1281 |
| 1279 Label emitted_label_; // Records pc_offset of emitted pool | 1282 Label emitted_label_; // Records pc_offset of emitted pool |
| 1280 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; | 1283 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; |
| 1281 }; | 1284 }; |
| 1282 | 1285 |
| 1283 } // namespace internal | 1286 } // namespace internal |
| 1284 } // namespace v8 | 1287 } // namespace v8 |
| 1285 #endif // V8_ASSEMBLER_H_ | 1288 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |