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

Side by Side Diff: src/isolate.h

Issue 10918067: Refactoring of snapshots. This simplifies and improves (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 | « src/heap-inl.h ('k') | src/mksnapshot.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 Redirection* simulator_redirection() { 984 Redirection* simulator_redirection() {
985 return simulator_redirection_; 985 return simulator_redirection_;
986 } 986 }
987 void set_simulator_redirection(Redirection* redirection) { 987 void set_simulator_redirection(Redirection* redirection) {
988 simulator_redirection_ = redirection; 988 simulator_redirection_ = redirection;
989 } 989 }
990 #endif 990 #endif
991 991
992 Factory* factory() { return reinterpret_cast<Factory*>(this); } 992 Factory* factory() { return reinterpret_cast<Factory*>(this); }
993 993
994 // SerializerDeserializer state.
995 static const int kPartialSnapshotCacheCapacity = 1400;
996
997 static const int kJSRegexpStaticOffsetsVectorSize = 128; 994 static const int kJSRegexpStaticOffsetsVectorSize = 128;
998 995
999 Address external_callback() { 996 Address external_callback() {
1000 return thread_local_top_.external_callback_; 997 return thread_local_top_.external_callback_;
1001 } 998 }
1002 void set_external_callback(Address callback) { 999 void set_external_callback(Address callback) {
1003 thread_local_top_.external_callback_ = callback; 1000 thread_local_top_.external_callback_ = callback;
1004 } 1001 }
1005 1002
1006 StateTag current_vm_state() { 1003 StateTag current_vm_state() {
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 1444
1448 // Mark the native context with out of memory. 1445 // Mark the native context with out of memory.
1449 inline void Context::mark_out_of_memory() { 1446 inline void Context::mark_out_of_memory() {
1450 native_context()->set_out_of_memory(HEAP->true_value()); 1447 native_context()->set_out_of_memory(HEAP->true_value());
1451 } 1448 }
1452 1449
1453 1450
1454 } } // namespace v8::internal 1451 } } // namespace v8::internal
1455 1452
1456 #endif // V8_ISOLATE_H_ 1453 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | src/mksnapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698