OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |