Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/assembler.h

Issue 373713006: Introduce code serializer/deserializer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments and rebased Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698