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

Side by Side Diff: src/serialize.cc

Issue 547293003: Fix compile error introduced in 24002. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/platform/platform.h" 9 #include "src/base/platform/platform.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1902 matching lines...) Expand 10 before | Expand all | Expand 10 after
1913 } 1913 }
1914 1914
1915 1915
1916 void CodeSerializer::SerializeCodeStub(Code* code, HowToCode how_to_code, 1916 void CodeSerializer::SerializeCodeStub(Code* code, HowToCode how_to_code,
1917 WhereToPoint where_to_point, int skip) { 1917 WhereToPoint where_to_point, int skip) {
1918 DCHECK((how_to_code == kPlain && where_to_point == kStartOfObject) || 1918 DCHECK((how_to_code == kPlain && where_to_point == kStartOfObject) ||
1919 (how_to_code == kPlain && where_to_point == kInnerPointer) || 1919 (how_to_code == kPlain && where_to_point == kInnerPointer) ||
1920 (how_to_code == kFromCode && where_to_point == kInnerPointer)); 1920 (how_to_code == kFromCode && where_to_point == kInnerPointer));
1921 uint32_t stub_key = code->stub_key(); 1921 uint32_t stub_key = code->stub_key();
1922 1922
1923 if (CodeStub::MajorKeyFromKey(stub_key) == CodeStub::NoCacheKey()) { 1923 if (stub_key == CodeStub::NoCacheKey()) {
1924 if (FLAG_trace_code_serializer) { 1924 if (FLAG_trace_code_serializer) {
1925 PrintF("Encoding uncacheable code stub as heap object\n"); 1925 PrintF("Encoding uncacheable code stub as heap object\n");
1926 } 1926 }
1927 SerializeHeapObject(code, how_to_code, where_to_point, skip); 1927 SerializeHeapObject(code, how_to_code, where_to_point, skip);
1928 return; 1928 return;
1929 } 1929 }
1930 1930
1931 if (skip != 0) { 1931 if (skip != 0) {
1932 sink_->Put(kSkip, "SkipFromSerializeCodeStub"); 1932 sink_->Put(kSkip, "SkipFromSerializeCodeStub");
1933 sink_->PutInt(skip, "SkipDistanceFromSerializeCodeStub"); 1933 sink_->PutInt(skip, "SkipDistanceFromSerializeCodeStub");
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
2063 2063
2064 int SerializedCodeData::CheckSum(String* string) { 2064 int SerializedCodeData::CheckSum(String* string) {
2065 int checksum = Version::Hash(); 2065 int checksum = Version::Hash();
2066 #ifdef DEBUG 2066 #ifdef DEBUG
2067 uint32_t seed = static_cast<uint32_t>(checksum); 2067 uint32_t seed = static_cast<uint32_t>(checksum);
2068 checksum = static_cast<int>(IteratingStringHasher::Hash(string, seed)); 2068 checksum = static_cast<int>(IteratingStringHasher::Hash(string, seed));
2069 #endif // DEBUG 2069 #endif // DEBUG
2070 return checksum; 2070 return checksum;
2071 } 2071 }
2072 } } // namespace v8::internal 2072 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698