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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 AssemblerBase(Isolate* isolate, void* buffer, int buffer_size); | 59 AssemblerBase(Isolate* isolate, void* buffer, int buffer_size); |
60 virtual ~AssemblerBase(); | 60 virtual ~AssemblerBase(); |
61 | 61 |
62 Isolate* isolate() const { return isolate_; } | 62 Isolate* isolate() const { return isolate_; } |
63 int jit_cookie() const { return jit_cookie_; } | 63 int jit_cookie() const { return jit_cookie_; } |
64 | 64 |
65 bool emit_debug_code() const { return emit_debug_code_; } | 65 bool emit_debug_code() const { return emit_debug_code_; } |
66 void set_emit_debug_code(bool value) { emit_debug_code_ = value; } | 66 void set_emit_debug_code(bool value) { emit_debug_code_ = value; } |
67 | 67 |
68 bool serializer_enabled() const { return serializer_enabled_; } | 68 bool serializer_enabled() const { return serializer_enabled_; } |
| 69 void enable_serializer() { serializer_enabled_ = true; } |
69 | 70 |
70 bool predictable_code_size() const { return predictable_code_size_; } | 71 bool predictable_code_size() const { return predictable_code_size_; } |
71 void set_predictable_code_size(bool value) { predictable_code_size_ = value; } | 72 void set_predictable_code_size(bool value) { predictable_code_size_ = value; } |
72 | 73 |
73 uint64_t enabled_cpu_features() const { return enabled_cpu_features_; } | 74 uint64_t enabled_cpu_features() const { return enabled_cpu_features_; } |
74 void set_enabled_cpu_features(uint64_t features) { | 75 void set_enabled_cpu_features(uint64_t features) { |
75 enabled_cpu_features_ = features; | 76 enabled_cpu_features_ = features; |
76 } | 77 } |
77 bool IsEnabled(CpuFeature f) { | 78 bool IsEnabled(CpuFeature f) { |
78 return (enabled_cpu_features_ & (static_cast<uint64_t>(1) << f)) != 0; | 79 return (enabled_cpu_features_ & (static_cast<uint64_t>(1) << f)) != 0; |
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 | 1154 |
1154 private: | 1155 private: |
1155 int32_t multiplier_; | 1156 int32_t multiplier_; |
1156 int32_t shift_; | 1157 int32_t shift_; |
1157 }; | 1158 }; |
1158 | 1159 |
1159 | 1160 |
1160 } } // namespace v8::internal | 1161 } } // namespace v8::internal |
1161 | 1162 |
1162 #endif // V8_ASSEMBLER_H_ | 1163 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |