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

Side by Side Diff: src/snapshot/code-serializer.h

Issue 1940283002: [serializer] cache ICs only as code stubs with key. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | src/snapshot/code-serializer.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_SNAPSHOT_CODE_SERIALIZER_H_ 5 #ifndef V8_SNAPSHOT_CODE_SERIALIZER_H_
6 #define V8_SNAPSHOT_CODE_SERIALIZER_H_ 6 #define V8_SNAPSHOT_CODE_SERIALIZER_H_
7 7
8 #include "src/parsing/preparse-data.h" 8 #include "src/parsing/preparse-data.h"
9 #include "src/snapshot/serializer.h" 9 #include "src/snapshot/serializer.h"
10 10
(...skipping 27 matching lines...) Expand all
38 back_reference_map_.AddSourceString(source); 38 back_reference_map_.AddSourceString(source);
39 } 39 }
40 40
41 ~CodeSerializer() override { OutputStatistics("CodeSerializer"); } 41 ~CodeSerializer() override { OutputStatistics("CodeSerializer"); }
42 42
43 void SerializeObject(HeapObject* o, HowToCode how_to_code, 43 void SerializeObject(HeapObject* o, HowToCode how_to_code,
44 WhereToPoint where_to_point, int skip) override; 44 WhereToPoint where_to_point, int skip) override;
45 45
46 void SerializeBuiltin(int builtin_index, HowToCode how_to_code, 46 void SerializeBuiltin(int builtin_index, HowToCode how_to_code,
47 WhereToPoint where_to_point); 47 WhereToPoint where_to_point);
48 void SerializeIC(Code* ic, HowToCode how_to_code,
49 WhereToPoint where_to_point);
50 void SerializeCodeStub(uint32_t stub_key, HowToCode how_to_code, 48 void SerializeCodeStub(uint32_t stub_key, HowToCode how_to_code,
51 WhereToPoint where_to_point); 49 WhereToPoint where_to_point);
52 void SerializeGeneric(HeapObject* heap_object, HowToCode how_to_code, 50 void SerializeGeneric(HeapObject* heap_object, HowToCode how_to_code,
53 WhereToPoint where_to_point); 51 WhereToPoint where_to_point);
54 int AddCodeStubKey(uint32_t stub_key); 52 int AddCodeStubKey(uint32_t stub_key);
55 53
56 DisallowHeapAllocation no_gc_; 54 DisallowHeapAllocation no_gc_;
57 String* source_; 55 String* source_;
58 List<uint32_t> stub_keys_; 56 List<uint32_t> stub_keys_;
59 DISALLOW_COPY_AND_ASSIGN(CodeSerializer); 57 DISALLOW_COPY_AND_ASSIGN(CodeSerializer);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 static const int kPayloadLengthOffset = kNumCodeStubKeysOffset + kInt32Size; 116 static const int kPayloadLengthOffset = kNumCodeStubKeysOffset + kInt32Size;
119 static const int kChecksum1Offset = kPayloadLengthOffset + kInt32Size; 117 static const int kChecksum1Offset = kPayloadLengthOffset + kInt32Size;
120 static const int kChecksum2Offset = kChecksum1Offset + kInt32Size; 118 static const int kChecksum2Offset = kChecksum1Offset + kInt32Size;
121 static const int kHeaderSize = kChecksum2Offset + kInt32Size; 119 static const int kHeaderSize = kChecksum2Offset + kInt32Size;
122 }; 120 };
123 121
124 } // namespace internal 122 } // namespace internal
125 } // namespace v8 123 } // namespace v8
126 124
127 #endif // V8_SNAPSHOT_CODE_SERIALIZER_H_ 125 #endif // V8_SNAPSHOT_CODE_SERIALIZER_H_
OLDNEW
« no previous file with comments | « no previous file | src/snapshot/code-serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698