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

Side by Side Diff: src/serialize.cc

Issue 375223002: Flush ICache after deserializing code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « src/serialize.h ('k') | test/cctest/cctest.status » ('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 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 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 SnapshotByteSource payload(payload_data, payload_length); 1900 SnapshotByteSource payload(payload_data, payload_length);
1901 Deserializer deserializer(&payload); 1901 Deserializer deserializer(&payload);
1902 STATIC_ASSERT(NEW_SPACE == 0); 1902 STATIC_ASSERT(NEW_SPACE == 0);
1903 // TODO(yangguo) what happens if remaining new space is too small? 1903 // TODO(yangguo) what happens if remaining new space is too small?
1904 for (int i = NEW_SPACE; i <= PROPERTY_CELL_SPACE; i++) { 1904 for (int i = NEW_SPACE; i <= PROPERTY_CELL_SPACE; i++) {
1905 deserializer.set_reservation( 1905 deserializer.set_reservation(
1906 i, raw_data[CodeSerializer::kReservationsOffset + i]); 1906 i, raw_data[CodeSerializer::kReservationsOffset + i]);
1907 } 1907 }
1908 Object* root; 1908 Object* root;
1909 deserializer.DeserializePartial(isolate, &root); 1909 deserializer.DeserializePartial(isolate, &root);
1910 deserializer.FlushICacheForNewCodeObjects();
1910 ASSERT(root->IsSharedFunctionInfo()); 1911 ASSERT(root->IsSharedFunctionInfo());
1911 return root; 1912 return root;
1912 } 1913 }
1913 } } // namespace v8::internal 1914 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/serialize.h ('k') | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698