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

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
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 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 Redirection* simulator_redirection() { 980 Redirection* simulator_redirection() {
981 return simulator_redirection_; 981 return simulator_redirection_;
982 } 982 }
983 void set_simulator_redirection(Redirection* redirection) { 983 void set_simulator_redirection(Redirection* redirection) {
984 simulator_redirection_ = redirection; 984 simulator_redirection_ = redirection;
985 } 985 }
986 #endif 986 #endif
987 987
988 Factory* factory() { return reinterpret_cast<Factory*>(this); } 988 Factory* factory() { return reinterpret_cast<Factory*>(this); }
989 989
990 // SerializerDeserializer state.
991 static const int kPartialSnapshotCacheCapacity = 1400;
992
993 static const int kJSRegexpStaticOffsetsVectorSize = 128; 990 static const int kJSRegexpStaticOffsetsVectorSize = 128;
994 991
995 Address external_callback() { 992 Address external_callback() {
996 return thread_local_top_.external_callback_; 993 return thread_local_top_.external_callback_;
997 } 994 }
998 void set_external_callback(Address callback) { 995 void set_external_callback(Address callback) {
999 thread_local_top_.external_callback_ = callback; 996 thread_local_top_.external_callback_ = callback;
1000 } 997 }
1001 998
1002 StateTag current_vm_state() { 999 StateTag current_vm_state() {
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 1440
1444 // Mark the native context with out of memory. 1441 // Mark the native context with out of memory.
1445 inline void Context::mark_out_of_memory() { 1442 inline void Context::mark_out_of_memory() {
1446 native_context()->set_out_of_memory(HEAP->true_value()); 1443 native_context()->set_out_of_memory(HEAP->true_value());
1447 } 1444 }
1448 1445
1449 1446
1450 } } // namespace v8::internal 1447 } } // namespace v8::internal
1451 1448
1452 #endif // V8_ISOLATE_H_ 1449 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | src/mksnapshot.cc » ('j') | src/serialize.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698