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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 void set_simulator_redirection(Redirection* redirection) { | 958 void set_simulator_redirection(Redirection* redirection) { |
959 simulator_redirection_ = redirection; | 959 simulator_redirection_ = redirection; |
960 } | 960 } |
961 #endif | 961 #endif |
962 | 962 |
963 Factory* factory() { return reinterpret_cast<Factory*>(this); } | 963 Factory* factory() { return reinterpret_cast<Factory*>(this); } |
964 | 964 |
965 // SerializerDeserializer state. | 965 // SerializerDeserializer state. |
966 static const int kPartialSnapshotCacheCapacity = 1400; | 966 static const int kPartialSnapshotCacheCapacity = 1400; |
967 | 967 |
968 static const int kJSRegexpStaticOffsetsVectorSize = 50; | 968 static const int kJSRegexpStaticOffsetsVectorSize = 128; |
969 | 969 |
970 Address external_callback() { | 970 Address external_callback() { |
971 return thread_local_top_.external_callback_; | 971 return thread_local_top_.external_callback_; |
972 } | 972 } |
973 void set_external_callback(Address callback) { | 973 void set_external_callback(Address callback) { |
974 thread_local_top_.external_callback_ = callback; | 974 thread_local_top_.external_callback_ = callback; |
975 } | 975 } |
976 | 976 |
977 StateTag current_vm_state() { | 977 StateTag current_vm_state() { |
978 return thread_local_top_.current_vm_state_; | 978 return thread_local_top_.current_vm_state_; |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1406 | 1406 |
1407 // Mark the global context with out of memory. | 1407 // Mark the global context with out of memory. |
1408 inline void Context::mark_out_of_memory() { | 1408 inline void Context::mark_out_of_memory() { |
1409 global_context()->set_out_of_memory(HEAP->true_value()); | 1409 global_context()->set_out_of_memory(HEAP->true_value()); |
1410 } | 1410 } |
1411 | 1411 |
1412 | 1412 |
1413 } } // namespace v8::internal | 1413 } } // namespace v8::internal |
1414 | 1414 |
1415 #endif // V8_ISOLATE_H_ | 1415 #endif // V8_ISOLATE_H_ |
OLD | NEW |